/* ==========================================
   TESTIMONIAL PAGE - IMPROVED LAYOUT
   Better viewport usage, tighter spacing, fixed scrolling
   ========================================== */

/* Full Screen Hero - IMPROVED CENTERING */
.testimonial-page .hero-fullscreen {
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"), linear-gradient(135deg, #f3e8d6 0%, #faf6f0 100%);
  text-align: center;
  padding: 0.5rem 2rem 2rem;
  position: relative;
  margin-top: 0;
}

.testimonial-page .hero-content {
  max-width: 850px;
  width: 100%;
  margin-top: -3vh;
}

.testimonial-page .hero-content h1 {
  font-family: var(--font-palatino);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--sage-green);
  margin-bottom: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.testimonial-page .hero-text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 1rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  flex: none !important;
  min-height: auto !important;
  padding: 0 !important;
}

.testimonial-page .hero-signature {
  font-size: 1.35rem;
  color: var(--sage-dark);
  font-style: italic;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.testimonial-page .hero-notice {
  font-size: 1.1rem;
  color: var(--sage-green);
  margin-bottom: 2rem;
  font-style: italic;
  font-weight: 500;
}

/* Toggle Buttons - IMPROVED SPACING */
.testimonial-page .hero-toggle {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.testimonial-page .toggle-btn {
  background: white;
  border: 3px solid var(--beige);
  border-radius: 14px;
  padding: 1.1rem 2.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.testimonial-page .toggle-btn i {
  font-size: 1.4em;
}

.testimonial-page .toggle-btn:hover {
  border-color: var(--sage-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgb(0 0 0 / 15%);
}

.testimonial-page .toggle-btn.active {
  background: var(--sage-green);
  color: white;
  border-color: var(--sage-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(38 92 47 / 30%);
}

/* Scroll Indicator - TIGHTER */
.testimonial-page .scroll-indicator {
  margin-top: 1.75rem;
  animation: testimonial-bounce 2s infinite;
}

.testimonial-page .scroll-indicator i {
  font-size: 1.75rem;
  color: var(--sage-green);
}

@keyframes testimonial-bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Toggle Section */
.toggle-section {
  background: #f5f1e8;
  padding: 3rem 1.5rem;
  text-align: center;
}

.toggle-section h2 {
  font-size: 2rem;
  color: #2c5f5d;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Questions Section */
.questions-section {
  background: #f5f1e8;
  padding: 3rem 1.5rem;
}

.questions-section .container {
  max-width: 900px;
}

.questions-content-wrapper h2 {
  font-size: 2rem;
  color: #2c5f5d;
  margin-bottom: 1rem;
}

/* Privacy Section */
.privacy-section {
  background: #f5f1e8;
  padding: 3rem 1.5rem;
}

.privacy-section .container {
  max-width: 900px;
}

/* Form Section - FIXED: Removed decorative line and bottom padding gap */
.testimonial-page .form-section {
  padding: 2rem 2rem 2rem;
  background: var(--warm-white);
  scroll-margin-top: 130px;
  position: relative;
}

/* Testimonial Page Container */
.testimonial-page .container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3.125rem);
}

.testimonial-page .form-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 2.5rem;
  align-items: start;
}

/* Questions Panel - IMPROVED TYPOGRAPHY */
.testimonial-page .questions-panel {
  position: static;
  top: auto;
  display: none;
  flex-direction: column;
}

.testimonial-page .questions-panel h2 {
  font-family: var(--font-palatino);
  font-size: 2.1rem;
  color: var(--sage-green);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.testimonial-page .questions-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 1.75rem;
}

.testimonial-page .questions-content h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: var(--sage-dark);
  margin-bottom: 0.85rem;
  margin-top: 0.5rem;
}

.testimonial-page .questions-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.testimonial-page .questions-content li {
  padding: 0.35rem 0;
  line-height: 1.65;
  color: var(--text-dark);
  font-size: 1.125rem;
}

.testimonial-page .questions-content li::before { content: none; }

.testimonial-page .contact-box {
  background: var(--cream);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--sage-green);
  margin-top: 1rem;
}

.testimonial-page .contact-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.testimonial-page .contact-box strong {
  color: var(--sage-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.testimonial-page .contact-box a {
  color: var(--sage-green);
  text-decoration: none;
  font-weight: 600;
}

.testimonial-page .contact-box a:hover {
  text-decoration: underline;
}

/* Form Panel - IMPROVED CARD */
.testimonial-page .form-panel {
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
}

.testimonial-page .form-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
  border: 2px solid var(--beige);
  display: flex;
  flex-direction: column;
  margin-right: 1.5rem;
}

/* Form Pages */
.testimonial-page .testimonial-form {
  position: relative;
}

.testimonial-page .form-page {
  display: none;
}

.testimonial-page .form-page.active {
  display: flex;
  flex-direction: column;
  animation: testimonial-slideIn 0.3s ease;
}

@keyframes testimonial-slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Form Elements - BETTER SPACING */
.testimonial-page .testimonial-form label {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.125rem;
}

.testimonial-page .testimonial-form input[type="text"],
.testimonial-page .testimonial-form input[type="email"],
.testimonial-page .testimonial-form input[type="tel"],
.testimonial-page .testimonial-form select,
.testimonial-page .testimonial-form textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  margin-top: 0.4rem;
  border: 2px solid var(--beige);
  border-radius: 8px;
  font-family: var(--font-gentium);
  font-size: 1.0625rem;
  background: var(--warm-white);
  transition: all 0.2s ease;
}

.testimonial-page .testimonial-form input[type="text"]:focus,
.testimonial-page .testimonial-form input[type="email"]:focus,
.testimonial-page .testimonial-form input[type="tel"]:focus,
.testimonial-page .testimonial-form select:focus,
.testimonial-page .testimonial-form textarea:focus {
  outline: none;
  border-color: var(--sage-green);
  background: white;
  box-shadow: 0 0 0 3px rgb(38 92 47 / 10%);
}

.testimonial-page .testimonial-form textarea {
  resize: vertical;
  height: 160px;
  line-height: 1.6;
}

.testimonial-page .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

.testimonial-page .form-row label {
  margin-bottom: 1.25rem;
}

.testimonial-page .required {
  color: #c41e3a;
  margin-left: 4px;
  font-weight: bold;
}

.testimonial-page .optional {
  color: var(--sage-light);
  font-weight: 400;
  font-size: 0.9em;
}

.field-hint {
  display: block;
  color: #888;
  font-style: italic;
  font-size: 0.9em;
  margin-top: 4px;
  margin-bottom: 8px;
  font-weight: normal;
}

/* Star Rating - IMPROVED */
.testimonial-page .star-label {
  display: block;
  margin-bottom: 2.5rem;
}

.testimonial-page .star-rating {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.8rem;
}

.testimonial-page .star-rating input[type="radio"] {
  display: none;
}

.testimonial-page .star-rating label {
  cursor: pointer;
  font-size: 2.5rem;
  color: #ddd;
  transition: all 0.2s ease;
  margin: 0;
}

.testimonial-page .star-rating label:hover,
.testimonial-page .star-rating label:hover ~ label,
.testimonial-page .star-rating input[type="radio"]:checked ~ label {
  color: #f5c842;
  transform: scale(1.1);
}

/* Form Navigation Buttons - IMPROVED */
.testimonial-page .form-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 2rem;
}

.testimonial-page .btn-next,
.testimonial-page .btn-back,
.testimonial-page .btn-submit,
.testimonial-page .btn-submit-student {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-gentium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage-green);
  color: white;
  width: 100%;
  justify-content: center;
}

.testimonial-page .btn-next:hover,
.testimonial-page .btn-back:hover,
.testimonial-page .btn-submit:hover,
.testimonial-page .btn-submit-student:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgb(38 92 47 / 25%);
}

.testimonial-page .btn-back {
  background: white;
  color: var(--body);
  border: 2px solid var(--beige);
}

.testimonial-page .btn-back:hover {
  border-color: var(--sage-light);
  background: var(--cream);
}

.testimonial-page .btn {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-gentium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-page .btn-primary {
  background: var(--sage-green);
  color: white;
  flex: 1;
}

.testimonial-page .btn-primary:hover:not(:disabled) {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgb(38 92 47 / 25%);
}

.testimonial-page .btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.testimonial-page .btn-secondary {
  background: white;
  color: var(--body);
  border: 2px solid var(--beige);
}

.testimonial-page .btn-secondary:hover {
  border-color: var(--sage-light);
  background: var(--cream);
  transform: translateY(-2px);
}

/* Next/Back buttons - proper styling */
.testimonial-page .form-nav .btn {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-gentium);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage-green);
  color: white;
}

.testimonial-page .form-nav .btn:hover:not(:disabled) {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgb(38 92 47 / 25%);
}

.testimonial-page .form-nav .btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Progress Indicator - IMPROVED */
.testimonial-page .progress {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.testimonial-page .progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
}

.testimonial-page .progress-dot.active {
  background: var(--sage-green);
  width: 28px;
  border-radius: 5px;
}

/* Success Message - IMPROVED */
.testimonial-page .success-message {
  display: none;
  text-align: center;
  padding: 2rem;
  animation: testimonial-slideIn 0.4s ease;
}

.testimonial-page .success-message.show {
  display: block;
}

.testimonial-page .success-icon {
  font-size: 4rem;
  color: var(--sage-green);
  margin-bottom: 1.5rem;
  animation: testimonial-scaleIn 0.5s ease;
}

@keyframes testimonial-scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.testimonial-page .success-message h2 {
  font-family: var(--font-palatino);
  font-size: 2.25rem;
  color: var(--sage-green);
  margin-bottom: 1rem;
}

.testimonial-page .success-message p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 2rem;
}

.testimonial-page .btn-another {
  background: var(--sage-green);
  color: white;
}

.testimonial-page .btn-another:hover {
  background: var(--sage-dark);
}

/* Privacy Notice Box - Repositioned above form grid */
.privacy-notice {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: #f8f6f3;
  border-left: 4px solid #1a4d2e;
  border-radius: 8px;
}

.privacy-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a4d2e;
}

.privacy-title i {
  color: #1a4d2e;
  margin-right: 0.35rem;
}

.privacy-text {
  line-height: 1.6;
  color: #333;
  margin: 0;
}

/* Hidden utility */
.testimonial-page .hidden {
  display: none !important;
}

/* Testimonial page specific header styles */
.testimonial-page .logo {
  cursor: default;
}

.testimonial-page .logo:hover {
  color: inherit;
  text-decoration: none;
}

/* Show desktop sidebar once viewport is wider than tablet */
@media (width >= 769px) {
  .testimonial-page .questions-panel {
    display: flex;
  }
}

/* Mobile Responsive - FIXED: Natural content flow */
@media (width <= 968px) {
  /* Allow natural content flow - no forced viewport heights */
  .hero-fullscreen,
  .questions-section,
  .privacy-section,
  .form-section,
  .toggle-section {
    margin: 0;
    padding: 0;
    min-height: auto !important;
  }

  /* VIEWPORT 1: Hero - natural height flow on mobile */
  .testimonial-page .hero-fullscreen {
    height: auto !important;
    min-height: auto !important;
    padding: 3rem 1.5rem 2rem !important;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Questions section - natural height flow */
  .questions-section {
    min-height: auto;
    padding: 2rem 1.5rem;
    display: block;
  }

  /* Make toggle SMALL horizontal pills at top */
  .questions-section .hero-toggle {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
    justify-content: center;
    flex-direction: row;
  }

  .questions-section .toggle-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    border-width: 2px;
  }

  .questions-section .toggle-btn i {
    font-size: 0.9rem;
    margin-right: 0.35rem;
  }

  /* Questions content */
  .questions-content-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .questions-intro {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  /* Hide toggle section on mobile (questions section replaces it) */
  .toggle-section {
    display: none;
  }

  /* Privacy section - minimal padding, no card */
  .privacy-section {
    min-height: auto;
    display: block;
    padding: 2rem 1.5rem;
  }

  .privacy-section .privacy-notice {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .privacy-text {
    font-size: 0.95rem !important;
    line-height: 1.6;
  }

  /* Minimal dividers around privacy */
  .privacy-section .divider-wide {
    margin: 1.5rem auto;
  }

  /* Form section - minimal top padding */
  .form-section {
    min-height: auto;
    padding: 1.5rem 1.5rem 2rem;
  }

  /* Stack form grid on mobile - FORCE single column */
  .testimonial-page .form-grid {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .testimonial-page .questions-panel {
    display: none !important;
  }

  .testimonial-page .form-panel {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .testimonial-page .form-card {
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .testimonial-page .hero-toggle {
    flex-direction: column;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .testimonial-page .toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .testimonial-page .star-rating label {
    font-size: 2.5rem;
  }

  .testimonial-page .form-row {
    grid-template-columns: 1fr;
  }

  .testimonial-page .form-section {
    scroll-margin-top: 100px;
  }

  /* Hamburger animation when open */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

@media (width <= 640px) {
  .testimonial-page .hero-fullscreen {
    padding: 2rem 1rem 1.5rem;
  }

  .testimonial-page .hero-content {
    margin-top: 0;
  }

  .testimonial-page .form-card {
    padding: 1.5rem;
  }

  .testimonial-page .star-rating label {
    font-size: 2rem;
  }
  
  .testimonial-page .form-section {
    scroll-margin-top: 80px;
  }
}

/* Cycling student questions */
.testimonial-page .helper {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 1rem;
}

.testimonial-page .q-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 0.75rem;
}

.testimonial-page .q-list li {
  margin: 0.45rem 0;
  line-height: 1.65;
  color: var(--text-dark);
  font-size: 1.125rem;
}

.testimonial-page .more-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--sage-green);
  color: white;
  border: none;
  padding: 0.8rem 1.15rem;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-gentium);
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0.25rem auto 1rem;
}

.testimonial-page .more-btn:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(38 92 47 / 30%);
}

.testimonial-page .fade-out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s;
}

.testimonial-page .fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s, transform 0.22s;
}

/* Testimonial Page Footer - Email Signature Style */
.testimonial-page .testimonial-footer {
  background: var(--sage-dark);
  padding: 2.5rem 1rem 1.5rem;
  text-align: center;
}

.testimonial-page .testimonial-footer .footer-content {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.testimonial-page .footer-signature {
  text-align: center;
}

.testimonial-page .signature-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin: 0 0 0.25rem 0;
  font-family: var(--font-palatino);
}

.testimonial-page .signature-title {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem 0;
  font-style: italic;
}

.testimonial-page .signature-contact {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-page .signature-contact p {
  margin: 0;
}

.testimonial-page .signature-contact a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.testimonial-page .signature-contact a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.testimonial-page .testimonial-footer .footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-page .testimonial-footer .footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

@media (width <= 640px) {
  .testimonial-page .signature-contact {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ==========================================
   POPUP STYLES
   ========================================== */

.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.popup-overlay.active {
  display: flex;
}

.popup-content {
  background: #faf6f0;
  border: 3px solid #2c5f5d;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease;
}

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

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2c5f5d;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  transition: all 0.2s ease;
}

.popup-close:hover {
  transform: rotate(90deg);
  color: #1a3a38;
}

.popup-content h2 {
  font-family: var(--font-palatino);
  color: #2c5f5d;
  font-size: 2rem;
  margin: 0 0 1rem 0;
  padding-right: 2rem;
}

.popup-content p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact-info-popup {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e8dcc4;
}

.contact-info-popup p {
  margin: 0.75rem 0;
}

.contact-info-popup strong {
  color: #2c5f5d;
}

.contact-info-popup a {
  color: #2c5f5d;
  text-decoration: none;
  font-weight: 600;
}

.contact-info-popup a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .popup-content {
    padding: 2rem 1.5rem;
  }

  .popup-content h2 {
    font-size: 1.5rem;
  }
}

/* ==========================================
   MOBILE NAVIGATION & TOGGLE FIXES
   ========================================== */

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--sage-green);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Mobile Form Toggle Buttons */
.mobile-form-toggle {
  display: none;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.mobile-toggle-btn {
  flex: 1;
  background: white;
  border: 2px solid var(--beige);
  border-radius: 12px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.mobile-toggle-btn i {
  font-size: 1.2em;
}

.mobile-toggle-btn.active {
  background: var(--sage-green);
  color: white;
  border-color: var(--sage-green);
  box-shadow: 0 4px 12px rgb(38 92 47 / 25%);
}

/* Mobile toggle INSIDE the form card */
.mobile-form-toggle-internal {
  display: none;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--beige);
}

.mobile-toggle-btn-internal {
  flex: 1;
  background: white;
  border: 3px solid var(--beige);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--body);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

.mobile-toggle-btn-internal i {
  font-size: 1.3em;
}

.mobile-toggle-btn-internal.active {
  background: var(--sage-green);
  color: white;
  border-color: var(--sage-green);
  box-shadow: 0 4px 12px rgb(38 92 47 / 25%);
  transform: scale(1.02);
}

/* Hide tabs on desktop */
.form-type-tabs {
  display: none;
}

/* Tablet adjustment - keep nav visible with tighter spacing */
@media (max-width: 968px) and (min-width: 769px) {
  .nav-links {
    gap: 1rem; /* Reduce from default 2rem */
  }

  .nav-container {
    padding: 0 clamp(16px, 2vw, 24px);
  }

  .testimonial-page .logo {
    font-size: 1.75rem;
    color: #f5f1e8;
  }
}

/* Mobile Styles - logo only */
@media (max-width: 768px) {
  /* REMOVE all rectangle toggle buttons on mobile */
  .hero-toggle,
  .testimonial-page .hero-toggle,
  .mobile-form-toggle,
  .mobile-form-toggle-internal,
  .mobile-toggle-btn {
    display: none !important;
  }

  .scroll-indicator {
    display: none !important;
  }

  /* Compact tab switcher for mobile */
  .form-type-tabs {
    display: flex !important;
    background: var(--beige);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.5rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .form-type-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    background: transparent;
    color: var(--body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-gentium);
  }

  .form-type-tab.active {
    background: white;
    color: var(--sage-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Remove entire navigation on mobile */
  .hamburger {
    display: none !important;
  }

  .nav-links,
  .main-nav .nav-links {
    display: none !important;
  }

  .nav-container {
    justify-content: center !important;
  }

  /* Just show logo, centered */
  .main-nav {
    text-align: center;
  }

  .testimonial-page .logo {
    display: block;
    text-align: center;
    width: 100%;
    font-size: 1.75rem;
    color: #f5f1e8;
  }
}

/* ==========================================
   PRIVACY NOTICE - ABOVE FORM
   ========================================== */

.privacy-notice {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f6f3 0%, #fff 100%);
  border-left: 5px solid #1a4d2e;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.privacy-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.privacy-header i {
  font-size: 1.5rem;
  color: #1a4d2e;
}

.privacy-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a4d2e;
}

.privacy-notice p {
  margin: 0.75rem 0;
  line-height: 1.7;
  color: #333;
  font-size: 0.95rem;
}

.privacy-notice p:last-of-type {
  margin-bottom: 0;
}

.privacy-notice strong {
  color: #1a4d2e;
  font-weight: 600;
}

.minor-notice {
  margin-top: 1.25rem !important;
  padding: 1rem;
  background: #fff9e6;
  border-radius: 6px;
  border-left: 3px solid #f4a100;
  font-size: 0.9rem;
}

.minor-notice i {
  color: #f4a100;
  margin-right: 0.5rem;
}

/* ==========================================
   PERMISSION SECTION
   ========================================== */

.permission-section {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8f6f3;
  border-radius: 8px;
  border: 2px solid #e0d5c7;
}

.checkbox-full {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 0;
}

.checkbox-full input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  flex-shrink: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.checkbox-full span {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #2c3e50;
}

.permission-note {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #f8f6f3;
  border-radius: 8px;
  border: 2px solid #e0d5c7;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-style: italic;
  opacity: 0.85;
}

.permission-note i {
  color: var(--sage-green);
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .privacy-notice {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .privacy-header h3 {
    font-size: 1.1rem;
  }

  .privacy-notice p {
    font-size: 0.9rem;
  }

  .permission-section {
    padding: 1rem;
  }
}
