/**
 * Modern Split-View Booking Modal
 * Sol: 3D Model (Sabit), Sağ: Form İşlemleri (Dinamik)
 * No-Scroll Design, Kompakt ve Premium
 */

/* Modal Custom Size */
#interactiveBookingModal .modal-dialog {
    margin: 2rem auto;
}

#interactiveBookingModal .modal-content {
    border: none;
    box-shadow: var(--shadow-xl);
    position: relative;
    background: var(--bg-surface);
}

/* Kapatma Butonu - Sağ Üst Köşe */
.btn-close-modal-top {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(237, 28, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1060;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    padding: 0;
}

.btn-close-modal-top:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(237, 28, 36, 0.4);
}

.btn-close-modal-top i {
    color: var(--primary-red);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.btn-close-modal-top:hover i {
    color: white;
}

/* Split Container */
.booking-split-container {
    display: grid;
    grid-template-columns: 45% 55%;
    height: 100%;
    overflow: hidden;
}

/* SOL PANEL: 3D Viewer */
.booking-left-panel {
    background: linear-gradient(135deg, var(--bg-body) 0%, #e9ecef 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-right: 1px solid var(--border-color);
}

.btn-close-custom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-close-custom:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.btn-close-custom i {
    color: var(--text-muted);
    font-size: 1rem;
}

.model-viewer-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.model-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.model-title {
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-heading);
}

.model-selector {
    flex: 1;
    max-width: 200px;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: var(--font-body);
}

.model-selector:focus {
    outline: none;
    border-color: var(--primary-red);
}

.stand-3d-viewer-split {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 400px;
}

.stand-3d-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.stand-3d-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.stand-3d-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stand-3d-placeholder small {
    font-size: 0.875rem;
    color: #ced4da;
}

.model-controls-hint {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.5rem;
}

.model-controls-hint span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-controls-hint i {
    color: #adb5bd;
}

/* SAĞ PANEL: Form */
.booking-right-panel {
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Kompakt Progress Bar */
.wizard-progress-compact {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.progress-steps {
    margin-bottom: 0.75rem;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-bar-wrapper {
    height: 4px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

/* İçerik Alanı */
.wizard-content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Custom Scrollbar */
.wizard-content-area::-webkit-scrollbar {
    width: 8px;
}

.wizard-content-area::-webkit-scrollbar-track {
    background: var(--bg-body);
}

.wizard-content-area::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.wizard-content-area::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Sticky Footer */
.wizard-footer-sticky {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Form Elemanları (Kompakt Tasarım) */
.feature-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-pill {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: white;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-pill:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.feature-pill.selected {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

.feature-pill i {
    font-size: 1rem;
}

/* Floating Label Input */
.floating-label-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label-group input,
.floating-label-group textarea {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: var(--font-body);
}

.floating-label-group input:focus,
.floating-label-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.floating-label-group label {
    position: absolute;
    top: 1rem;
    left: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-base);
    pointer-events: none;
    font-family: var(--font-body);
}

.floating-label-group input:focus+label,
.floating-label-group input:not(:placeholder-shown)+label,
.floating-label-group textarea:focus+label,
.floating-label-group textarea:not(:placeholder-shown)+label {
    top: 0.25rem;
    font-size: 0.75rem;
    color: var(--primary-red);
}

/* Butonlar */
.wizard-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
}

.wizard-btn-secondary {
    background: var(--bg-body);
    color: var(--text-muted);
}

.wizard-btn-secondary:hover {
    background: var(--border-color);
}

.wizard-btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: white;
}

.wizard-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 992px) {
    .booking-split-container {
        grid-template-columns: 1fr;
        grid-template-rows: 300px 1fr;
    }

    .booking-left-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }

    .model-viewer-header {
        flex-direction: column;
        align-items: stretch;
    }

    .model-selector {
        max-width: 100%;
    }

    .stand-3d-viewer-split {
        min-height: 200px;
    }

    .model-controls-hint {
        gap: 1rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    #interactiveBookingModal .modal-dialog {
        margin: 0;
    }

    #interactiveBookingModal .modal-content {
        border-radius: 0;
        height: 100vh;
    }

    .wizard-content-area {
        padding: 1rem;
    }

    .wizard-footer-sticky {
        padding: 1rem;
    }

    .wizard-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.875rem;
    }
}