/* ==========================================================================
   Beyza Altuner — Randevu sihirbazı (/randevu-al/)
   Hizmet Seçimi › Randevu Tarihi › Kişisel Bilgiler › Son
   Yalnızca main.css değişkenleri kullanılır (açık/koyu mod otomatik).
   Seçili durumlar: --btn-wave (koyu dolgu) + --btn-wave-text → koyu modda otomatik ters çevrilir.
   ========================================================================== */

.appt [hidden] { display: none !important; }
.appt-ticket__value, .appt-steps__count, .appt-slot, .appt-day, .appt-svc__price, .appt-totals__sum dd { font-variant-numeric: lining-nums tabular-nums; }

.appt {
    --appt-pad: clamp(16px, 3.6vw, 44px);
    --appt-chev: 16px;
    --appt-sel: var(--btn-wave);
    --appt-sel-text: var(--btn-wave-text);
    padding-block: clamp(28px, 5vw, 60px) clamp(56px, 7vw, 110px);
    background: var(--bg);
}
.appt__container { max-width: 1180px; }

/* ---------- Başlık ---------- */
.appt-head { text-align: center; margin-bottom: clamp(20px, 3vw, 30px); }
.appt-head__eyebrow {
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.appt-head__title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: var(--track); margin: 0; overflow-wrap: anywhere; }

/* ---------- Önemli uyarı ---------- */
.appt-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto clamp(24px, 4vw, 40px);
    padding: 16px 20px;
    background: var(--accent-soft);
    border-radius: var(--radius);
    color: var(--text);
}
.appt-notice__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--heading);
    border-radius: 50%;
    color: var(--heading);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .9rem;
    line-height: 1;
    margin-top: 1px;
}
.appt-notice__body { min-width: 0; }
.appt-notice__title {
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: var(--track);
    text-transform: uppercase;
    margin: 0 0 4px;
    color: var(--heading);
}
.appt-notice__text { font-size: .9rem; color: var(--text); margin: 0 0 8px; line-height: 1.6; }
.appt-notice__links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; }
.appt-notice__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--heading);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.appt-noscript { max-width: 900px; margin: 0 auto 24px; padding: 16px 20px; background: var(--danger-bg); color: var(--danger); text-align: center; }
.appt-noscript a { color: inherit; text-decoration: underline; }

/* ---------- Sihirbaz kabı ---------- */
.appt-wizard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- Adım göstergesi (ok biçimli) ---------- */
.appt-steps { position: relative; }
.appt-steps__list { display: flex; list-style: none; margin: 0; padding: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.appt-steps__item { flex: 1 1 0; min-width: 0; position: relative; }
.appt-steps__item + .appt-steps__item { margin-left: calc(2px - var(--appt-chev)); }
.appt-steps__btn {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 calc(var(--appt-chev) + 10px) 0 calc(var(--appt-chev) + 16px);
    border: 0;
    background: var(--bg-soft);
    color: var(--text-muted);
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.25;
    text-align: left;
    clip-path: polygon(0 0, calc(100% - var(--appt-chev)) 0, 100% 50%, calc(100% - var(--appt-chev)) 100%, 0 100%, var(--appt-chev) 50%);
    transition: background-color .3s var(--ease), color .3s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.appt-steps__item:first-child .appt-steps__btn { clip-path: polygon(0 0, calc(100% - var(--appt-chev)) 0, 100% 50%, calc(100% - var(--appt-chev)) 100%, 0 100%); padding-left: 20px; }
.appt-steps__item:last-child .appt-steps__btn { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--appt-chev) 50%); padding-right: 20px; }
.appt-steps__btn:disabled { cursor: default; }
.appt-steps__num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: .7rem;
    letter-spacing: 0;
}
.appt-steps__num .icon { display: none; }
.appt-steps__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt-steps__item.is-active .appt-steps__btn { background: var(--appt-sel); color: var(--appt-sel-text); }
.appt-steps__item.is-done .appt-steps__btn { background: var(--accent-soft); color: var(--heading); cursor: pointer; }
.appt-steps__item.is-done .appt-steps__btn:hover { background: var(--bg-muted); }
.appt-steps__item.is-done .appt-steps__digit { display: none; }
.appt-steps__item.is-done .appt-steps__num .icon { display: block; }
.appt-steps__btn:focus-visible { outline: none; }
.appt-steps__btn:focus-visible .appt-steps__label { text-decoration: underline; text-underline-offset: 4px; }
.appt-steps__mobile { display: none; }

/* ---------- Paneller ---------- */
.appt-panel { padding: clamp(22px, 3.6vw, 40px) var(--appt-pad); }
.appt-panel.is-enter-next { animation: apptInNext .5s var(--ease-out) both; }
.appt-panel.is-enter-prev { animation: apptInPrev .5s var(--ease-out) both; }
@keyframes apptInNext { from { opacity: 0; transform: translateX(24px); } }
@keyframes apptInPrev { from { opacity: 0; transform: translateX(-24px); } }

.appt-panel__head { margin-bottom: clamp(18px, 2.6vw, 26px); }
.appt-panel__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.appt-panel__head--row > div { min-width: 0; }
.appt-panel__title {
    font-family: var(--font-head);
    font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track);
    margin: 0 0 6px;
    color: var(--heading);
}
.appt-panel__title:focus { outline: none; }
.appt-panel__title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.appt-panel__sub { color: var(--text-muted); font-size: .9rem; margin: 0; }
.appt-req-note { white-space: nowrap; }
.appt .req { color: var(--danger); }
.appt-optional { font-family: var(--font-body); font-weight: 400; font-size: .75rem; letter-spacing: 0; text-transform: none; color: var(--text-muted); margin-left: 4px; }

.appt-step-error { color: var(--danger); font-size: .88rem; margin: 14px 0 0; }
.appt-step-error:empty { display: none; }

.appt-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 2px;
    background: none;
    border: 0;
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--heading);
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
    cursor: pointer;
}
.appt-link:hover { color: var(--accent); }

.appt-pill {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    margin: 0;
    padding: 4px 6px 4px 14px;
    border: 1px solid var(--line-strong);
    background: var(--bg-soft);
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--heading);
}
.appt-pill > span { min-width: 0; }

/* ---------- Adım 1: Tür kartları ---------- */
.appt-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.appt-type {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.appt-type:hover { border-color: var(--heading); }
.appt-type.is-selected { border-color: var(--heading); box-shadow: inset 0 0 0 1px var(--heading); background: var(--bg-soft); }
.appt-type__btn {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    align-items: start;
    gap: 16px;
    width: 100%;
    height: 100%;
    min-height: 120px;
    padding: 22px 20px;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.appt-type__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.appt-type__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--heading); }
.appt-type__body { min-width: 0; }
.appt-type__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.appt-type__title {
    font-family: var(--font-head);
    font-size: clamp(.9rem, .85rem + .25vw, 1.02rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--heading);
    line-height: 1.3;
}
.appt-type__text { display: block; font-size: .88rem; line-height: 1.6; color: var(--text-soft); }
.appt-type__check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: transparent;
    transition: background-color .2s, border-color .2s, color .2s;
}
.appt-type.is-selected .appt-type__check { background: var(--appt-sel); border-color: var(--appt-sel); color: var(--appt-sel-text); }

.appt-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--success);
    color: var(--success);
    font-family: var(--font-head);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ---------- Adım 1: Tür ayrıntıları ---------- */
.appt-extra { margin-top: clamp(24px, 3.4vw, 34px); padding-top: clamp(22px, 3vw, 30px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 12px); }
.appt-extra.has-totals { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3.4vw, 40px); align-items: start; }
.appt-extra__title { font-family: var(--font-head); font-size: .95rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); margin: 0 0 4px; }
.appt-extra__sub { font-size: .86rem; color: var(--text-muted); margin: 0 0 14px; }
.appt-extra__empty { padding: 16px; background: var(--bg-soft); color: var(--text); font-size: .9rem; }
.appt-svc-wrap { min-width: 0; }

.appt-acc { scroll-margin-top: calc(var(--header-h) + 12px); }
.appt-acc > .acc__summary { gap: 12px; min-height: 54px; padding-inline: 2px; letter-spacing: 1px; }
.appt-acc__name { flex: 1; min-width: 0; }
.appt-acc__count {
    flex-shrink: 0;
    padding: 3px 8px;
    background: var(--appt-sel);
    color: var(--appt-sel-text);
    font-family: var(--font-head);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.appt-acc > .acc__body { padding: 0 0 14px; }
.appt-svcs { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 6px; }

.appt-svc {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.appt-svc:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.appt-svc input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.appt-svc__box { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); background: var(--surface); color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.appt-svc__main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.appt-svc__name { font-size: .92rem; font-weight: 500; color: var(--heading); overflow-wrap: anywhere; line-height: 1.35; }
.appt-svc__meta { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--text-muted); }
.appt-svc__price { font-family: var(--font-head); font-size: .86rem; font-weight: 600; color: var(--heading); white-space: nowrap; text-align: right; }
.appt-svc input:checked ~ .appt-svc__box { background: var(--appt-sel); border-color: var(--appt-sel); color: var(--appt-sel-text); }
.appt-svc:has(input:checked) { border-color: var(--heading); background: var(--bg-soft); }
.appt-svc input:focus-visible ~ .appt-svc__box { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Seçim özeti */
.appt-totals {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    padding: 20px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    min-width: 0;
}
.appt-totals__title { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--heading); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.appt-totals__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.appt-totals__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; align-items: center; gap: 8px; font-size: .86rem; color: var(--text); }
.appt-totals__name { min-width: 0; overflow-wrap: anywhere; }
.appt-totals__price { white-space: nowrap; font-weight: 500; color: var(--heading); }
.appt-totals__remove { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.appt-totals__remove:hover { color: var(--danger); background: var(--surface); }
.appt-totals__empty { margin: 0; font-size: .86rem; color: var(--text-muted); }
.appt-totals__sum { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.appt-totals__sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.appt-totals__sum dt { font-family: var(--font-head); font-size: .68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.appt-totals__sum dd { margin: 0; font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--heading); text-align: right; }
.appt-totals__note { margin: 10px 0 0; font-size: .74rem; line-height: 1.5; color: var(--text-muted); }
.appt-totals__staff { margin-top: 16px; }

/* Gelinlik / sanal */
.appt-dress, .appt-info-note { max-width: 760px; }
.appt-info-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); font-size: .92rem; line-height: 1.6; }
.appt-info-note .icon { flex-shrink: 0; color: var(--heading); margin-top: 2px; }
.appt-info-note p { margin: 0; }

.appt-choice { display: block; border: 0; margin: 0; padding: 0; min-width: 0; }
.appt-choice > legend { padding: 0; margin: 0 0 10px; }
.appt-choice .field__error { margin-top: 8px; }
.appt-choice__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.appt-choice__opt { position: relative; display: flex; min-width: 0; }
.appt-choice__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.appt-choice__opt span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    font-size: .88rem;
    text-align: center;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.appt-choice__opt span:hover { border-color: var(--heading); }
.appt-choice__opt input:checked + span { background: var(--appt-sel); border-color: var(--appt-sel); color: var(--appt-sel-text); }
.appt-choice__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field.has-error .appt-choice__opt span { border-color: var(--danger); }

/* ---------- Adım 2: Takvim + saatler ---------- */
.appt-alert { margin: 0 0 18px; padding: 14px 16px; background: var(--danger-bg); color: var(--danger); font-size: .9rem; line-height: 1.5; animation: apptShake .5s var(--ease); }
@keyframes apptShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.appt-date { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--line); }
.appt-cal { padding: clamp(16px, 2.2vw, 26px); border-right: 1px solid var(--line); min-width: 0; }
.appt-cal__label { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); margin: 0 0 12px; }
.appt-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.appt-cal__nav, .appt-slots__nav {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--heading);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.appt-cal__nav:hover:not(:disabled), .appt-slots__nav:hover:not(:disabled) { background: var(--appt-sel); border-color: var(--appt-sel); color: var(--appt-sel-text); }
.appt-cal__nav:disabled, .appt-slots__nav:disabled { color: var(--text-muted); border-color: var(--line); cursor: not-allowed; }
.appt-cal__selects { display: flex; justify-content: center; gap: 8px; flex: 1; min-width: 0; }
.appt-cal__select {
    min-width: 0;
    min-height: 44px;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background-color: var(--surface);
    background-image: linear-gradient(45deg, transparent 50%, var(--heading) 50%), linear-gradient(135deg, var(--heading) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color: var(--heading);
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.appt-cal__select:focus { outline: none; border-color: var(--heading); box-shadow: 0 0 0 3px var(--accent-soft); }
.appt-cal__select--year { flex-shrink: 0; }

.appt-cal__wrap { position: relative; }
.appt-cal__grid { width: 100%; border-collapse: separate; border-spacing: 0 4px; table-layout: fixed; }
.appt-cal__grid thead th {
    padding: 10px 0;
    background: var(--accent-soft);
    font-family: var(--font-head);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--heading);
    text-align: center;
}
.appt-cal__grid td { padding: 0 2px; text-align: center; }
.appt-cal__grid.is-loading tbody { opacity: .35; transition: opacity .2s; }
.appt-cal__loading { position: absolute; inset: 40px 0 0; display: grid; place-items: center; pointer-events: none; }

.appt-day {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 52px;
    height: 46px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: .92rem;
    font-weight: 400;
    line-height: 1;
    cursor: not-allowed;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.appt-day::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: transparent; }
.appt-day--musait { color: var(--heading); font-weight: 600; cursor: pointer; }
.appt-day--musait::after { background: var(--accent); }
.appt-day--musait:hover { border-color: var(--heading); }
.appt-day--dolu { text-decoration: line-through; }
.appt-day.is-today span { box-shadow: 0 1px 0 currentColor; padding-bottom: 2px; }
.appt-day.is-selected, .appt-day.is-selected:hover { background: var(--appt-sel); border-color: var(--appt-sel); color: var(--appt-sel-text); }
.appt-day.is-selected::after { background: var(--appt-sel-text); }
.appt-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 1; }

.appt-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: .78rem; color: var(--text-soft); }
.appt-legend li { display: inline-flex; align-items: center; gap: 7px; }
.appt-legend__sw { width: 14px; height: 14px; border: 1px solid var(--line-strong); }
.appt-legend__sw--musait { background: radial-gradient(circle, var(--accent) 0 2.5px, transparent 3px); }
.appt-legend__sw--dolu { background: linear-gradient(var(--text-muted), var(--text-muted)) center / 10px 1px no-repeat; }
.appt-legend__sw--kapali { background: var(--bg-muted); }

.appt-slots { padding: clamp(16px, 2.2vw, 26px); min-width: 0; outline: none; scroll-margin-top: calc(var(--header-h) + 12px); display: flex; flex-direction: column; }
.appt-slots__head { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin-bottom: 16px; }
.appt-slots__title { margin: 0; font-family: var(--font-head); font-size: clamp(.9rem, .85rem + .3vw, 1.05rem); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); text-align: center; overflow-wrap: anywhere; }
.appt-slots__body { flex: 1; }
.appt-slots__tz { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text-muted); margin: 14px 0 0; }
.appt-slots__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.appt-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    padding: 6px 4px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--heading);
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .5px;
    line-height: 1.15;
    cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.appt-slot:hover:not(:disabled) { border-color: var(--heading); background: var(--bg-soft); }
.appt-slot[aria-pressed="true"], .appt-slot[aria-pressed="true"]:hover { background: var(--appt-sel); border-color: var(--appt-sel); color: var(--appt-sel-text); }
.appt-slot:disabled { cursor: not-allowed; background: var(--bg-soft); color: var(--text-muted); border-color: var(--line); font-weight: 400; }
.appt-slot:disabled .appt-slot__time { text-decoration: line-through; }
.appt-slot small { font-family: var(--font-body); font-size: .62rem; font-weight: 500; letter-spacing: .3px; text-transform: uppercase; }
.appt-slot__left { color: var(--accent); }
.appt-slot[aria-pressed="true"] .appt-slot__left { color: inherit; }
.appt-slots__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 180px; padding: 20px; border: 1px dashed var(--line-strong); text-align: center; color: var(--text-muted); font-size: .88rem; }
.appt-slots__empty p { margin: 0; max-width: 280px; }
.appt-slots__empty--warn { border-style: solid; background: var(--bg-soft); color: var(--text); }
.appt-skel { min-height: 50px; background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-soft) 50%, var(--bg-muted) 75%); background-size: 200% 100%; animation: apptShimmer 1.2s linear infinite; }
@keyframes apptShimmer { to { background-position: -200% 0; } }
.appt-spinner { display: inline-block; width: 28px; height: 28px; border: 2px solid var(--line-strong); border-top-color: var(--heading); border-radius: 50%; animation: spin .8s linear infinite; }

/* ---------- Adım 3: Kişisel bilgiler ---------- */
.appt-info { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3.6vw, 44px); align-items: start; }
.appt-info__main { min-width: 0; }
.appt-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.appt-fields .field--full { grid-column: 1 / -1; }
.appt .field__input, .appt .field__select, .appt .field__textarea, .appt .phone-input { border-radius: var(--radius); }
.appt-date-input { display: block; text-align: left; min-width: 0; color-scheme: light; }
[data-theme="dark"] .appt-date-input { color-scheme: dark; }
.appt-date-input::-webkit-date-and-time-value { text-align: left; }
.appt-consents .check { font-size: .84rem; }
.appt-consents .check input { width: 20px; height: 20px; }
.field.has-error .check input { outline: 2px solid var(--danger); outline-offset: 1px; }
.appt-captcha:empty { display: none; }
.appt-captcha { margin-top: 20px; }
.appt-captcha .form-recaptcha { margin: 0; }

.appt-summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 20px; background: var(--bg-soft); border: 1px solid var(--line); min-width: 0; }
.appt-summary__title { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: var(--track); text-transform: uppercase; color: var(--heading); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.appt-summary__list { margin: 0; display: grid; gap: 14px; }
.appt-summary__row dt { font-family: var(--font-head); font-size: .66rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.appt-summary__row dd { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .92rem; color: var(--heading); }
.appt-summary__row dd > span { min-width: 0; overflow-wrap: anywhere; }
.appt-summary__svcs, .appt-ticket__svcs { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 4px; }
.appt-summary__svcs li, .appt-ticket__svcs li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; }
.appt-summary__svcs li span:first-child, .appt-ticket__svcs li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.appt-summary__svcs li span:last-child, .appt-ticket__svcs li span:last-child { white-space: nowrap; font-weight: 500; }
.appt-summary__note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.6; color: var(--text-soft); }

/* ---------- Eylem çubuğu ---------- */
.appt-actions { border-top: 1px solid var(--line); padding: 18px var(--appt-pad); background: var(--surface); }
.appt-actions__inner { display: flex; align-items: center; gap: 14px; }
.appt-actions__hint {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.appt-actions__back { flex-shrink: 0; }
.appt-actions__next, .appt-actions__submit { flex-shrink: 0; min-width: 200px; margin-left: auto; }
.appt-actions__hint + .appt-actions__next, .appt-actions__hint ~ .appt-actions__submit { margin-left: 0; }
.appt-form-message { padding: 0 var(--appt-pad); margin: 0; }
.appt-form-message:not(:empty) { padding-bottom: 16px; margin-top: -4px; text-align: right; }

/* ---------- Adım 4: Son ---------- */
.appt-done { text-align: center; max-width: 720px; margin-inline: auto; padding-block: clamp(34px, 6vw, 68px); }
.appt-done__check { display: grid; place-items: center; margin-bottom: 16px; }
.appt-done__check svg { overflow: visible; }
.appt-done__ring { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 190; stroke-dashoffset: 190; transform-origin: 50% 50%; transform: rotate(-90deg); }
.appt-done__tick { fill: none; stroke: var(--heading); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 44; }
.appt-done.is-current .appt-done__ring { animation: apptDraw .9s var(--ease-out) .1s forwards; }
.appt-done.is-current .appt-done__tick { animation: apptDraw .5s var(--ease-out) .75s forwards; }
@keyframes apptDraw { to { stroke-dashoffset: 0; } }
.appt-done__eyebrow { font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.appt-done__title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: var(--track); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); margin: 0 0 12px; color: var(--heading); }
.appt-done__title:focus { outline: none; }
.appt-done__text { color: var(--text-soft); max-width: 560px; margin: 0 auto; }

.appt-ticket { margin: 28px 0 16px; text-align: left; border: 1px solid var(--line); background: var(--bg-soft); }
.appt-ticket__code { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 18px 22px; border-bottom: 1px dashed var(--line-strong); }
.appt-ticket__label { flex-basis: 100%; font-family: var(--font-head); font-size: .66rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.appt-ticket__value { font-family: var(--font-head); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; letter-spacing: 2px; color: var(--heading); line-height: 1.1; }
.appt-ticket__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding: 20px 22px 22px; }
.appt-ticket__full { grid-column: 1 / -1; }
.appt-ticket__list dt { font-family: var(--font-head); font-size: .66rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.appt-ticket__list dd { margin: 0; font-size: .94rem; color: var(--heading); overflow-wrap: anywhere; }
.appt-done__note { margin: 0 auto 22px; padding: 12px 16px; max-width: 580px; background: var(--accent-soft); color: var(--text); font-size: .86rem; line-height: 1.6; }
.appt-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ==========================================================================
   Duyarlı düzen
   ========================================================================== */
@media (max-width: 1020px) {
    .appt-extra.has-totals { grid-template-columns: minmax(0, 1fr); }
    .appt-totals { position: static; }
    .appt-info { grid-template-columns: minmax(0, 1fr); }
    .appt-summary { position: static; order: -1; }
}

@media (max-width: 880px) {
    .appt-date { grid-template-columns: minmax(0, 1fr); }
    .appt-cal { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 767px) {
    .appt { padding-top: 20px; --appt-pad: 16px; }
    .appt-notice { padding: 14px 16px; gap: 12px; }
    .appt-wizard { margin-inline: -1px; }

    /* Adım göstergesi → kompakt ilerleme */
    .appt-steps__list { display: none; }
    .appt-steps__mobile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 14px var(--appt-pad) 0; }
    .appt-steps__count { margin: 0; font-family: var(--font-head); font-size: 1rem; color: var(--text-muted); line-height: 1; }
    .appt-steps__count b { font-size: 1.9rem; font-weight: 700; color: var(--heading); }
    .appt-steps__meta { min-width: 0; }
    .appt-steps__current { margin: 0; font-family: var(--font-head); font-size: .84rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--heading); line-height: 1.3; }
    .appt-steps__next { margin: 2px 0 0; font-size: .76rem; color: var(--text-muted); }
    .appt-steps__next:empty { display: none; }
    .appt-steps__bar { grid-column: 1 / -1; height: 3px; margin: 12px calc(var(--appt-pad) * -1) 0; background: var(--line); overflow: hidden; }
    .appt-steps__bar span { display: block; height: 100%; background: var(--heading); transition: width .5s var(--ease-out); }

    .appt-panel { padding: 20px var(--appt-pad) 26px; }
    .appt-panel__head--row { align-items: flex-start; }

    .appt-types { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .appt-type__btn { grid-template-columns: 40px minmax(0, 1fr) 26px; gap: 12px; min-height: 0; padding: 16px 14px; }
    .appt-type__icon { width: 40px; height: 40px; }
    .appt-type__icon .icon { width: 18px; height: 18px; }
    .appt-type__check { width: 26px; height: 26px; }
    .appt-type__text { font-size: .84rem; }

    .appt-svc { padding: 10px 12px; gap: 10px; grid-template-columns: 22px minmax(0, 1fr); }
    .appt-svc__price { grid-column: 2; text-align: left; font-size: .82rem; }
    .appt-choice__list { grid-template-columns: minmax(0, 1fr); }

    .appt-cal { padding: 14px 12px 16px; }
    .appt-cal__grid td { padding: 0 1px; }
    .appt-cal__select { padding-inline: 10px 26px; background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; letter-spacing: .5px; }
    .appt-day { height: 44px; font-size: .9rem; }
    .appt-slots { padding: 16px 12px 18px; }

    .appt-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 10px; }
    .appt-fields > .field:not(.field--name) { grid-column: 1 / -1; }

    /* Sabit alt eylem çubuğu */
    .appt-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-top: 1px solid var(--line-strong);
        box-shadow: var(--shadow-sm);
    }
    .appt-actions__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; }
    .appt-actions__hint { grid-column: 1 / -1; grid-row: 1; text-align: center; font-size: .68rem; color: var(--text); }
    .appt-actions__hint:empty { display: none; }
    .appt-actions__back { min-width: 48px; padding-inline: 14px; }
    .appt-actions__back span { display: none; }
    .appt-actions__back[hidden] + .appt-actions__hint + .appt-actions__next,
    .appt-actions__back[hidden] ~ .appt-actions__submit { grid-column: 1 / -1; }
    .appt-actions__next, .appt-actions__submit { min-width: 0; width: 100%; margin: 0; }
    .appt-form-message:not(:empty) { text-align: left; padding-top: 0; }

    body.appt-has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    body.appt-has-bar.appt-bar-tall { padding-bottom: calc(98px + env(safe-area-inset-bottom)); }
    body.appt-has-bar .floating-actions { bottom: calc(86px + env(safe-area-inset-bottom)); }
    body.appt-has-bar.appt-bar-tall .floating-actions { bottom: calc(108px + env(safe-area-inset-bottom)); }

    .appt-ticket__list { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; }
    .appt-ticket__code { padding: 16px; }
    .appt-done__actions .btn { width: 100%; }
}

@media (max-width: 360px) {
    .appt-fields > .field--name { grid-column: 1 / -1; }
    .appt-cal__selects { gap: 4px; }
    .appt-slots__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    .appt-done__ring, .appt-done__tick { stroke-dashoffset: 0; }
    .appt-panel.is-enter-next, .appt-panel.is-enter-prev, .appt-alert { animation: none; }
}
