.appointments-page {
  background: #f8fafc;
}

.appointments-section {
  min-height: 100vh;
  padding: clamp(128px, 13vw, 156px) 0 clamp(78px, 8vw, 112px);
  background: linear-gradient(180deg, #f4fbfc 0%, #ffffff 46%, #f8fafc 100%);
}

.appointment-heading {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.appointment-heading h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.appointment-booking-widget {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.appointment-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.appointment-step {
  min-width: 138px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #28415a;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.appointment-step:disabled {
  cursor: default;
}

.appointment-step-dot {
  width: 24px;
  height: 24px;
  display: block;
  border: 2px solid #c8d5e2;
  border-radius: 50%;
  background: #ffffff;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.appointment-step.is-active .appointment-step-dot {
  border-color: #ff6b4a;
  box-shadow: 0 0 0 5px rgba(255, 107, 74, 0.12);
}

.appointment-step:not(:disabled):hover .appointment-step-dot {
  border-color: var(--brand-aqua);
}

.appointment-step-label {
  font-size: 0.84rem;
  line-height: 1.1;
}

.appointment-step-line {
  width: min(24vw, 230px);
  height: 2px;
  margin-top: -1.7rem;
  background: #c8d5e2;
}

.fc .fc-highlight{
  background: transparent;
}

.appointment-shell {
  display: grid;
  grid-template-columns: minmax(360px, 1.04fr) minmax(360px, 0.96fr);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: var(--brand-shadow);
}

.appointment-calendar-side {
  min-height: 650px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.1rem, 3vw, 2.25rem);
  background: #0f8d96;
  color: #ffffff;
}

.appointment-calendar {
  width: 100%;
  max-width: 520px;
  --fc-border-color: transparent;
  --fc-page-bg-color: transparent;
  --fc-neutral-bg-color: transparent;
  --fc-today-bg-color: transparent;
  --fc-event-bg-color: var(--brand-aqua);
  --fc-event-border-color: var(--brand-aqua);
}

.appointment-calendar .fc {
  color: #ffffff;
}

.appointment-calendar .fc-toolbar {
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.35rem, 3vw, 2.2rem);
}

.appointment-calendar .fc-toolbar-title {
  min-width: 170px;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: capitalize;
}

.appointment-calendar .fc-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.66) !important;
  box-shadow: none !important;
  transition: color 0.2s ease, background 0.2s ease;
}

.appointment-calendar .fc-button:hover,
.appointment-calendar .fc-button:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

.appointment-calendar .fc-col-header-cell {
  padding-bottom: 0.85rem;
}

.appointment-calendar .fc-col-header-cell-cushion {
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.appointment-calendar .fc-scrollgrid,
.appointment-calendar .fc-scrollgrid table,
.appointment-calendar .fc-theme-standard td,
.appointment-calendar .fc-theme-standard th {
  border: 0;
}

.appointment-calendar .fc-daygrid-day {
  cursor: pointer;
}

.appointment-calendar .fc-daygrid-day-frame {
  min-height: 54px;
  display: grid;
  place-items: center;
  position: relative;
}

.appointment-calendar .fc-daygrid-day-top {
  width: 100%;
  justify-content: center;
}

.appointment-calendar .fc-daygrid-day-number {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.appointment-calendar .fc-daygrid-day:hover .fc-daygrid-day-number {
  border-color: rgba(255, 255, 255, 0.36);
}

.appointment-calendar .fc-day-today .fc-daygrid-day-number {
  border-color: rgba(57, 197, 204, 0.75);
  color: #ffffff;
}

.appointment-calendar .is-selected-date .fc-daygrid-day-number {
  background: #ffffff;
  color: #28415a;
  border-color: #ffffff;
}

.appointment-calendar .fc-day-other .fc-daygrid-day-number,
.appointment-calendar .is-past-date .fc-daygrid-day-number,
.appointment-calendar .is-closed-date .fc-daygrid-day-number {
  color: rgba(255, 255, 255, 0.28);
}

.appointment-calendar .is-past-date,
.appointment-calendar .is-closed-date {
  cursor: not-allowed;
}

.appointment-calendar .fc-daygrid-day-events {
  min-height: 0;
  width: calc(100% - 10px);
  position: absolute;
  right: 5px;
  bottom: 4px;
  left: 5px;
  margin: 0;
}

.appointment-calendar .fc-daygrid-event-harness,
.appointment-calendar .fc-daygrid-event {
  margin: 0;
}

.appointment-calendar .fc-event {
  overflow: hidden;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.appointment-calendar .fc-daygrid-event .fc-event-title,
.appointment-calendar .fc-daygrid-event .fc-event-time, .fc-daygrid-day-events {
  display: none;
}

.appointment-calendar .fc-daygrid-event {
  min-height: 6px;
}

.appointment-calendar .fc-daygrid-more-link {
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
}

.appointment-detail-side {
  min-width: 0;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.35rem, 4vw, 2.7rem);
  background: #ffffff;
}

.appointment-panel {
  width: 100%;
}

.appointment-panel-title {
  margin: 0 0 0.35rem;
  color: #28415a;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.2;
}

.appointment-panel-subtitle {
  margin: 0 0 2rem;
  color: #28415a;
  font-size: 1.03rem;
  line-height: 1.4;
}

.appointment-panel-subtitle strong {
  font-weight: 900;
  text-transform: capitalize;
}

.appointment-time-list {
  max-height: 472px;
  display: grid;
  gap: 0.65rem;
  overflow: auto;
  padding: 0 0.45rem 0.15rem 0.1rem;
  scrollbar-color: rgba(43, 48, 53, 0.52) transparent;
  scrollbar-width: thin;
}

.appointment-slot {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e3ee;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #28415a;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.appointment-slot:hover,
.appointment-slot:focus {
  border-color: var(--brand-aqua);
  color: #0f8d96;
  transform: translateY(-1px);
}

.appointment-slot.is-selected {
  background: #119aa4;
  border-color: #119aa4;
  color: #ffffff;
}

.appointment-slot:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.appointment-empty-message {
  margin: 1rem 0 0;
  color: var(--brand-muted);
  font-weight: 800;
}

.appointment-summary {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0 1.45rem;
  padding: 1rem;
  border: 1px solid rgba(57, 197, 204, 0.22);
  border-radius: 0.75rem;
  background: var(--brand-soft);
  color: #28415a;
  font-size: 0.95rem;
  line-height: 1.35;
}

.appointment-summary span {
  font-weight: 800;
}

.appointment-summary strong {
  font-size: 1.03rem;
  font-weight: 900;
  text-transform: capitalize;
}

.appointment-form {
  display: grid;
  gap: 1rem;
}

.appointment-form .form-label {
  margin-bottom: 0.4rem;
  color: #28415a;
  font-weight: 900;
}

.appointment-service-select {
  position: relative;
}

.appointment-service-toggle {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(17, 154, 164, 0.16);
  border-radius: 0.45rem;
  background: #ffffff;
  color: #28415a;
  text-align: left;
}

.appointment-service-toggle span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.appointment-service-toggle i {
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.appointment-service-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.appointment-service-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.65rem;
  max-height: 230px;
  overflow-y: auto;
  padding: 0.85rem;
  border: 1px solid rgba(17, 154, 164, 0.16);
  border-radius: 0.45rem;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(40, 65, 90, 0.16);
}

.appointment-service-select.is-disabled {
  opacity: 0.65;
}

.appointment-service-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: #28415a;
  font-weight: 800;
  line-height: 1.35;
}

.appointment-service-option input {
  flex: 0 0 auto;
}

.appointment-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.appointment-back-btn,
.appointment-submit-btn,
.appointment-whatsapp-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  padding: 0.72rem 1.15rem;
}

.appointment-back-btn {
  --bs-btn-color: #28415a;
  --bs-btn-bg: #eef5f7;
  --bs-btn-border-color: #eef5f7;
  --bs-btn-hover-color: #119aa4;
  --bs-btn-hover-bg: #e4f3f5;
  --bs-btn-hover-border-color: #e4f3f5;
}

.appointment-success {
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #f0fdf4;
  color: #166534;
}

.appointment-success p {
  margin: 0 0 0.85rem;
  font-weight: 800;
  line-height: 1.35;
}

.appointment-whatsapp-btn {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #25d366;
  --bs-btn-border-color: #25d366;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #1fb959;
  --bs-btn-hover-border-color: #1fb959;
}

@media (max-width: 991.98px) {
  .appointments-section {
    padding-top: 118px;
  }

  .appointment-shell {
    grid-template-columns: 1fr;
  }

  .appointment-calendar-side,
  .appointment-detail-side {
    min-height: auto;
  }

  .appointment-calendar-side {
    padding-top: 2.4rem;
    padding-bottom: 2.4rem;
  }

  .appointment-detail-side {
    padding: 2rem;
  }

  .appointment-time-list {
    max-height: 360px;
  }
}

@media (max-width: 575.98px) {
  .appointments-section {
    padding: 108px 0 64px;
  }

  .appointment-heading {
    margin-bottom: 1.65rem;
  }

  .appointment-steps {
    gap: 0.35rem;
    margin-bottom: 1rem;
  }

  .appointment-step {
    min-width: 94px;
  }

  .appointment-step-dot {
    width: 21px;
    height: 21px;
  }

  .appointment-step-label {
    font-size: 0.68rem;
  }

  .appointment-step-line {
    width: min(20vw, 84px);
    margin-top: -1.55rem;
  }

  .appointment-calendar-side {
    padding: 1.5rem 0.55rem 1.75rem;
  }

  .appointment-calendar .fc-toolbar {
    gap: 0.25rem;
    margin-bottom: 1.25rem;
  }

  .appointment-calendar .fc-toolbar-title {
    min-width: 132px;
    font-size: 1.2rem;
  }

  .appointment-calendar .fc-daygrid-day-frame {
    min-height: 42px;
  }

  .appointment-calendar .fc-daygrid-day-number {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .appointment-calendar .fc-col-header-cell-cushion {
    font-size: 0.68rem;
  }

  .appointment-calendar .fc-event {
    font-size: 0;
    min-height: 5px;
  }

  .appointment-detail-side {
    padding: 1.35rem;
  }

  .appointment-panel-subtitle {
    margin-bottom: 1.35rem;
    font-size: 0.96rem;
  }

  .appointment-time-list {
    max-height: 326px;
    gap: 0.55rem;
  }

  .appointment-slot {
    min-height: 46px;
    font-size: 0.98rem;
  }

  .appointment-form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .appointment-back-btn,
  .appointment-submit-btn,
  .appointment-whatsapp-btn {
    width: 100%;
  }
}
