/**
 * Randevu Sistemi - Ana Stil Dosyası
 * Fastygo benzeri tasarım - Premium ve Modern
 */

/* ===== CSS Değişkenleri ===== */
:root {
    /* Ana Renkler */
    --primary-color: #FE6300;
    --primary-light: #FFAF15;
    --primary-gradient: linear-gradient(135deg, #FE6300 0%, #FFAF15 100%);
    --primary-gradient-hover: linear-gradient(135deg, #E55A00 0%, #E59E14 100%);

    /* Metin Renkleri */
    --text-dark: #001540;
    --text-body: #212529;
    --text-muted: #6c757d;
    --text-light: #ffffff;

    /* Arka Plan Renkleri */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #001540;
    --bg-overlay: rgba(0, 21, 64, 0.85);

    /* Kenarlık Renkleri */
    --border-color: #dee2e6;
    --border-light: #e9ecef;

    /* Durum Renkleri */
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    /* Gölgeler */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 15px 50px rgba(0, 0, 0, 0.15);

    /* Yuvarlaklık */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Geçişler */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Yazı Tipi */
    --font-family: 'Jost', 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* RTL Desteği */
[dir="rtl"] {
    text-align: right;
}

/* ===== Ana Düzen ===== */
.booking-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sol Panel - Görsel */
.booking-sidebar {
    width: 45%;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    background: var(--bg-dark);
    overflow: hidden;
}

[dir="rtl"] .booking-sidebar {
    left: auto;
    right: 0;
}

.sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform var(--transition-slow);
}

.booking-sidebar:hover .sidebar-image {
    transform: scale(1.02);
}

.sidebar-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 21, 64, 0.4) 0%, rgba(254, 99, 0, 0.2) 100%);
}

.sidebar-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

@media (max-width: 768px) {
    .booking-sidebar {
        width: 100%;
        height: 200px;
        position: relative;
    }
    
    [dir="rtl"] .booking-sidebar {
        width: 100%;
        height: 200px;
        position: relative;
    }
}

[dir="rtl"] .sidebar-logo {
    left: auto;
    right: 30px;
}

.sidebar-logo img {
    height: 50px;
    width: auto;
}

.sidebar-logo h2 {
    color: var(--text-light);
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.sidebar-logo h2 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sağ Panel - Form */
.booking-content {
    width: 55%;
    margin-left: 45%;
    min-height: 100vh;
    padding: 40px 60px;
    background: var(--bg-secondary);
    position: relative;
}

[dir="rtl"] .booking-content {
    margin-left: 0;
    margin-right: 45%;
}

@media (max-width: 768px) {
    .booking-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        min-height: auto;
        padding: 30px 20px;
    }
    
    [dir="rtl"] .booking-content {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Dalgalı Arka Plan */
.booking-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23FE6300' fill-opacity='0.05' d='M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat top center;
    background-size: cover;
    pointer-events: none;
    z-index: 0;
}

/* ===== Header ===== */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title h1 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--primary-color);
}

.header-title h1 span {
    color: var(--text-dark);
}

.step-indicator {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Dil Seçici - Z-index düzeltmesi */
.language-selector {
    position: relative;
    z-index: 99999;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--font-size-sm);
    color: var(--text-body);
    font-family: inherit;
    min-width: 140px;
}

.language-btn:hover,
.language-btn:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    outline: none;
}

.language-btn .flag {
    font-size: 1.2em;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

[dir="rtl"] .language-dropdown {
    right: auto;
    left: 0;
}

.language-selector:hover .language-dropdown,
.language-selector:focus-within .language-dropdown,
.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--text-body);
    text-decoration: none;
    transition: background var(--transition-fast);
    font-size: var(--font-size-base);
}

.language-dropdown a:hover {
    background: var(--bg-secondary);
}

.language-dropdown a.active {
    background: var(--primary-gradient);
    color: var(--text-light);
    font-weight: 600;
}

/* ===== Form Kartı ===== */
.booking-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    position: relative;
    z-index: 1;
    min-height: 400px;
    contain: layout style;
}

/* ===== İlerleme Çubuğu ===== */
.progress-bar-container {
    margin-bottom: 30px;
    min-height: 80px;
}

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

/* Adım Göstergeleri */
.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    margin-bottom: 8px;
}

.step-item.active .step-number,
.step-item.completed .step-number {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.step-item.completed .step-number::after {
    content: '✓';
}

.step-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-align: center;
    max-width: 80px;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== Form Adımları ===== */
.form-step {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    will-change: opacity, transform;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.step-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

/* ===== Form Elemanları ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--text-body);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(254, 99, 0, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.error {
    border-color: var(--danger-color);
}

/* Telefon Input */
.phone-input-group {
    display: flex;
    gap: 10px;
}

.phone-code-select {
    width: 100px;
    flex-shrink: 0;
}

.phone-input {
    flex: 1;
}

/* ===== Select2 Özelleştirmesi ===== */
.select2-container--default .select2-selection--single {
    height: 52px;
    /* form-control ile aynı yükseklik */
    padding: 11px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(254, 99, 0, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding-left: 0;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
    top: 1px;
}

/* Flag icon düzenlemesi */
.flag-icon {
    font-size: 1.2em;
    line-height: 1em;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.select2-dropdown {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--primary-gradient);
}

/* ===== Personel Kartları ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.staff-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.staff-card.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(254, 99, 0, 0.05) 0%, rgba(255, 175, 21, 0.05) 100%);
    box-shadow: 0 0 0 4px rgba(254, 99, 0, 0.15);
}

.staff-card input[type="radio"] {
    display: none;
}

.staff-photo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--border-light);
    transition: border-color var(--transition-fast);
}

.staff-card.selected .staff-photo {
    border-color: var(--primary-color);
}

.staff-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    margin-bottom: 4px;
}

.staff-title {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

/* ===== Tarih Seçici (Flatpickr) ===== */
.flatpickr-calendar.inline {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    padding: 20px;
    margin-top: 15px;
    font-size: 1.25rem;
    /* Büyütmek için */
}

.flatpickr-calendar.inline .flatpickr-innerContainer,
.flatpickr-calendar.inline .flatpickr-rContainer,
.flatpickr-calendar.inline .flatpickr-days,
.flatpickr-calendar.inline .dayContainer {
    width: 100% !important;
    max-width: none !important;
    min-width: 100% !important;
    box-sizing: border-box;
}

.flatpickr-calendar.inline .flatpickr-weekdaycontainer {
    display: flex;
    width: 100%;
}

.flatpickr-calendar.inline .flatpickr-weekday {
    width: calc(100% / 7) !important;
    flex-basis: calc(100% / 7) !important;
    box-sizing: border-box;
    font-weight: 700;
    /* Bold weekdays */
    font-size: 1.1rem;
    padding: 10px 0;
}

.flatpickr-calendar.inline .flatpickr-days {
    width: 100% !important;
    max-width: none !important;
}

.flatpickr-calendar.inline .dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.flatpickr-calendar.inline .flatpickr-day {
    max-width: none;
    width: calc(100% / 7) !important;
    flex-basis: calc(100% / 7) !important;
    height: 65px;
    /* Daha yüksek */
    line-height: normal;
    /* Flex center kullanacağız */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    font-weight: 700;
    /* Bolt sayılar */
    font-size: 1.3rem;
}

.flatpickr-calendar.inline .flatpickr-month {
    height: 60px;
}

#appointment-date {
    display: none !important;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flatpickr-calendar {
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    border: none;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
}

/* Bugün turuncu */
.flatpickr-day.today {
    border-color: #FE6300;
    background: rgba(254, 99, 0, 0.05);
    color: #FE6300;
}

.flatpickr-day.today:hover {
    background: #fff5f0;
    color: #FE6300;
}

.flatpickr-day.today.selected {
    color: #fff;
}

/* Kapalı/Tatil günleri kırmızı */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.disabled,
.flatpickr-day.holiday {
    background: #fff0f0 !important;
    color: #d32f2f !important;
    border-color: #ffcccc !important;
    text-decoration: none !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600;
}

/* ===== Saat Izgarası ===== */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 20px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 10px;
}

.time-slot {
    padding: 14px 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    animation: slideFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.time-slot:hover:not(.unavailable):not(.break) {
    border-color: var(--primary-color);
    background: rgba(254, 99, 0, 0.05);
}

.time-slot.selected {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.time-slot.unavailable {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot.break {
    background: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
    cursor: not-allowed;
}

.time-slot.break::after {
    content: ' (Mola)';
    font-size: var(--font-size-xs);
}

/* ===== Özet Bölümü ===== */
.summary-section {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.summary-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-title i {
    font-size: 1.2em;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.summary-value {
    font-weight: 500;
    color: var(--text-dark);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    margin-top: 20px;
}

.summary-total .label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.summary-total .amount {
    color: var(--text-light);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

/* ===== Ödeme Yöntemleri ===== */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--primary-light);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(254, 99, 0, 0.05);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-right: 16px;
    font-size: 1.3em;
}

[dir="rtl"] .payment-icon {
    margin-right: 0;
    margin-left: 16px;
}

.payment-details {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.payment-desc {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.payment-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.payment-method.selected .payment-check {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    color: var(--text-light);
}

/* ===== Butonlar ===== */
.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(254, 99, 0, 0.35);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 99, 0, 0.4);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-body);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-block {
    width: 100%;
}

/* ===== Başarı Ekranı ===== */
.success-container {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #FE6300 0%, #FFAF15 100%);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--text-light);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-message {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.booking-number {
    display: inline-block;
    padding: 12px 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

/* ===== Çerez Bildirimi ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.cookie-btn.accept {
    background: var(--primary-gradient);
    color: var(--text-light);
    border: none;
}

.cookie-btn.decline {
    background: #f8f9fa;
    /* Solak/saydam yerine belirgin arka plan (Aynı ağırlık) */
    color: var(--text-dark);
    border: none;
}

.cookie-btn.decline:hover {
    background: #e2e6ea;
}

.cookie-btn.settings {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.cookie-btn.settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Yükleniyor ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Mobil Logo ===== */
.mobile-logo {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .booking-sidebar {
        width: 40%;
    }

    .booking-content {
        width: 60%;
        margin-left: 40%;
        padding: 30px 40px;
    }

    [dir="rtl"] .booking-content {
        margin-left: 0;
        margin-right: 40%;
    }
}

@media (max-width: 992px) {
    .booking-sidebar {
        display: none;
    }

    .booking-content {
        width: 100%;
        margin-left: 0;
        padding: 15px;
        padding-top: 60px;
        /* Mobilde relative/static olmalı - fixed header için */
        position: static;
    }

    /* Mobilde pseudo-element devre dışı */
    .booking-content::before {
        display: none;
    }

    [dir="rtl"] .booking-content {
        margin-right: 0;
    }

    .booking-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-primary);
        padding: 8px 12px;
        margin-bottom: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 99990;
        flex-wrap: nowrap;
        min-height: 44px;
        max-height: 44px;
        overflow: visible;
        /* Transform ve will-change'i sıfırla - fixed pozisyonu bozmalarını engelle */
        transform: none !important;
        will-change: auto;
        -webkit-transform: none !important;
    }

    /* Mobil logo - kompakt */
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-logo img {
        height: 22px;
        width: auto;
    }

    .mobile-logo h2 {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0;
        white-space: nowrap;
    }

    .mobile-logo h2 span {
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Header title mobilde gizle */
    .header-title {
        display: none;
    }

    .booking-card {
        padding: 16px;
    }

    /* Step indicator mobilde gizle */
    .step-indicator {
        display: none;
    }

    /* Language selector - çok kompakt */
    .language-btn {
        min-width: auto;
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .step-indicators::before {
        display: none;
    }

    .step-label {
        display: none;
    }

    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-buttons {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }

    .phone-input-group {
        flex-direction: column;
    }

    .phone-code-select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .booking-content {
        padding: 10px;
        padding-top: 56px;
    }

    .booking-header {
        padding: 6px 10px;
        min-height: 40px;
        max-height: 40px;
    }

    .mobile-logo h2 {
        font-size: 0.8rem;
    }

    .mobile-logo img {
        height: 18px;
    }

    .step-title {
        font-size: var(--font-size-lg);
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-card {
        padding: 12px;
    }

    /* Dil butonunda sadece bayrak göster */
    .language-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
    }

    .language-btn span:not(.flag) {
        display: none;
    }
}

/* ===== SweetAlert2 Özelleştirmesi ===== */
.swal2-popup {
    border-radius: var(--radius-xl) !important;
    font-family: var(--font-family) !important;
}

.swal2-confirm {
    background: var(--primary-gradient) !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    padding: 12px 32px !important;
}

.swal2-cancel {
    border-radius: var(--radius-md) !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Randevu Sorgulama Butonu */
.query-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    color: #FE6300;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-right: 15px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(254, 99, 0, 0.2);
    background: #FE6300;
    color: white;
}

.query-btn .icon {
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .query-btn .text {
        display: none;
    }

    .query-btn {
        padding: 8px;
        width: 40px;
        height: 40px;
        justify-content: center;
        border-radius: 50%;
    }
}