/* ========================================
   APPOINTMENT PAGE — PSYCH SERENE
   ======================================== */

#appointment-page {
  position: relative;
  overflow: hidden;
  padding: 140px 0 100px;
  background: var(--ivory);
}

/* Ambient Background Orbs */
.apt-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.15;
  z-index: 0;
}
.apt-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--green);
  top: -100px;
  left: -150px;
}
.apt-orb-2 {
  width: 350px;
  height: 350px;
  background: var(--teal);
  bottom: 10%;
  right: -100px;
}

#appointment-page .container {
  position: relative;
  z-index: 1;
}

/* Page Header */
.page-header {
  margin-bottom: 50px;
}
.page-header .section-eyebrow {
  margin-bottom: 8px;
}
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 15px;
}
.page-header h1 em {
  font-style: italic;
  color: var(--green);
}
.page-header .lead-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  max-width: 600px;
}

/* Main Layout Cards */
.booking-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(27, 58, 75, 0.04), 0 1px 3px rgba(27, 58, 75, 0.02);
  border: 1px solid rgba(232, 237, 226, 0.7);
  margin-bottom: 30px;
}

.booking-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.booking-section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* Fields & Inputs */
.form-group-ps {
  margin-bottom: 20px;
}

.label-ps {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.input-wrap-ps {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-ps {
  position: absolute;
  left: 18px;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.input-ps {
  width: 100%;
  padding: 14px 20px 14px 48px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--charcoal);
  background: var(--ivory);
  border: 1.5px solid var(--mist);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.input-ps::placeholder {
  color: rgba(85, 102, 112, 0.5);
}

.input-ps:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(74, 103, 65, 0.12);
}

/* Date & Time Special Style */
.input-ps[type="datetime-local"] {
  padding-right: 18px;
}

/* Visual Option Grid (Select Cards) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.select-card {
  background: var(--ivory);
  border: 1.5px solid var(--mist);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  user-select: none;
}

.select-card:hover {
  transform: translateY(-3px);
  border-color: var(--muted);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(74, 103, 65, 0.08);
}

.select-card.active {
  background: var(--white);
  border-color: var(--green);
  box-shadow: 0 8px 24px rgba(74, 103, 65, 0.12);
}

.select-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.select-card.active .select-card-icon {
  background: var(--green);
  color: var(--white);
}

.select-card-content {
  flex-grow: 1;
}

.select-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  margin: 0 0 4px;
  line-height: 1.3;
}

.select-card-text {
  font-size: 12px;
  color: var(--text);
  margin: 0;
  font-weight: 300;
  line-height: 1.4;
}

.select-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  color: var(--green);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s ease;
}

.select-card.active .select-card-check {
  opacity: 1;
  transform: scale(1);
}

/* Mode Options Grid */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mode-card {
  background: var(--ivory);
  border: 1.5px solid var(--mist);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.mode-card:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  background: var(--white);
}

.mode-card.active {
  background: var(--white);
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(74, 103, 65, 0.08);
}

.mode-card-icon {
  font-size: 22px;
  color: var(--text);
  transition: all 0.25s ease;
}

.mode-card.active .mode-card-icon.zoom-icon {
  color: #2D8CFF;
}

.mode-card.active .mode-card-icon.meet-icon {
  color: #00897B;
}

.mode-card.active .mode-card-icon.wa-icon {
  color: #25D366;
}

.mode-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
}

/* Summary Card Sidebar */
.summary-sticky {
  position: sticky;
  top: 100px;
}

.summary-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 15px 50px rgba(27, 58, 75, 0.06);
  border: 1px solid rgba(232, 237, 226, 0.7);
}

.summary-heading {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--mist);
  padding-bottom: 12px;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
}

.summary-label {
  color: var(--text);
  font-weight: 300;
}

.summary-val {
  color: var(--teal);
  font-weight: 500;
  text-align: right;
}

/* Badge block for Session Duration */
.duration-badge-box {
  background: rgba(74, 103, 65, 0.06);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.duration-badge-icon {
  font-size: 18px;
  color: var(--green);
}

.duration-badge-text {
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 500;
}

/* Payment Section Styling */
.payment-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pay-card {
  background: var(--ivory);
  border: 1.2px solid var(--mist);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
}

.pay-card:hover {
  border-color: var(--muted);
  background: var(--white);
}

.pay-card.active {
  background: var(--white);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 4px 10px rgba(74, 103, 65, 0.06);
}

/* Dynamic instructions container */
.payment-instructions-box {
  background: var(--ivory);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border-left: 3px solid var(--green);
  font-size: 13px;
  line-height: 1.5;
  color: var(--charcoal);
  display: none; /* Controlled by JS */
}

.payment-instructions-box p {
  margin-bottom: 6px;
}

.payment-instructions-box p:last-child {
  margin-bottom: 0;
}

/* Reassuring Confirmation Note */
.confirm-badge-box {
  background: rgba(27, 58, 75, 0.04);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(27, 58, 75, 0.08);
}

.confirm-badge-icon {
  font-size: 15px;
  color: var(--teal);
  margin-top: 2px;
}

.confirm-badge-text {
  font-size: 12.5px;
  color: var(--teal);
  line-height: 1.4;
  font-weight: 400;
}

/* CTA Booking Button */
.btn-book-session {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Responsive adjustment */
@media (max-width: 991.98px) {
  #appointment-page {
    padding: 110px 0 60px;
  }

  .page-header {
    margin-bottom: 35px;
  }

  .summary-sticky {
    position: static;
    margin-top: 20px;
  }

  .booking-card {
    padding: 30px 24px;
    border-radius: 20px;
  }

  .summary-card {
    padding: 24px;
    border-radius: 20px;
  }
}

@media (max-width: 575.98px) {
  .option-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mode-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
