* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sage: #a5a28f;
  --cream: #ddd4c5;
  --brown-medium: #ba8c6a;
  --brown-dark: #7a5a4b;
  --brown-darker: #5e4438;
  --white: #FFFFFF;
  --light-bg: #f5f2ed;
  --text-dark: #3d3028;
  --text-gray: #6b5e54;
}

body {
  font-family: 'Inter', sans-serif;
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
}

.language-selector a {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  text-decoration: none;
  border: 2px solid var(--cream);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.language-selector a:hover {
  border-color: var(--brown-medium);
  color: var(--brown-dark);
}

.language-selector a.active {
  background: var(--brown-dark);
  color: var(--white);
  border-color: var(--brown-dark);
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--cream);
  z-index: 999;
}

.progress-fill {
  height: 100%;
  background: var(--brown-dark);
  width: 0%;
  transition: width 0.5s ease;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.form-wrapper {
  width: 100%;
}

.step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-content {
  text-align: center;
  animation: fadeIn 0.6s ease;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 50px 40px;
  box-shadow: 0 8px 32px rgba(122, 90, 75, 0.08);
  border: 1px solid rgba(221, 212, 197, 0.4);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 30px;
}

.step-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--brown-dark);
  line-height: 1.3;
}

.welcome-text {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-gray);
  margin-bottom: 50px;
  text-align: left;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
  letter-spacing: 0.01em;
}

.welcome-text p {
  margin-bottom: 16px;
}

.welcome-text p:last-child {
  margin-bottom: 0;
}

.docs-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 20px 0;
}

.docs-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(221, 212, 197, 0.3);
}

.docs-list li:last-child {
  border-bottom: none;
}

.docs-list li::before {
  content: '\2022';
  position: absolute;
  left: 8px;
  color: var(--brown-medium);
  font-size: 1.2em;
  line-height: 1;
  top: 10px;
}

.docs-email {
  font-weight: 500;
  color: var(--brown-dark);
}

.docs-email a {
  color: var(--brown-dark);
  text-decoration: underline;
}

.step-note {
  font-size: 0.95rem;
  color: var(--text-gray);
  margin-bottom: 30px;
  font-style: italic;
}

.input-text {
  width: 100%;
  max-width: 500px;
  padding: 18px 24px;
  font-size: 1.2rem;
  border: 2px solid var(--cream);
  border-radius: 8px;
  margin-bottom: 40px;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.input-text:focus {
  outline: none;
  border-color: var(--brown-medium);
  box-shadow: 0 0 0 3px rgba(186, 140, 106, 0.15);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.option-card {
  display: block;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--cream);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
}

.option-card:hover {
  border-color: var(--brown-medium);
  transform: translateX(5px);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  display: none;
}

.option-card input:checked + span {
  color: var(--brown-dark);
  font-weight: 600;
}

.option-card:has(input:checked) {
  background: linear-gradient(135deg, rgba(186, 140, 106, 0.08) 0%, rgba(186, 140, 106, 0.18) 100%);
  border-color: var(--brown-medium);
  box-shadow: 0 4px 12px rgba(122, 90, 75, 0.15);
}

.option-card span {
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.btn {
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--brown-dark);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brown-darker);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 90, 75, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border: 2px solid var(--cream);
}

.btn-secondary:hover {
  border-color: var(--brown-medium);
  color: var(--brown-dark);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

/* Thank You Page */
.thank-you-wrapper {
  text-align: center;
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  background: var(--brown-dark);
  color: var(--white);
  font-size: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  animation: scaleIn 0.6s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.thank-you-title {
  font-size: 3rem;
  margin-bottom: 30px;
  color: var(--brown-dark);
}

.thank-you-text {
  font-size: 1.2rem;
  color: var(--text-gray);
  margin-bottom: 50px;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Admin Styles */
.admin-container {
  max-width: 1200px;
  padding-top: 40px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.admin-title {
  font-size: 2.5rem;
  color: var(--text-dark);
}

.admin-actions {
  display: flex;
  gap: 15px;
}

.admin-login-wrapper {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

.admin-login-form {
  margin-top: 30px;
  text-align: left;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #fcc;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--brown-medium);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.submissions-table {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.submissions-table table {
  width: 100%;
  border-collapse: collapse;
}

.submissions-table th {
  background: var(--brown-dark);
  color: var(--white);
  padding: 16px;
  text-align: left;
  font-weight: 600;
}

.submissions-table td {
  padding: 16px;
  border-bottom: 1px solid var(--cream);
}

.submissions-table tr:hover {
  background: var(--light-bg);
}

.no-data {
  padding: 40px;
  text-align: center;
  color: var(--text-gray);
  font-size: 1.1rem;
}

.submission-detail {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.detail-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--cream);
}

.detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-section h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: var(--text-dark);
}

.detail-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

.detail-label {
  font-weight: 600;
  color: var(--text-gray);
}

.detail-value {
  color: var(--text-dark);
}

.detail-value a {
  color: var(--brown-medium);
  text-decoration: none;
}

.detail-value a:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .step-title {
    font-size: 1.8rem;
  }

  .welcome-text {
    font-size: 1rem;
  }

  .input-text {
    font-size: 1rem;
    padding: 14px 18px;
  }

  .option-card span {
    font-size: 1rem;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 14px 30px;
  }

  .language-selector {
    top: 10px;
    right: 10px;
  }

  .language-selector a {
    padding: 6px 12px;
    font-size: 12px;
  }

  .container {
    padding: 40px 15px;
  }

  .step-content {
    padding: 30px 20px;
  }

  .logo {
    max-width: 180px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-actions {
    width: 100%;
    flex-direction: column;
  }

  .submissions-table {
    overflow-x: auto;
  }

  .submissions-table table {
    min-width: 600px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .submission-detail {
    padding: 20px;
  }

  .thank-you-title {
    font-size: 2rem;
  }

  .thank-you-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
}

/* Textarea styling */
.input-textarea {
  width: 100%;
  max-width: 500px;
  padding: 18px 24px;
  font-size: 1.1rem;
  border: 2px solid var(--cream);
  border-radius: 8px;
  margin-bottom: 40px;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
  color: var(--text-dark);
}

.input-textarea:focus {
  outline: none;
  border-color: var(--brown-medium);
  box-shadow: 0 0 0 3px rgba(186, 140, 106, 0.15);
}

.input-textarea::placeholder {
  color: var(--text-gray);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .input-textarea {
    font-size: 1rem;
    padding: 14px 18px;
    min-height: 120px;
  }
}

/* Error states */
.input-error {
  border-color: #c94a4a !important;
  box-shadow: 0 0 0 3px rgba(201, 74, 74, 0.15) !important;
}

.option-error {
  border-color: #c94a4a !important;
  box-shadow: 0 0 0 2px rgba(201, 74, 74, 0.15) !important;
}

/* Section spacer between questions on same step */
.section-spacer {
  margin: 40px 0;
}

/* Conditional fields */
.conditional-fields {
  margin-top: 30px;
}
