/* ==========================================
   BOOKING PAGE STYLES
   ==========================================

   Booking consultation form with two-column layout
   Created: 2025-10-06
   ========================================== */

/* Booking Section Container */
.booking-section {
  padding: var(--space-section) 0;
  background-color: transparent;
  position: relative;
  box-sizing: border-box;
  min-height: calc(100vh - 115px);
  /* Add warm-edge vignette like hero section */
  background-image: radial-gradient(ellipse at center,
    rgb(243 232 214 / 0%) 0%,
    rgb(243 232 214 / 0%) 48%,
    rgb(243 232 214 / 25%) 78%,
    rgb(243 232 214 / 42%) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Two-Column Grid Layout */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
  gap: var(--space-component);
  align-items: start;
  box-sizing: border-box;
  width: 100%;
}

/* Left Column: Information & Benefits */
.booking-info {
  padding-right: var(--space-component);
  box-sizing: border-box;
}

.booking-info h2 {
  font-family: var(--font-palatino);
  color: var(--sage-green);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.booking-info p {
  font-family: var(--font-gentium);
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

.booking-info h3 {
  font-family: var(--font-gentium);
  color: var(--sage-green);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.booking-info ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.booking-info li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-family: var(--font-gentium);
  line-height: 1.5;
}

.booking-info li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--sage-green);
  font-weight: bold;
}

/* Contact Information Box */
.booking-contact-box {
  background: var(--cream);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--sage-green);
}

.booking-contact-box p {
  margin: 0;
  font-family: var(--font-gentium);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.booking-contact-box strong {
  color: var(--sage-green);
}

.booking-contact-box a {
  color: var(--sage-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.booking-contact-box a:hover {
  color: var(--dark-green);
  text-decoration: underline;
}

/* Right Column: Form Wrapper */
.booking-form-wrapper {
  max-width: 100%;
  margin: 0;
}

/* Contact Form Card */
.contact-form-card {
  background: white;
  border: 2px solid var(--beige);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

.contact-form-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Form Labels */
.contact-form label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
  font-weight: 600;
  font-size: var(--text-base);
  font-family: var(--font-gentium);
  line-height: 1.5;
  cursor: pointer;
}

/* Form Inputs */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: clamp(0.65rem, 2vw, 0.85rem) clamp(0.85rem, 2.5vw, 1.1rem);
  margin-top: 0.35rem;
  border: 2px solid var(--beige);
  border-radius: var(--radius-sm);
  font-family: var(--font-gentium);
  font-size: var(--text-base);
  line-height: 1.5;
  background: var(--warm-white);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  color: var(--text-dark);
  box-sizing: border-box;
  min-height: 44px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sage-green);
  background: white;
  box-shadow: 0 0 0 3px rgb(38 92 47 / 10%);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dark);
  opacity: 0.5;
}

.contact-form textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

/* Submit Button */
.contact-form .cta-button {
  display: block;
  margin: var(--space-sm) auto 0;
  min-height: 48px;
  font-size: var(--text-lg);
  cursor: pointer;
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cloudflare Turnstile */
.contact-form .cf-turnstile {
  margin: var(--space-md) 0;
}

/* Status Messages */
.contact-status-message {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  display: none;
  font-family: var(--font-gentium);
  font-size: var(--text-base);
  line-height: 1.5;
}

.contact-status-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
  display: block;
}

.contact-status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
  display: block;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

@media (width <= 640px) {
  .contact-form-card {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .contact-form label {
    font-size: 1rem;
    line-height: 1.5;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    line-height: 1.5;
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .contact-form textarea {
    min-height: 100px;
  }

  .contact-form .cta-button {
    min-height: 48px;
    font-size: 16px;
    padding: 0.85rem 1.5rem;
  }

  .booking-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .booking-info {
    padding-right: 0;
  }
}

/* ==========================================
   BOOKING FOOTER - COMPACT 2-COLUMN
   ==========================================
   Matches testimonials page footer sizing */

.booking-footer-compact {
  padding: 2.5rem 1rem 1.5rem;
}

.booking-footer-compact .footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.booking-footer-compact .footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: white;
  font-family: var(--font-palatino);
}

.booking-footer-compact .footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  transition: opacity 0.2s ease;
}

.booking-footer-compact .footer-section a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

@media (width <= 768px) {
  /* Fix nav link visibility on dark green mobile header */
  .main-nav .nav-links a {
    color: #f7f4ec !important;
  }
}

@media (width <= 640px) {
  .booking-footer-compact .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
