:root {
  --turquoise: #20c7be;
  --turquoise-dark: #16b4ac;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f5f6;
  color: #111;
}

.appointment-hero {
  min-height: 100dvh;
  padding-top: 4.9rem;
  background-image:
    linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.86)),
    url("../img/4853336.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.appointment-hero .navbar-brand,
.appointment-hero .navbar .nav-link {
  color: rgba(17, 17, 17, 0.88);
}

.appointment-hero .navbar .nav-link:hover,
.appointment-hero .navbar-brand:hover,
.appointment-hero .navbar .nav-link.active {
  color: #000;
}

.appointment-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 1rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.stepper-item {
  border: 1px solid #dbe2e6;
  border-radius: 0.75rem;
  padding: 0.7rem 0.65rem;
  text-align: center;
  background: #fff;
  color: #4f5b67;
}

.stepper-item span {
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 0.35rem;
  border: 1px solid #c7d2da;
  font-weight: 700;
  font-size: 0.88rem;
}

.stepper-item small {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
}

.stepper-item.active {
  border-color: rgba(32, 199, 190, 0.55);
  background: rgba(32, 199, 190, 0.08);
  color: #103836;
}

.stepper-item.active span,
.stepper-item.done span {
  background: var(--turquoise);
  border-color: var(--turquoise);
  color: #053533;
}

.stepper-item.done {
  border-color: #b9ece9;
  background: rgba(32, 199, 190, 0.06);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.schedule-step-intro {
  margin-bottom: 1rem;
}

.schedule-step-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #11817b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-step-intro p {
  color: #586772;
  max-width: 48rem;
}

.schedule-step-panel {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(250, 252, 252, 0.94), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 28px rgba(8, 39, 42, 0.06);
}

.schedule-step-panel + .schedule-step-panel {
  margin-top: 0.9rem;
}

.schedule-step .form-label {
  margin-bottom: 0.5rem;
  color: #163c3a;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.schedule-step .form-control,
.schedule-step .form-select {
  min-height: 3.35rem;
  border: 1px solid #d5dee4;
  border-radius: 0.95rem;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.schedule-step textarea.form-control {
  min-height: 7.5rem;
  resize: vertical;
  padding-top: 0.9rem;
}

.schedule-step .form-control:focus,
.schedule-step .form-select:focus {
  border-color: rgba(32, 199, 190, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(32, 199, 190, 0.12);
}

.schedule-step .form-text {
  margin-top: 0.65rem;
  color: #5a6873;
  line-height: 1.55;
}

.service-summary {
  margin-top: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(32, 199, 190, 0.14);
  background: rgba(32, 199, 190, 0.06);
  text-align: center;
}

.service-summary-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: #11817b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: center;
}

.service-summary-item small {
  display: block;
  margin-bottom: 0.2rem;
  color: #607170;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-summary-item strong {
  color: #163c3a;
  font-size: 1rem;
  font-weight: 700;
}

.schedule-consent {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(32, 199, 190, 0.04);
  border: 1px solid rgba(32, 199, 190, 0.12);
}

.schedule-consent-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
}

.schedule-consent .form-check-input {
  float: none;
  margin: 0;
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
}

.schedule-consent-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.schedule-consent .form-check-label {
  color: #163c3a;
  font-weight: 600;
  line-height: 1.35;
}

.schedule-consent-links {
  color: #546261;
  font-size: 0.96rem;
  line-height: 1.45;
}

.schedule-consent-links a {
  color: #0f8c85;
  font-weight: 600;
  text-decoration: none;
}

.schedule-consent-links a:hover,
.schedule-consent-links a:focus {
  color: #0a6c66;
  text-decoration: underline;
}

.schedule-actions {
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-turquoise {
  background-color: var(--turquoise);
  border-color: var(--turquoise);
  color: #053533;
  font-weight: 600;
}

.btn-turquoise:hover,
.btn-turquoise:focus {
  background-color: var(--turquoise-dark);
  border-color: var(--turquoise-dark);
  color: #042928;
}

.busy-intervals-panel {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 249, 0.98), rgba(255, 255, 255, 0.98)),
    rgba(15, 23, 42, 0.035);
  border: 1px solid rgba(220, 53, 69, 0.12);
}

.busy-intervals-title {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: #7d2632;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.busy-intervals-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.busy-interval-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(220, 53, 69, 0.18);
  color: #7d2632;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  background: var(--turquoise);
  border-color: var(--turquoise);
}

@media (max-width: 767.98px) {
  .appointment-hero {
    padding-top: 4.6rem;
  }

  .stepper {
    grid-template-columns: 1fr;
  }

  .stepper-item {
    text-align: left;
    padding: 0.55rem 0.7rem;
  }

  .stepper-item span {
    margin-bottom: 0;
    margin-right: 0.5rem;
  }

  .stepper-item small {
    display: inline-block;
    vertical-align: middle;
  }

  .appointment-card {
    padding: 1.15rem;
  }

  .schedule-step-panel {
    padding: 1rem;
    border-radius: 0.9rem;
  }

  .service-summary-grid {
    grid-template-columns: 1fr;
  }

  .schedule-step .form-control,
  .schedule-step .form-select {
    min-height: 3.1rem;
  }

  .busy-intervals-panel {
    padding: 0.9rem;
  }

  .schedule-consent {
    align-items: center;
  }
}
