@charset "UTF-8";

/* ============================================================
   Müşteri (public) — Mobil öncelikli randevu arayüzü
   ============================================================ */

.public-body {
    -webkit-tap-highlight-color: transparent;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.public-main {
    padding-bottom: 0;
}

/* Kompakt üst menü mobil */
@media (max-width: 991px) {
    .public-navbar .btn-cta {
        width: 100%;
        margin-top: 0.5rem !important;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .public-navbar .navbar-collapse {
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .public-footer .row.g-4 {
        display: none;
    }

    .public-footer .footer-bottom {
        padding: 1rem !important;
    }
}

/* Ana sayfa mobil */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }

    .min-vh-hero {
        min-height: auto;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1.05rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .features-strip .feature-pill {
        padding: 0.75rem;
    }

    .section-block {
        padding: 2.5rem 0;
    }

    .service-card .btn {
        min-height: 44px;
    }

    .cta-banner {
        padding: 2.5rem 1rem;
    }

    .cta-banner .btn {
        width: 100%;
        min-height: 50px;
    }

    /* Sabit mobil CTA — ana sayfa */
    .mobile-fab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 0.65rem 1rem;
        padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        z-index: 1030;
        gap: 0.5rem;
    }

    .mobile-fab-bar .btn {
        flex: 1;
        min-height: 48px;
        font-weight: 600;
    }

    body.has-mobile-fab .public-main {
        padding-bottom: 80px;
    }
}

@media (min-width: 769px) {
    .mobile-fab-bar {
        display: none !important;
    }
}

/* Randevu akışında üst CTA gizle (mobil) */
@media (max-width: 767px) {
    .booking-flow .public-navbar .btn-cta {
        display: none !important;
    }
}

/* —— Randevu al sayfası —— */
.mobile-booking-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 0 100px;
}

@media (min-width: 768px) {
    .mobile-booking-page {
        padding: 2rem 0 2rem;
    }
}

.booking-header-compact {
    text-align: center;
    margin-bottom: 1rem;
}

.booking-header-compact h1 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.booking-header-compact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Mobil adım göstergesi */
.booking-step-mobile {
    margin-bottom: 1rem;
}

.booking-step-mobile .progress {
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
}

.booking-step-mobile .progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 99px;
    transition: width 0.3s ease;
}

.booking-step-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.booking-step-label strong {
    color: var(--primary);
}

/* Masaüstü adım şeridi — mobilde gizle */
@media (max-width: 767px) {
    .wizard-steps-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .booking-step-mobile {
        display: none !important;
    }
}

.booking-form-mobile {
    padding: 1.25rem !important;
    max-width: 100% !important;
    border-radius: 14px;
}

.booking-form-mobile h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem !important;
}

/* Dokunmatik seçim kartları */
.select-card {
    display: block;
    margin-bottom: 0.5rem;
}

.select-card-body {
    min-height: 56px;
    padding: 1rem 1.1rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.select-card-body strong {
    font-size: 1rem;
}

.select-card-body small {
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.select-card input:checked + .select-card-body {
    box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.25);
}

/* Tarih / saat */
.booking-form-mobile .form-control,
.booking-form-mobile .form-select {
    min-height: 48px;
    font-size: 16px; /* iOS zoom önleme */
}

/* Saat chip grid — mobil dostu */
.saat-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

@media (min-width: 400px) {
    .saat-chip-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.saat-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-user-select: none;
    user-select: none;
}

.saat-chip:hover,
.saat-chip.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.saat-chip.active {
    box-shadow: 0 0 0 3px rgba(26, 111, 212, 0.2);
}

#saatSelect {
    /* Yedek — chip kullanılıyor, mobilde gizle */
}

@media (max-width: 767px) {
    .saat-select-wrap {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
}

/* Sticky alt navigasyon */
.wizard-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.1);
    z-index: 1040;
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 641px) {
    .wizard-sticky-bar {
        left: 50%;
        transform: translateX(-50%);
        border-radius: 14px 14px 0 0;
    }
}

.wizard-sticky-bar .btn {
    flex: 1;
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
}

.wizard-sticky-bar #btnPrev {
    flex: 0 0 auto;
    min-width: 100px;
}

.wizard-sticky-bar #btnNext,
.wizard-sticky-bar .btn-submit-mobile {
    flex: 2;
}

.wizard-nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .wizard-sticky-bar {
        display: none !important;
    }

    .wizard-nav-desktop {
        display: flex !important;
    }

    .mobile-booking-page {
        padding-bottom: 2rem;
    }

    .saat-select-wrap {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }
}

/* Özet kutusu */
.booking-summary-box {
    background: var(--primary-soft);
    border: 1px solid var(--primary-muted);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.booking-summary-box strong {
    display: block;
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
}

/* Hata mesajı mobil */
.mobile-toast {
    position: fixed;
    top: 70px;
    left: 1rem;
    right: 1rem;
    z-index: 1050;
    padding: 0.85rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
}

.mobile-toast.show {
    display: block;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sorgula & başarı mobil */
.mobile-simple-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.mobile-simple-page .form-panel {
    max-width: 100% !important;
    padding: 1.25rem !important;
}

.mobile-simple-page .form-control {
    min-height: 48px;
    font-size: 16px;
}

.mobile-simple-page .btn-gold {
    min-height: 50px;
    font-size: 1.05rem;
}

.success-card {
    max-width: 100% !important;
    margin: 1rem !important;
    padding: 1.75rem 1.25rem !important;
}

.success-card .btn {
    width: 100%;
    min-height: 48px;
    margin-bottom: 0.5rem;
}

.success-card .d-flex.gap-2 {
    flex-direction: column;
}

.appointment-slot {
    padding: 1rem !important;
}
