/* =========================================================
   Child Appointment – Page Styling
   Only affects child-appointment.html
   ========================================================= */

/* ----- Page background & layout ----- */

#childAppointment {
  /* same look as the main .appointment section, but path adjusted
     because this file lives in child-booking/css/ */
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("../../img/therapy-room.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

#childAppointment .section-title h4.sub-title {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-primary);
}

#childAppointment .section-title h1 {
  font-size: 2.4rem;
  line-height: 1.25;
}

#childAppointment .section-title p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Slightly tighter bullet list on the left */
#childAppointment .section-title ul li {
  font-size: 0.95rem;
}

/* ----- Form card ----- */

#childAppointment .appointment-form {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  background: radial-gradient(circle at top left, #f4fbff 0, #ffffff 55%);
  border-radius: 22px;
  border: 1px solid #e3edf8;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

#childAppointment .appointment-form h2 {
  font-size: 1.6rem;
}

#childAppointment .appointment-form p.fs-5 {
  letter-spacing: 0.08em;
  font-size: 0.85rem !important;
}

/* Make alerts softer & more “child friendly” */
#childAppointment .appointment-form .alert-info {
  background: #e7f7ff;
  border-color: #c4e7ff;
  color: #0b5073;
}

/* =========================================================
   Fieldsets / Steps
   ========================================================= */

#childAppointment form {
  counter-reset: pc-step;
}

/* wrapper for each logical block */
.pc-fieldset {
  position: relative;
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin-bottom: 18px;
  background: #f8fbff;
  border: 1px solid #dbe7f8;
}

/* “step title” row */
.pc-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0b8fb0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Auto-numbered step badge */
.pc-legend::before {
  counter-increment: pc-step;
  content: counter(pc-step);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #0b8fb0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0b8fb0;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.12);
}

/* inputs inside fieldset */
.pc-input {
  border-radius: 10px;
  border-color: rgba(11, 143, 176, 0.25);
  background-color: #ffffff;
  font-size: 0.95rem;
  transition: box-shadow 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.pc-input:focus {
  border-color: #0b8fb0;
  box-shadow: 0 0 0 0.16rem rgba(11, 143, 176, 0.22);
  background-color: #ffffff;
}

/* textarea */
.pc-fieldset textarea.pc-input {
  resize: vertical;
  min-height: 120px;
}

/* Small helper text below date */
#childApptDate + .form-text {
  margin-top: 4px;
}

/* =========================================================
   Checkboxes (Session types)
   ========================================================= */

.pc-fieldset .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.pc-fieldset .form-check-input {
  margin-top: 0.2rem;
  border-radius: 0.35rem;
  width: 1rem;
  height: 1rem;
}

.pc-fieldset .form-check-input:checked {
  background-color: #0b8fb0;
  border-color: #0b8fb0;
}

.pc-fieldset .form-check-label {
  cursor: pointer;
}

/* “Other (optional)” row */
#otherSessionType {
  font-size: 0.9rem;
}

#addOtherSessionType {
  white-space: nowrap;
}

/* =========================================================
   Policy checkbox & button
   ========================================================= */

#childPolicyAgree + .form-check-label {
  line-height: 1.5;
}

#childAppointment button[type="submit"] {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Success alert */
#childApptSuccess {
  border-radius: 14px;
}

/* =========================================================
   Age error handling
   ========================================================= */

.invalid-feedback#ageError {
  display: none;
}

#childAge.is-invalid + #ageError,
#ageError.show {
  display: block;
}

/* =========================================================
   Responsive tweaks
   ========================================================= */

/* Tablet & down */
@media (max-width: 991.98px) {
  #childAppointment .section-title {
    text-align: left;
  }

  #childAppointment .section-title h1 {
    font-size: 2rem;
  }

  #childAppointment .appointment-form {
    margin-top: 1.5rem;
    padding: 1.5rem 1.25rem;
    border-radius: 20px;
  }
}

/* Small phones */
@media (max-width: 575.98px) {
  #childAppointment {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  #childAppointment .appointment-form {
    padding: 1.25rem 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.45);
  }

  .pc-fieldset {
    padding: 14px 12px 12px;
  }

  .pc-legend {
    font-size: 0.8rem;
  }

  .pc-legend::before {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
  }
}