/* ===================
   BOOK A CALL PAGE
   =================== */

/* Hero Section */
.booking-hero {
  position: relative;
  padding: 4rem 0 2.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f9fd 0%, #ffffff 100%);
}

.booking-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(88, 119, 255, 0.1), transparent 50%),
    radial-gradient(circle at bottom right, rgba(88, 119, 255, 0.05), transparent 55%);
  pointer-events: none;
}

.booking-hero .container {
  position: relative;
  z-index: 1;
}

.booking-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(210, 216, 244, 0.9);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--color-accent-strong);
  margin-bottom: 0.9rem;
}

.booking-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.booking-hero .page-intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 550px;
}

/* Main Booking Section */
.booking-section {
  padding: 3rem 0 4rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

/* Form Card */
.booking-form-card {
  background: #ffffff;
  border: 1px solid rgba(207, 214, 244, 0.7);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 8px 32px rgba(31, 35, 82, 0.06);
}

.form-header {
  margin-bottom: 1.75rem;
}

.form-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Form Styles */
.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: #f8f9fd;
  border: 1px solid rgba(207, 214, 244, 0.8);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0a8c4;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
  border-color: rgba(88, 119, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(46, 92, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Required field indicator */
.form-group.required label::after {
  content: ' *';
  color: #e74c3c;
}

/* Field error message */
.field-error {
  display: none;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 0.25rem;
}

/* Show error when input is invalid and has been touched */
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
  background: #fef8f8;
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-group input.invalid + .field-error,
.form-group.show-error .field-error {
  display: block;
}

/* Valid state */
.form-group input.valid,
.form-group textarea.valid {
  border-color: #27ae60;
}

.form-group input.valid:focus,
.form-group textarea.valid:focus {
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Honeypot (spam protection) */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Form Note */
.form-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(46, 92, 255, 0.04);
  border-radius: 10px;
  margin-top: 0.5rem;
}

.form-note svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 1px;
}

.form-note p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Submit Button */
.booking-form .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(46, 92, 255, 0.3);
  margin-top: 0.5rem;
}

.booking-form .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46, 92, 255, 0.4);
}

.booking-form .btn-submit:active {
  transform: translateY(0);
}

.booking-form .btn-submit svg {
  transition: transform 0.2s ease;
}

.booking-form .btn-submit:hover svg {
  transform: translateX(3px);
}

/* Right Side - Calendly Info */
.booking-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-card {
  background: linear-gradient(145deg, #1f2352, #2a2f5e);
  border-radius: 20px;
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 16px 48px rgba(31, 35, 82, 0.25);
}

.sidebar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sidebar-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
}

.sidebar-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.sidebar-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-feature svg {
  flex-shrink: 0;
  color: #5ee9a0;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 1.25rem 0;
}

.sidebar-founder {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-founder img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-founder-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidebar-founder-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.sidebar-founder-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Success State */
.booking-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.booking-success.show {
  display: block;
}

.booking-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: rgba(94, 233, 160, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #27946d;
}

.booking-success h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.booking-success p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* Hide form when success shows */
.booking-form-card.submitted .booking-form,
.booking-form-card.submitted .form-header {
  display: none;
}

.booking-form-card.submitted .booking-success {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .booking-hero {
    padding: 3rem 0 2rem;
  }

  .booking-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .booking-sidebar {
    position: static;
    order: -1;
  }

  .sidebar-card {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .booking-hero h1 {
    font-size: 1.9rem;
  }

  .booking-form-card {
    padding: 1.5rem;
  }

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

  .booking-form .btn-submit {
    padding: 1rem 1.5rem;
  }
}
