/* ==========================================================================
   DENTALINS — APPOINTMENT PANEL  (appointment-modal.css)
   Full-screen slide-up panel — left sidebar + right content.
   z-index layer: 10 000 / 10 001
   ========================================================================== */

/* ── 1. OVERLAY ──────────────────────────────────────────────────────────── */
.appt-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0);
  visibility: hidden;
  pointer-events: none;
  transition: background .4s ease, visibility 0s .4s;
}
.appt-overlay.is-active {
  background: rgba(0, 0, 0, .18);
  visibility: visible;
  pointer-events: auto;
  transition: background .4s ease, visibility 0s 0s;
}

/* ── 2. MODAL PANEL ──────────────────────────────────────────────────────── */
.appt-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  background: var(--color-neutral-0);
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
.appt-overlay.is-active .appt-modal {
  transform: translateY(0);
}
@media (min-width: 1024px) {
  .appt-modal {
    flex-direction: row;
  }
}

/* ── 3. LEFT SIDEBAR ─────────────────────────────────────────────────────── */
.appt-sidebar {
  position: relative;
  background: var(--color-secondary-500);
  padding: var(--space-6) var(--space-5) var(--space-4);
  flex-shrink: 0;
  overflow: visible;
}
.appt-sidebar__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Title & subtitle */
.appt-sidebar__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin: 0 0 var(--space-1);
  letter-spacing: var(--tracking-tight);
}
.appt-sidebar__subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, .65);
  font-weight: var(--weight-medium);
  margin: 0 0 var(--space-5);
}

/* Wavy right edge — hidden on mobile */
.appt-sidebar__wave {
  display: none;
}

/* Desktop sidebar */
@media (min-width: 1024px) {
  .appt-sidebar {
    width: 38%;
    padding: var(--space-12) var(--space-10);
    padding-top: var(--space-3);
    display: flex;
    align-items: center;
    z-index: 1;
  }
  .appt-sidebar__content {
        width: 100%;
        display: flex;
        flex-basis: content;
        flex-direction: column;
        align-items: center;
        gap: var(--space-12);
  }
  .appt-sidebar__title {
    font-size: var(--text-6-5xl);
    margin-bottom: var(--space-2);
    line-height: 1.15;
  }
  .appt-sidebar__subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-12);
  }
  .appt-sidebar__wave {
    display: block;
    position: absolute;
    top: 0;
    left: calc(100% - 1px);
    width: 80px;
    height: 100%;
    color: var(--color-secondary-500);
    pointer-events: none;
    z-index: 1;
  }
}

/* ── 4. STEP PROGRESS ────────────────────────────────────────────────────── */

/* Mobile: horizontal */
.appt-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

@media (max-width:1023px) {
    .appt-progress {
        margin-top: var(--space-2);
    }
}

.appt-progress__step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Dot */
.appt-progress__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  transition: all .35s ease;
  background: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .5);
  border: 2px solid rgba(255, 255, 255, .2);
}
.appt-progress__step.is-active .appt-progress__dot {
  background: #fff;
  color: var(--color-secondary-500);
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .15);
}
.appt-progress__step.is-done .appt-progress__dot {
  background: rgba(255, 255, 255, .25);
  color: #fff;
  border-color: rgba(255, 255, 255, .4);
}

/* Label */
.appt-progress__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  color: rgba(255, 255, 255, .45);
  transition: color .3s ease;
}
.appt-progress__step.is-active .appt-progress__label {
  color: #fff;
}
.appt-progress__step.is-done .appt-progress__label {
  color: rgba(255, 255, 255, .65);
}

/* Horizontal connector line */
.appt-progress__line {
  flex: 1;
  height: 2px;
  margin: 0 var(--space-2);
  background: rgba(255, 255, 255, .15);
  border-radius: 9999px;
  position: relative;
  overflow: hidden;
  min-width: 20px;
}
.appt-progress__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  border-radius: 9999px;
}
.appt-progress__line.is-filled::after {
  transform: scaleX(1);
}

/* Hide labels on very small screens */
@media (max-width: 374px) {
  .appt-progress__label { display: none; }
}

/* Desktop: vertical progress */
@media (min-width: 1024px) {
  .appt-progress {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }
  .appt-progress__step {
    gap: var(--space-3);
  }
  .appt-progress__dot {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
  .appt-progress__label {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
  }
  .appt-progress__line {
    width: 2px;
    height: 34px;
    min-width: unset;
    flex: none;
    margin: var(--space-1) 0 var(--space-1) 22px;
  }
  .appt-progress__line::after {
    transform: scaleY(0);
    transform-origin: top;
  }
  .appt-progress__line.is-filled::after {
    transform: scaleY(1);
  }
}

/* ── 5. MAIN CONTENT AREA ────────────────────────────────────────────────── */
.appt-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  position: relative;
}
@media (min-width: 1024px) {
  .appt-main {
    width: 62%;
  }
}

.appt-modal__body {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* ── 6. STEP CONTAINERS ──────────────────────────────────────────────────── */
.appt-step {
  display: none;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-5) var(--space-4);
  animation: apptFadeIn .35s ease both;
}
@media (min-width: 1024px) {
  .appt-step {
    padding: var(--space-8) var(--space-8) var(--space-5);
  }
}
.appt-step.is-active {
  display: block;
}
@keyframes apptFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.appt-step__heading {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-secondary-500);
  margin-bottom: var(--space-5);
  letter-spacing: var(--tracking-tight);
  text-align: center;
}
@media (min-width: 1024px) {
  .appt-step__heading {
    font-size: var(--text-2xl);
            font-size: var(--text-4xl);
        margin-bottom: var(--space-8);
    
}
  
}

.appt-step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-5);
  margin-top: calc(-1 * var(--space-3));
  line-height: var(--leading-relaxed);
  text-align: center;
}

/* ── 7. REASON / TREATMENT CARDS ─────────────────────────────────────────── */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 420px) {
  .treatment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 640px) {
  .treatment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card wrapper */
.treatment-card {
  position: relative;
  cursor: pointer;
}
.treatment-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Inner visual */
.treatment-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
  border: 2px solid var(--color-neutral-400);
  border-radius: var(--radius-xl);
  background: var(--color-neutral-0);
  text-align: center;
  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}
.treatment-card__inner:hover {
  border-color: var(--color-neutral-500);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  transform: translateY(-1px);
}
.treatment-card input:checked + .treatment-card__inner {
  border-color: var(--color-primary-500);
  box-shadow:
    0 0 0 3px rgba(5, 160, 214, .1),
    0 4px 16px rgba(5, 160, 214, .08);
}
.treatment-card input:focus-visible + .treatment-card__inner {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 2px;
}

/* Icon circle */
.treatment-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-neutral-100);
  color: var(--color-secondary-500);
  transition: background .25s ease, color .25s ease;
}
.treatment-card__icon svg {
  width: 22px;
  height: 22px;
}
.treatment-card input:checked + .treatment-card__inner .treatment-card__icon {
  background: rgba(5, 160, 214, .1);
  color: var(--color-primary-600);
}

/* Label */
.treatment-card__label {
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
  line-height: var(--leading-snug);
}
.treatment-card input:checked + .treatment-card__inner .treatment-card__label {
  color: var(--color-primary-600);
}

/* Check badge */
.treatment-card__check {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 2px 6px rgba(5, 160, 214, .3);
}
.treatment-card__check svg {
  width: 12px;
  height: 12px;
  color: #fff;
}
.treatment-card input:checked ~ .treatment-card__check {
  opacity: 1;
  transform: scale(1);
}

/* ── 8. FORM FIELDS ──────────────────────────────────────────────────────── */
.appt-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.appt-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.appt-form .form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-secondary-500);
}
.appt-form .form-label--required::after {
  content: ' *';
  color: var(--color-error, #e53e3e);
}
.appt-form .form-label__optional {
  font-weight: var(--weight-regular);
  color: var(--color-text-tertiary);
}
.appt-form .form-input {
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  border: 1.5px solid var(--color-neutral-500);
  border-radius: var(--radius-lg);
  background: var(--color-neutral-0);
  color: var(--color-text-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.appt-form .form-input:hover {
    border-color: var(--color-neutral-600) !important;
}
.appt-form .form-input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(5, 160, 214, .1);
}
.appt-form .form-input--error {
  border-color: var(--color-error, #e53e3e);
}
.appt-form .form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, .12);
}
.appt-form .form-error {
  font-size: var(--text-xs);
  color: var(--color-error, #e53e3e);
  font-weight: var(--weight-medium);
  display: none;
  margin-top: 2px;
}
.appt-form .form-group.has-error .form-error {
  display: block;
}
.appt-form .form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 480px) {
  .appt-form .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Phone prefix */
.appt-phone-wrap {
  display: flex;
  align-items: stretch;
}
.appt-phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  background: var(--color-neutral-100);
  border: 1.5px solid var(--color-neutral-500);
  border-right: none;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-secondary-500);
  white-space: nowrap;
  user-select: none;
}
.appt-phone-wrap .form-input {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.appt-form textarea.form-input {
  min-height: 80px;
  resize: vertical;
}

/* ── 9. CALENDAR ─────────────────────────────────────────────────────────── */
.appt-calendar {
  background: var(--color-neutral-0);
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Month navigation header */
.appt-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: var(--color-neutral-50);
  border-bottom: 1px solid var(--color-neutral-100);
}
.appt-calendar__month {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-secondary-500);
  user-select: none;
}
.appt-calendar__nav {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-neutral-200);
  background: var(--color-neutral-0);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  color: var(--color-text-secondary);
}
.appt-calendar__nav:hover {
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
  background: rgba(5, 160, 214, .04);
}
.appt-calendar__nav:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.appt-calendar__nav svg {
  width: 16px;
  height: 16px;
}

/* Weekday headers */
.appt-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: var(--space-2) var(--space-2) 0;
}
.appt-calendar__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: var(--space-1) 0;
}

/* Day grid */
.appt-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  padding: var(--space-1) var(--space-2) var(--space-2);
}

/* Day cell */
.appt-calendar__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent;
  transition: all .2s ease;
  font-family: var(--font-primary);
}
.appt-calendar__day:hover:not(.is-disabled):not(.is-empty) {
  background: rgba(5, 160, 214, .06);
  border-color: var(--color-primary-200);
}

/* Empty cells (offset) */
.appt-calendar__day.is-empty {
  cursor: default;
  pointer-events: none;
}

/* Today */
.appt-calendar__day.is-today {
  background: var(--color-neutral-100);
  font-weight: var(--weight-extrabold);
}
.appt-calendar__day.is-today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary-500);
}

/* Selected */
.appt-calendar__day.is-selected {
  background: var(--color-primary-500);
  color: #fff;
  border-color: var(--color-primary-500);
  box-shadow: 0 2px 8px rgba(5, 160, 214, .25);
}
.appt-calendar__day.is-selected.is-today::after {
  background: #fff;
}

/* Past / disabled */
.appt-calendar__day.is-disabled {
  color: var(--color-neutral-300);
  cursor: not-allowed;
  pointer-events: none;
}

/* Weekend subtle tint */
.appt-calendar__day.is-weekend:not(.is-selected):not(.is-disabled) {
  color: var(--color-text-tertiary);
}

/* Has available slots indicator */
.appt-calendar__day .cal-dot {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-success, #2d9f5c);
}
.appt-calendar__day.is-today .cal-dot {
  bottom: 3px;
  left: calc(50% + 5px);
}
.appt-calendar__day.is-selected .cal-dot {
  background: rgba(255, 255, 255, .7);
}

/* ── 9b. TIMEPICKER ──────────────────────────────────────────────────────── */
.appt-timepicker {
  margin-top: var(--space-4);
  animation: apptFadeIn .3s ease both;
}
.appt-timepicker__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-secondary-500);
}
.appt-timepicker__header svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-500);
  flex-shrink: 0;
}

/* Slot grid */
.appt-timepicker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
@media (min-width: 480px) {
  .appt-timepicker__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Individual slot */
.appt-timeslot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 10px var(--space-2);
  border: 1.5px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-secondary);
  background: var(--color-neutral-0);
  cursor: pointer;
  transition: all .2s ease;
  font-family: var(--font-primary);
  position: relative;
}
.appt-timeslot:hover:not(.is-busy) {
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
  background: rgba(5, 160, 214, .03);
}

/* Selected slot */
.appt-timeslot.is-selected {
  border-color: var(--color-primary-500);
  background: var(--color-primary-500);
  color: #fff;
  box-shadow: 0 2px 10px rgba(5, 160, 214, .25);
}

/* Busy/unavailable slot */
.appt-timeslot.is-busy {
  background: var(--color-neutral-50);
  color: var(--color-neutral-300);
  border-color: var(--color-neutral-100);
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: var(--color-neutral-300);
}
.appt-timeslot.is-busy::after {
  content: 'Dolu';
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 9px;
  font-weight: var(--weight-bold);
  color: #fff;
  background: var(--color-error, #e53e3e);
  padding: 1px 5px;
  border-radius: 9999px;
  line-height: 1.4;
  text-decoration: none;
  letter-spacing: .02em;
}

/* ── 10. SUCCESS SCREEN ──────────────────────────────────────────────────── */
.appt-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-10) 0 var(--space-6);
}
.appt-success__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-success, #2d9f5c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  box-shadow: 0 6px 24px rgba(45, 159, 92, .2);
  animation: apptPop .5s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes apptPop {
  0%   { transform: scale(0); opacity: 0; }
  70%  { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
.appt-success__icon svg {
  width: 40px;
  height: 40px;
  color: #fff;
}
.appt-success__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-secondary-500);
  margin-bottom: var(--space-2);
}
.appt-success__desc {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: var(--leading-relaxed);
  max-width: 340px;
}
.appt-success__info {
  margin-top: var(--space-6);
  padding: var(--space-4);
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 360px;
}
.appt-success__info-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
}
.appt-success__info-row + .appt-success__info-row {
  border-top: 1px solid var(--color-neutral-100);
}
.appt-success__info-row svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-500);
  flex-shrink: 0;
}

/* ── 11. FOOTER ──────────────────────────────────────────────────────────── */
.appt-modal__footer {
  flex-shrink: 0;
  padding: var(--space-3) var(--space-5);
  padding-bottom: calc(var(--space-3) + 52px);
  background: var(--color-neutral-0);
  border-top: 1px solid var(--color-neutral-100);
}
.appt-modal__footer-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}
@media (min-width: 1024px) {
  .appt-modal__footer {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* Back button */
.appt-modal__btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-5);
  min-height: 48px;
  border: 1.5px solid var(--color-neutral-500);
  border-radius: 9999px;
  background: var(--color-neutral-0);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all .2s ease;
}
.appt-modal__btn-back:hover {
  border-color: var(--color-neutral-400);
  background: var(--color-neutral-50);
}
.appt-modal__btn-back svg {
  width: 16px;
  height: 16px;
}

/* Next / Submit button */
.appt-modal__btn-next {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 48px;
  border: none;
  border-radius: 9999px;
  background: var(--color-primary-500);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(5, 160, 214, .25);
  transition: all .2s ease;
}
.appt-modal__btn-next:hover {
  background: var(--color-primary-600);
  box-shadow: 0 4px 18px rgba(5, 160, 214, .35);
}
.appt-modal__btn-next:active {
  background: var(--color-primary-700);
}
.appt-modal__btn-next:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}
.appt-modal__btn-next svg {
  width: 16px;
  height: 16px;
}

/* Footer in success state */
.appt-modal__footer--success .appt-modal__footer-inner {
  justify-content: center;
}
.appt-modal__footer--success .appt-modal__btn-next {
  flex: none;
  padding: var(--space-3) var(--space-10);
  background: var(--color-secondary-500);
  box-shadow: 0 2px 12px rgba(11, 29, 58, .15);
}
.appt-modal__footer--success .appt-modal__btn-next:hover {
  background: var(--color-secondary-600);
}

/* ── 12. CLOSE BUTTON ────────────────────────────────────────────────────── */
.appt-modal__close {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--color-secondary-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(11, 29, 58, .2);
  transition: background .2s ease, transform .2s ease;
}
.appt-modal__close:hover {
  background: var(--color-secondary-600);
  transform: translateX(-50%) scale(1.08);
}
.appt-modal__close svg {
  width: 18px;
  height: 18px;
}
@media (min-width: 1024px) {
  .appt-modal__close {
    left: 69%;
  }
}

/* ── 13. BODY LOCK ───────────────────────────────────────────────────────── */
body.appt-open {
  overflow: hidden;
}

/* ── 14. SAFE AREA (notch devices) ───────────────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .appt-modal__footer {
    padding-bottom: calc(var(--space-4) + 56px + env(safe-area-inset-bottom));
  }
  .appt-modal__close {
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* ── 15. REDUCED MOTION ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .appt-modal,
  .appt-overlay { transition: none; }
  .appt-step { animation: none; }
  .appt-success__icon { animation: none; }
}
