/* İşletmenin online sayfası (vitrin, online randevu, üye kaydı, giriş). Yalnız aydınlık görünüm;
   renkler sitenin aydınlık temasıyla aynı. */

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/poppins-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/poppins-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/poppins-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/poppins-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ks-brand: #4361ee;
    --ks-brand-dark: #3a56d4;
    --ks-bg: #f6f7fb;
    --ks-card: #ffffff;
    --ks-soft: #eef1f8;
    --ks-text: #0f172a;
    --ks-muted: #4b5873;
    --ks-line: #e3e8f2;
    --ks-line-strong: #d3dbea;
    --ks-danger: #c62828;
    --ks-ok: #1b8a4b;
    --ks-wait: #b45309;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 28px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ks-text);
    background:
        radial-gradient(60% 50% at 10% 0%, rgba(67, 97, 238, 0.14), transparent 70%),
        radial-gradient(50% 45% at 95% 10%, rgba(76, 201, 240, 0.16), transparent 70%),
        var(--ks-bg);
    background-attachment: fixed;
}

/* ---- üst şerit: yalnız logo ---- */

.ks-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ks-top img {
    display: block;
    border-radius: 9px;
}

/* ---- kart ---- */

.ks-card {
    width: 100%;
    max-width: 460px;
    padding: 30px 24px 26px;
    background: var(--ks-card);
    border: 1px solid var(--ks-line);
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 60px rgba(15, 23, 42, 0.10);
}

.ks-eyebrow {
    margin: 0 0 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ks-brand);
    overflow-wrap: anywhere;
}

.ks-title {
    margin: 0 0 12px;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
    outline: none;
}

.ks-lead {
    margin: 0 0 14px;
    color: var(--ks-muted);
    overflow-wrap: anywhere;
}

.ks-lead strong {
    color: var(--ks-text);
    font-weight: 600;
}

.ks-meta {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--ks-soft);
    font-size: 0.92rem;
    font-weight: 500;
}

.ks-hint {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--ks-muted);
}

.ks-center {
    text-align: center;
}

/* ---- düğmeler ---- */

.ks-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.ks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.ks-btn-block {
    display: flex;
    width: 100%;
}

.ks-btn-primary {
    background: linear-gradient(120deg, var(--ks-brand), var(--ks-brand-dark));
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(67, 97, 238, 0.30);
}

.ks-btn-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(67, 97, 238, 0.40);
}

.ks-btn-ghost {
    background: var(--ks-card);
    color: var(--ks-text);
    border-color: var(--ks-line-strong);
}

.ks-btn-ghost:hover {
    border-color: var(--ks-brand);
}

.ks-btn-danger {
    background: var(--ks-danger);
    color: #ffffff;
}

.ks-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ks-btn:focus-visible,
.ks-link:focus-visible,
.ks-close:focus-visible {
    outline: 3px solid rgba(67, 97, 238, 0.45);
    outline-offset: 2px;
}

.ks-link {
    padding: 8px 4px;
    border: 0;
    background: none;
    color: var(--ks-brand-dark);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ks-link:disabled {
    color: var(--ks-muted);
    text-decoration: none;
    cursor: default;
}

.ks-link-center {
    display: block;
    margin: 12px auto 0;
}

.ks-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 16px;
    margin-top: 10px;
}

/* ---- form ---- */

.ks-field {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.ks-field > label:not(.ks-choice),
.ks-field > legend {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.ks-field input[type="text"],
.ks-field input[type="tel"],
.ks-field input[type="email"],
.ks-field input[type="password"],
.ks-field select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--ks-line-strong);
    border-radius: 12px;
    background: var(--ks-card);
    color: var(--ks-text);
    font-family: inherit;
    /* 16px: iPhone küçük yazılı kutuya dokununca sayfayı yakınlaştırıyor */
    font-size: 16px;
    line-height: 1.3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ks-field input:focus,
.ks-field select:focus {
    outline: none;
    border-color: var(--ks-brand);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.16);
}

.ks-field.ks-invalid input[type="text"],
.ks-field.ks-invalid input[type="tel"],
.ks-field.ks-invalid input[type="email"],
.ks-field.ks-invalid input[type="password"],
.ks-field.ks-invalid select {
    border-color: var(--ks-danger);
}

.ks-phone {
    display: flex;
    gap: 8px;
}

.ks-phone select {
    flex: 0 0 96px;
    width: 96px;
    padding-left: 10px;
    padding-right: 4px;
}

.ks-phone #ks-dial {
    flex: 0 0 78px;
    width: 78px;
}

.ks-phone #ks-phone {
    flex: 1 1 auto;
    min-width: 0;
}

.ks-gender {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.ks-gender legend {
    width: 100%;
}

.ks-gender .ks-choice {
    flex: 1 1 120px;
    min-height: 50px;
    padding: 10px 14px;
    border: 1px solid var(--ks-line-strong);
    border-radius: 12px;
}

.ks-gender .ks-error {
    flex: 1 1 100%;
}

.ks-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.ks-choice input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--ks-brand);
}

.ks-consent .ks-link {
    padding-left: 30px;
}

.ks-error {
    margin: 6px 0 0;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ks-danger);
}

.ks-message {
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #fdecec;
    color: var(--ks-danger);
    font-size: 0.9rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.ks-message.ks-info {
    background: var(--ks-soft);
    color: var(--ks-text);
}

.ks-code-input {
    text-align: center;
    letter-spacing: 0.4em;
    font-weight: 600;
}

.ks-bot {
    min-height: 0;
    margin: 0 0 14px;
}

.ks-bot:empty {
    margin: 0;
}

.ks-extra {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---- durum rozetleri ---- */

.ks-badge {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 0 16px;
    border-radius: 50%;
    background: var(--ks-soft);
}

.ks-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
}

.ks-badge-ok {
    background: rgba(27, 138, 75, 0.14);
}

.ks-badge-ok::after {
    width: 12px;
    height: 22px;
    border: solid var(--ks-ok);
    border-width: 0 4px 4px 0;
    transform: translateY(-3px) rotate(45deg);
}

.ks-badge-wait {
    background: rgba(180, 83, 9, 0.14);
}

/* Saat: halka + iki kol */
.ks-badge-wait::after {
    width: 28px;
    height: 28px;
    border: 3px solid var(--ks-wait);
    border-radius: 50%;
}

.ks-badge-wait::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 9px;
    margin: -8px 0 0 -1.5px;
    border: solid var(--ks-wait);
    border-width: 0 0 3px 3px;
    border-radius: 0 0 0 1px;
}

.ks-badge-muted::after {
    width: 22px;
    height: 4px;
    border-radius: 2px;
    background: var(--ks-muted);
}

.ks-confirm {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--ks-line-strong);
    border-radius: 14px;
    background: var(--ks-soft);
}

.ks-confirm p {
    margin: 0;
    font-weight: 500;
}

.ks-confirm .ks-actions {
    flex-direction: row;
    margin-top: 12px;
}

.ks-confirm .ks-btn {
    flex: 1 1 0;
    min-height: 46px;
    padding: 10px 12px;
}

/* ---- yükleniyor ---- */

.ks-spinner {
    width: 36px;
    height: 36px;
    margin: 36px auto;
    border: 4px solid var(--ks-soft);
    border-top-color: var(--ks-brand);
    border-radius: 50%;
    animation: ks-spin 0.9s linear infinite;
}

@keyframes ks-spin {
    to {
        transform: rotate(360deg);
    }
}

.ks-btn.ks-busy {
    position: relative;
    color: transparent;
}

.ks-btn.ks-busy::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ks-spin 0.9s linear infinite;
}

/* ---- alt bilgi ---- */

.ks-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    margin-top: 18px;
    font-size: 0.8rem;
    color: var(--ks-muted);
    text-align: center;
}

.ks-foot a {
    color: var(--ks-muted);
}

/* ---- aydınlatma metni penceresi ---- */

.ks-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(15, 23, 42, 0.55);
}

.ks-dialog {
    display: flex;
    flex-direction: column;
    width: min(620px, 100%);
    max-height: 92vh;
    max-height: 92dvh;
    background: var(--ks-card);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.30);
    overflow: hidden;
}

.ks-dialog-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px 14px 20px;
    border-bottom: 1px solid var(--ks-line);
}

.ks-dialog-head h2 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    outline: none;
}

.ks-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--ks-soft);
    color: var(--ks-text);
    font-family: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.ks-dialog-body {
    flex: 1 1 auto;
    padding: 16px 20px;
    overflow-y: auto;
    font-size: 0.92rem;
    color: var(--ks-muted);
}

.ks-dialog-body h3 {
    margin: 18px 0 6px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ks-text);
}

.ks-dialog-body h3:first-child {
    margin-top: 0;
}

.ks-dialog-body p {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.ks-dialog-body .ks-notice-version {
    margin-top: 16px;
    font-size: 0.8rem;
}

.ks-dialog-foot {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--ks-line);
}

.ks-dialog-foot .ks-btn {
    min-height: 46px;
}

body.ks-locked {
    overflow: hidden;
}

@media (max-width: 420px) {
    body {
        padding: 14px 10px 22px;
    }

    .ks-card {
        padding: 24px 18px 22px;
        border-radius: 20px;
    }

    .ks-title {
        font-size: 1.35rem;
    }

    .ks-phone select {
        flex-basis: 90px;
        width: 90px;
    }
}

@media (min-width: 900px) {
    body {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ks-btn {
        transition: none;
    }
}

/* ==================================================================
   İŞLETMENİN SAYFASI (vitrin + online randevu).
   Düzen: üstte işletmenin vitrin kartı (kapak, logo, ad, tanıtım, iletişim, giriş), altında randevu kartı
   (solda adımlar, sağda randevu özeti). Geniş düzen yalnız bu görünümde; diğer ekranlar dar kart olarak kalır.
   Simgeler dosya değil, CSS içindeki küçük çizimlerdir.
   ================================================================== */

body.ks-wide-body {
    padding-top: 16px;
    background:
        radial-gradient(70% 40% at 50% 0%, rgba(67, 97, 238, 0.10), transparent 70%),
        var(--ks-bg);
    background-attachment: fixed;
}

/* İşletmenin sayfasında üstteki GymKod şeridi yoktur; sayfa işletmenindir (altbilgide yazar). */
body.ks-wide-body .ks-top {
    display: none;
}

.ks-card.ks-wide {
    max-width: 1120px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.kb-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.kb-layout.kb-solo {
    max-width: 760px;
    margin: 0 auto;
}

/* ---- yükleniyor: sayfanın iskeleti (vitrin + randevu kartı gelene kadar aynı yerde durur) ---- */

.kb-skel {
    display: none;
}

.ks-wide .kb-skel {
    display: grid;
    gap: 18px;
}

.ks-wide [data-view="loading"] .ks-spinner {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    animation: none;
}

/* Dar yükleniyor (eldeki başvuru / randevu açılırken): kutu ve üst şerit yok, ortada halka + yazı. */
body.ks-loading-body .ks-top {
    display: none;
}

.ks-card.ks-loading:not(.ks-wide) {
    background: none;
    border-color: transparent;
    box-shadow: none;
}

.ks-loading-text {
    margin: -18px 0 24px;
    color: var(--ks-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-align: center;
}

.ks-wide .ks-loading-text {
    display: none;
}

.kb-skel-hero,
.kb-skel-main {
    background: var(--ks-card);
    border: 1px solid var(--ks-line);
    border-radius: 28px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.kb-skel-bar {
    display: block;
    border-radius: 10px;
    background: linear-gradient(100deg, var(--ks-soft) 30%, #f8f9fd 50%, var(--ks-soft) 70%);
    background-size: 200% 100%;
    animation: kb-shimmer 1.4s linear infinite;
}

@keyframes kb-shimmer {
    to {
        background-position: -200% 0;
    }
}

.kb-skel-cover {
    height: clamp(130px, 24vw, 280px);
    border-radius: 0;
}

.kb-skel-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 20px 4px;
}

.kb-skel-logo {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    margin-top: -56px;
    border: 4px solid var(--ks-card);
    border-radius: 24px;
}

.kb-skel-lines {
    flex: 1 1 auto;
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.kb-skel-lines .kb-skel-bar:first-child {
    width: min(320px, 72%);
    height: 28px;
}

.kb-skel-lines .kb-skel-bar:last-child {
    width: min(520px, 92%);
    height: 14px;
}

.kb-skel-chips {
    display: flex;
    gap: 8px;
    padding: 14px 20px 20px;
    overflow: hidden;
}

.kb-skel-chips .kb-skel-bar {
    flex: 0 0 150px;
    height: 36px;
    border-radius: 999px;
}

.kb-skel-main {
    display: grid;
    gap: 14px;
    padding: 22px 18px;
}

.kb-skel-title {
    width: 190px;
    height: 24px;
}

.kb-skel-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
}

.kb-skel-steps .kb-skel-bar {
    flex: 1 1 0;
    height: 30px;
    border-radius: 999px;
}

.kb-skel-item {
    height: 92px;
    border-radius: 18px;
}

@media (min-width: 560px) {
    .kb-skel-row {
        padding: 20px 28px 6px;
    }

    .kb-skel-logo {
        width: 104px;
        height: 104px;
        margin-top: -68px;
        border-radius: 28px;
    }

    .kb-skel-chips {
        padding: 16px 28px 24px;
    }

    .kb-skel-main {
        padding: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kb-skel-bar {
        animation: none;
    }
}

/* ---- vitrin kartı ---- */

.kb-hero,
.kb-main {
    min-width: 0;
    background: var(--ks-card);
    border: 1px solid var(--ks-line);
    border-radius: 28px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 48px rgba(15, 23, 42, 0.08);
}

.kb-hero {
    overflow: hidden;
}

/* Kapak: resim yoksa ya da yüklenemezse düz bant kalır. */
.kb-cover {
    position: relative;
    height: 104px;
    background: linear-gradient(120deg, var(--ks-brand), #4cc9f0);
}

.kb-cover img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-cover.kb-cover-image {
    height: clamp(170px, 24vw, 280px);
    background: var(--ks-soft);
}

.kb-cover.kb-cover-image img {
    display: block;
}

.kb-cover.kb-cover-image::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.26), transparent);
    pointer-events: none;
}

.kb-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px 18px;
    padding: 18px 20px 4px;
}

.kb-logo {
    position: relative;
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    margin-top: -56px;
    border: 4px solid var(--ks-card);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.kb-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kb-identity-text {
    flex: 1 1 200px;
    min-width: 0;
}

.kb-identity-text .ks-title {
    margin: 0;
    font-size: clamp(1.45rem, 3.2vw, 2.05rem);
    line-height: 1.2;
}

.kb-intro {
    margin: 6px 0 0;
    max-width: 62ch;
    color: var(--ks-muted);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Giriş / kayıt: mevcut üyeler için; randevu akışının önüne geçmez. */
.kb-account {
    flex: 1 1 100%;
    min-width: 0;
}

.kb-account .ks-actions {
    flex-direction: row;
    gap: 8px;
    margin-top: 0;
}

.kb-account .ks-btn {
    flex: 1 1 0;
    min-height: 44px;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 0.94rem;
}

.kb-account .ks-hint {
    margin: 8px 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
}

/* ---- iletişim: simgeli hap satırı ---- */

.kb-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 14px 20px 20px;
    list-style: none;
}

.kb-contact li {
    /* Gizli etiketin (ekran okuyucu metni) konumu hapın içinde kalsın. */
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 14px 8px 12px;
    border-radius: 999px;
    background: var(--ks-soft);
    font-size: 0.88rem;
    font-weight: 500;
}

.kb-contact li::before {
    content: '';
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background-color: var(--ks-brand);
    -webkit-mask: var(--kb-icon) center / contain no-repeat;
    mask: var(--kb-icon) center / contain no-repeat;
}

.kb-contact-address {
    --kb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.6A2.6 2.6 0 1 1 12 6.4a2.6 2.6 0 0 1 0 5.2z'/%3E%3C/svg%3E");
}

.kb-contact-phone {
    --kb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.58 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.24 1.02z'/%3E%3C/svg%3E");
}

.kb-contact-instagram {
    --kb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M7.5 2h9A5.5 5.5 0 0 1 22 7.5v9a5.5 5.5 0 0 1-5.5 5.5h-9A5.5 5.5 0 0 1 2 16.5v-9A5.5 5.5 0 0 1 7.5 2zm0 2A3.5 3.5 0 0 0 4 7.5v9A3.5 3.5 0 0 0 7.5 20h9a3.5 3.5 0 0 0 3.500-3.500v-9A3.5 3.5 0 0 0 16.500 4zM12 7.200a4.800 4.800 0 1 1 0 9.600 4.800 4.800 0 0 1 0-9.600zm0 2a2.800 2.800 0 1 0 0 5.600 2.800 2.800 0 0 0 0-5.600zm5.100-3.500a1.150 1.150 0 1 1 0 2.300 1.150 1.150 0 0 1 0-2.300z'/%3E%3C/svg%3E");
}

.kb-contact-web {
    --kb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm6.900 6h-2.700a15.600 15.600 0 0 0-1.300-3.400A8 8 0 0 1 18.900 8zM12 4.100c.800 1.100 1.500 2.400 1.900 3.900h-3.800c.400-1.500 1.100-2.800 1.900-3.900zM4.300 14a8 8 0 0 1 0-4h3.200a16.600 16.600 0 0 0 0 4zm.800 2h2.700c.300 1.200.800 2.400 1.300 3.400A8 8 0 0 1 5.100 16zm2.700-8H5.100a8 8 0 0 1 4-3.400C8.600 5.600 8.100 6.800 7.800 8zM12 19.900c-.800-1.100-1.500-2.400-1.900-3.900h3.800c-.400 1.500-1.100 2.800-1.900 3.900zm2.400-5.900H9.600a14.700 14.700 0 0 1 0-4h4.800a14.700 14.700 0 0 1 0 4zm.500 5.400c.500-1 1-2.200 1.300-3.400h2.700a8 8 0 0 1-4 3.400zm1.600-5.400a16.600 16.600 0 0 0 0-4h3.200a8 8 0 0 1 0 4z'/%3E%3C/svg%3E");
}

/* Etiket ("Adres", "Telefon"…) simgeyle anlatılır; ekran okuyucu için metin yerinde durur. */
.kb-contact-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.kb-contact-value,
.kb-ext {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kb-contact .kb-ext {
    padding: 0;
    color: var(--ks-text);
    font-size: inherit;
    font-weight: 500;
    text-decoration: none;
}

.kb-contact .kb-ext:hover {
    color: var(--ks-brand-dark);
    text-decoration: underline;
}

/* ---- randevu kartı: başlık · adımlar · özet · adım içeriği ---- */

.kb-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'steps' 'side' 'panels';
    padding: 22px 18px;
}

.kb-heading {
    grid-area: head;
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kb-steps {
    grid-area: steps;
    display: flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.kb-steps-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ks-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.kb-steps-item::after {
    content: '';
    flex: 1 1 12px;
    min-width: 12px;
    height: 2px;
    margin-right: 8px;
    border-radius: 2px;
    background: var(--ks-line-strong);
}

.kb-steps-item:last-child {
    flex: 0 0 auto;
}

.kb-steps-item:last-child::after {
    display: none;
}

.kb-steps-no {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--ks-line-strong);
    border-radius: 50%;
    background: var(--ks-card);
    font-size: 0.84rem;
    line-height: 1;
}

.kb-steps-label {
    white-space: nowrap;
}

.kb-steps-item.kb-on {
    color: var(--ks-text);
}

.kb-steps-item.kb-on .kb-steps-no {
    border-color: var(--ks-brand);
    background: var(--ks-brand);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.16);
}

.kb-steps-item.kb-done .kb-steps-no {
    border-color: transparent;
    background: rgba(67, 97, 238, 0.14);
    color: var(--ks-brand-dark);
}

.kb-steps-item.kb-done::after {
    background: var(--ks-brand);
}

.kb-panels {
    grid-area: panels;
    min-width: 0;
}

.kb-step-title {
    margin: 0 0 14px;
    font-size: 1.12rem;
    font-weight: 600;
    outline: none;
}

.kb-panels > .ks-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: var(--ks-soft);
    color: var(--ks-text);
    text-decoration: none;
}

.kb-panels > .ks-link::before {
    content: '';
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kb-panels > .ks-link:hover {
    background: var(--ks-line);
}

/* ---- özet (seçiminiz / randevum) ---- */

.kb-side {
    grid-area: side;
    min-width: 0;
}

.kb-side-title,
.kb-side-empty,
.kb-assure {
    display: none;
}

.kb-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 14px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--ks-soft);
    font-size: 0.92rem;
}

.kb-summary dt {
    color: var(--ks-muted);
    font-weight: 500;
}

.kb-summary dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---- kategori çipleri ---- */

.kb-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.kb-chip {
    min-height: 38px;
    padding: 7px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--ks-soft);
    color: var(--ks-text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.kb-chip:hover {
    border-color: var(--ks-brand);
}

.kb-chip.kb-on {
    border-color: var(--ks-text);
    background: var(--ks-text);
    color: #ffffff;
}

/* ---- hizmet ve personel kartları ---- */

.kb-list {
    display: grid;
    gap: 10px;
}

.kb-item,
.kb-person {
    position: relative;
    display: flex;
    width: 100%;
    border: 1px solid var(--ks-line);
    border-radius: 18px;
    background: var(--ks-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    color: var(--ks-text);
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kb-item {
    flex-direction: column;
    gap: 3px;
    padding: 16px 58px 16px 18px;
}

/* Sağdaki ok: satırın tıklanır olduğunu gösterir. */
.kb-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background: var(--ks-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a56d4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: background-color 0.2s ease;
}

.kb-item:hover,
.kb-person:hover {
    border-color: var(--ks-brand);
    box-shadow: 0 10px 26px rgba(67, 97, 238, 0.14);
    transform: translateY(-1px);
}

.kb-item:hover::after,
.kb-item.kb-on::after {
    background-color: var(--ks-brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
}

.kb-item.kb-on,
.kb-person.kb-on {
    border-color: var(--ks-brand);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.16);
}

.kb-item-name {
    font-size: 1.02rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.kb-item-text {
    color: var(--ks-muted);
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.kb-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 8px;
    font-size: 0.84rem;
    font-weight: 500;
}

/* Süre: küçük hap. */
.kb-item-meta > span:not(.kb-item-price) {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--ks-soft);
    color: var(--ks-muted);
}

.kb-item-price {
    color: var(--ks-text);
    font-size: 1rem;
    font-weight: 700;
}

.kb-staff {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
}

.kb-person {
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

/* "Fark etmez" seçeneği satırın tamamını kaplar; kişiler altında dizilir. */
.kb-staff .kb-person:first-child {
    grid-column: 1 / -1;
}

.kb-person-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.kb-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.16), rgba(76, 201, 240, 0.22));
    color: var(--ks-brand-dark);
    font-size: 1.2rem;
    font-weight: 600;
    overflow: hidden;
}

.kb-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---- gün şeridi ve saat ızgarası ---- */

.kb-days {
    display: flex;
    gap: 8px;
    margin: 0 -4px 16px;
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.kb-days:empty,
.kb-times:empty {
    display: none;
}

.kb-day {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 66px;
    padding: 10px;
    border: 1px solid var(--ks-line);
    border-radius: 16px;
    background: var(--ks-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    color: var(--ks-text);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kb-day-name {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ks-muted);
}

.kb-day-no {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.kb-day:hover,
.kb-time:hover {
    border-color: var(--ks-brand);
}

.kb-day.kb-on {
    border-color: var(--ks-brand);
    background: var(--ks-brand);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.28);
    color: #ffffff;
}

.kb-day.kb-on .kb-day-name {
    color: rgba(255, 255, 255, 0.86);
}

.kb-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    margin-bottom: 6px;
}

.kb-time {
    min-height: 48px;
    padding: 10px 8px;
    border: 1px solid var(--ks-line);
    border-radius: 14px;
    background: var(--ks-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    color: var(--ks-text);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.kb-time:hover {
    background: rgba(67, 97, 238, 0.08);
    color: var(--ks-brand-dark);
}

.kb-empty {
    margin: 0 0 6px;
    padding: 14px;
    border-radius: 14px;
    background: var(--ks-soft);
    color: var(--ks-muted);
    font-size: 0.92rem;
}

.kb-main .ks-spinner {
    margin: 24px auto;
}

.kb-item:focus-visible,
.kb-person:focus-visible,
.kb-day:focus-visible,
.kb-time:focus-visible,
.kb-chip:focus-visible {
    outline: 3px solid rgba(67, 97, 238, 0.45);
    outline-offset: 2px;
}

/* ---- not alanı ---- */

.ks-field textarea {
    display: block;
    width: 100%;
    min-height: 84px;
    padding: 12px 14px;
    border: 1px solid var(--ks-line-strong);
    border-radius: 12px;
    background: var(--ks-card);
    color: var(--ks-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ks-field textarea:focus {
    outline: none;
    border-color: var(--ks-brand);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.16);
}

.ks-field.ks-invalid textarea {
    border-color: var(--ks-danger);
}

/* ---- dar telefon ---- */

@media (max-width: 559px) {
    /* Adım adları yalnız bulunulan adımda yazar; diğerleri numarayla durur. */
    .kb-steps-item:not(.kb-on) .kb-steps-label {
        display: none;
    }

    .kb-hero,
    .kb-main {
        border-radius: 22px;
    }

    .kb-cover {
        height: 76px;
    }

    .kb-cover.kb-cover-image {
        height: clamp(130px, 36vw, 200px);
    }

    .kb-logo {
        width: 72px;
        height: 72px;
        margin-top: -48px;
        border-radius: 20px;
    }

    .kb-identity {
        padding: 14px 16px 2px;
    }

    .kb-identity-text {
        flex-basis: 100%;
    }

    .kb-account .ks-btn {
        min-height: 42px;
    }

    /* Telefonda iletişim hapları tek satırda yana kayar; randevu adımları yukarıda kalsın. */
    .kb-contact {
        flex-wrap: nowrap;
        padding: 12px 16px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .kb-contact::-webkit-scrollbar {
        display: none;
    }

    .kb-contact li {
        flex: 0 0 auto;
        max-width: none;
        white-space: nowrap;
    }

    /* Açıklama cümlesi telefonda yer kaplamasın; düğmeler yeterince anlaşılır. */
    .kb-account .ks-hint {
        display: none;
    }

    .kb-times {
        grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    }
}

/* ---- tablet ve üstü: fiyat satırın sağında ---- */

@media (min-width: 560px) {
    .kb-identity {
        padding: 20px 28px 6px;
    }

    .kb-contact {
        padding: 16px 28px 24px;
    }

    .kb-logo {
        width: 104px;
        height: 104px;
        margin-top: -68px;
        border-radius: 28px;
    }

    .kb-main {
        padding: 28px;
    }

    .kb-item {
        padding-right: 172px;
    }

    .kb-item-price {
        position: absolute;
        top: 50%;
        right: 60px;
        transform: translateY(-50%);
        font-size: 1.08rem;
    }
}

/* ---- geniş ekran: giriş düğmeleri adın sağında; özet sağ sütunda ---- */

@media (min-width: 900px) {
    body.ks-wide-body {
        justify-content: flex-start;
    }

    .kb-layout {
        gap: 22px;
    }

    .kb-identity {
        flex-wrap: nowrap;
    }

    .kb-account {
        flex: 0 0 248px;
        text-align: right;
    }

    .kb-account .ks-actions {
        justify-content: flex-end;
    }

    .kb-account .ks-btn {
        flex: 0 1 auto;
    }

    .kb-main {
        grid-template-columns: minmax(0, 1fr) 320px;
        grid-template-areas: 'head side' 'steps side' 'panels side';
        grid-template-rows: auto auto 1fr;
        column-gap: 32px;
        padding: 32px;
    }

    .kb-side {
        position: sticky;
        top: 20px;
        align-self: start;
        padding: 20px;
        border: 1px solid var(--ks-line);
        border-radius: 22px;
        background: #f8f9fd;
    }

    .kb-side-title {
        display: block;
        margin: 0 0 12px;
        font-size: 1rem;
        font-weight: 600;
    }

    .kb-side .kb-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin: 0 0 14px;
        padding: 0;
        border-radius: 0;
        background: none;
    }

    .kb-side .kb-summary dt {
        padding-top: 10px;
        border-top: 1px solid var(--ks-line);
        font-size: 0.78rem;
    }

    .kb-side .kb-summary dt:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .kb-side .kb-summary dd {
        padding-bottom: 10px;
        font-size: 0.98rem;
    }

    /* Henüz seçim yokken özet kutusu boş kalmasın. */
    .kb-summary[hidden] + .kb-side-empty {
        display: block;
        margin: 0 0 14px;
        color: var(--ks-muted);
        font-size: 0.9rem;
    }

    .kb-assure {
        display: grid;
        gap: 8px;
        margin: 0;
        padding: 14px 0 0;
        border-top: 1px solid var(--ks-line);
        list-style: none;
        color: var(--ks-muted);
        font-size: 0.84rem;
    }

    .kb-assure li {
        position: relative;
        padding-left: 24px;
    }

    .kb-assure li::before {
        content: '';
        position: absolute;
        top: 3px;
        left: 0;
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: rgba(27, 138, 75, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b8a4b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat;
    }

    #kb-form {
        max-width: 560px;
    }
}

@media (max-width: 420px) {
    .kb-main {
        padding: 20px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kb-item,
    .kb-person,
    .kb-chip,
    .kb-day,
    .kb-time {
        transition: none;
    }

    .kb-item:hover,
    .kb-person:hover {
        transform: none;
    }
}
