/**
 * İnteraktif Stant Kiralama ve Rezervasyon Sistemi
 * 3 Aşamalı Wizard Stilleri - Premium Modern Tasarım
 */

/* Modal Genel Stilleri - Premium Modern Tasarım */
#interactiveBookingModal .modal-dialog {
    max-width: 950px;
    width: 92vw;
    max-height: 88vh;
    margin: 6vh auto;
}

#interactiveBookingModal .modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-surface);
}

#interactiveBookingModal .modal-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#interactiveBookingModal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#interactiveBookingModal .modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.625rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

#interactiveBookingModal .modal-title i {
    font-size: 1.5rem;
    opacity: 0.95;
}

#interactiveBookingModal .modal-body {
    padding: 2.5rem 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#interactiveBookingModal .modal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(237, 28, 36, 0.1) 50%, transparent 100%);
}

#interactiveBookingModal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--bg-surface) 0%, #fafbfc 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

/* Step Indicator - Premium Modern Tasarım */
.booking-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2.5rem auto;
    padding: 0 1.5rem;
    position: relative;
    max-width: 520px;
    width: 100%;
    gap: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(237, 28, 36, 0.1);
}

/* Ana progress çizgisi - arka plan (tüm uzunlukta) */
.booking-step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e5e7eb 0%, #e0e0e0 100%);
    border-radius: 4px;
    z-index: 0;
    transform: translateY(-50%);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Aktif progress çizgisi */
.booking-step-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60px;
    width: var(--progress-width, 0px);
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, #ff4757 50%, var(--primary-red) 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    z-index: 1;
    transform: translateY(-50%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(237, 28, 36, 0.4), 0 0 8px rgba(237, 28, 36, 0.2);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.step-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: var(--transition-base);
    z-index: 2;
    margin: 0 25px;
}

.step-item:hover .step-number {
    transform: translateY(-2px) scale(1.05);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-surface) 0%, #f5f5f5 100%);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.0625rem;
    position: relative;
    z-index: 3;
    margin-bottom: 0.75rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid var(--bg-surface);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.step-item.active .step-number {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4757 50%, var(--primary-red) 100%);
    background-size: 200% 200%;
    color: white;
    animation: activeStepPulse 2s ease-in-out infinite, gradientShift 3s ease infinite;
    box-shadow: 0 8px 24px rgba(237, 28, 36, 0.5), 0 0 0 5px rgba(237, 28, 36, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.3);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes activeStepPulse {

    0%,
    100% {
        box-shadow: 0 6px 20px rgba(237, 28, 36, 0.4), 0 0 0 4px rgba(237, 28, 36, 0.1);
    }

    50% {
        box-shadow: 0 8px 25px rgba(237, 28, 36, 0.6), 0 0 0 6px rgba(237, 28, 36, 0.15);
    }
}

.step-item.completed .step-number {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    animation: checkmarkAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4), 0 0 0 4px rgba(40, 167, 69, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    animation: checkmarkScale 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
    line-height: 1;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkmarkScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.step-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
    transition: var(--transition-base);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-top: 0.375rem;
    line-height: 1.5;
    max-width: 130px;
    white-space: nowrap;
    font-family: var(--font-heading);
}

.step-item.active .step-label {
    color: var(--primary-red);
    font-weight: 700;
    animation: labelFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.step-item.completed .step-label {
    color: #28a745;
    font-weight: 700;
}

@keyframes labelFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-5px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }
}

/* 3D Viewer - Premium Modern Tasarım */
.stand-3d-viewer {
    width: 100%;
    min-height: 380px;
    height: 380px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    background-size: 200% 200%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    animation: gradientFlow 8s ease infinite;
}

@keyframes gradientFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.stand-3d-viewer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>') repeat;
    opacity: 0.3;
}

.stand-3d-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.stand-3d-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 3D Placeholder */
.stand-3d-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    z-index: 2;
    position: relative;
}

.stand-3d-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.stand-3d-placeholder h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stand-3d-placeholder p {
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Feature List - Scrollable ve Modern */
.stand-features-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.75rem;
    padding-left: 0.25rem;
}

/* Custom Scrollbar */
.stand-features-list::-webkit-scrollbar {
    width: 8px;
}

.stand-features-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.stand-features-list::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

.stand-features-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red-dark);
}

.feature-category {
    margin-bottom: 2rem;
}

.feature-category h6 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.875rem;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-red);
    font-family: var(--font-heading);
}

.feature-item {
    transition: var(--transition-base);
    background: linear-gradient(135deg, var(--bg-surface) 0%, #fafbfc 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-red);
    box-shadow: var(--shadow-md);
    transform: translateX(6px) translateY(-2px);
    background: linear-gradient(135deg, #fff5f5 0%, var(--bg-surface) 100%);
}

.feature-item:hover::before {
    background: var(--primary-red);
}

.feature-item.selected {
    border-color: var(--primary-red);
    background: linear-gradient(135deg, #fff5f5 0%, var(--bg-surface) 50%, #fff5f5 100%);
    background-size: 200% 100%;
    box-shadow: var(--shadow-md);
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {

    0%,
    100% {
        box-shadow: 0 6px 24px rgba(237, 28, 36, 0.25), 0 2px 8px rgba(237, 28, 36, 0.15);
    }

    50% {
        box-shadow: 0 8px 28px rgba(237, 28, 36, 0.35), 0 4px 12px rgba(237, 28, 36, 0.2);
    }
}

.feature-item.selected::before {
    background: var(--primary-red);
}

.feature-item .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.feature-item .form-check-input {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 6px;
    margin: 0;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.feature-item .form-check-input:checked {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.feature-item .form-check-label {
    flex: 1;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-family: var(--font-body);
}

.feature-item .form-check-input:checked~.form-check-label {
    color: var(--primary-red);
    font-weight: 600;
}

.feature-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.feature-item.selected .feature-icon {
    color: var(--primary-red);
}

.feature-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-main);
    line-height: 1.4;
}

.feature-item.selected .feature-name {
    color: var(--primary-red);
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.feature-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-red);
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Price Summary - Premium Tasarım */
.price-summary {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-body) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.price-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red) 0%, #ff4757 100%);
}

.price-summary hr {
    margin: 1rem 0;
    border-color: var(--border-color);
}

/* Customer Summary - Premium Tasarım */
.customer-summary {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-body) 100%);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.customer-summary p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.customer-summary p:last-child {
    margin-bottom: 0;
}

/* Form Styles - Premium Tasarım */
#customerForm .form-label {
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    letter-spacing: 0.2px;
    font-family: var(--font-heading);
}

#customerForm .form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    transition: var(--transition-base);
    font-size: 0.9375rem;
    background: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-body);
}

#customerForm .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.1), 0 2px 8px rgba(237, 28, 36, 0.15);
    background: var(--bg-surface);
    outline: none;
}

#customerForm .form-control:hover {
    border-color: #cbd5e1;
}

/* Buttons - Premium Modern Tasarım */
#interactiveBookingModal .btn {
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    font-size: 0.9375rem;
    letter-spacing: 0.3px;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: var(--font-heading);
}

#interactiveBookingModal .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

#interactiveBookingModal .btn:hover::before {
    left: 100%;
}

#interactiveBookingModal .btn-primary {
    background: linear-gradient(135deg, var(--primary-red) 0%, #ff4757 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(237, 28, 36, 0.35);
}

#interactiveBookingModal .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(237, 28, 36, 0.5);
    background: linear-gradient(135deg, #ff4757 0%, var(--primary-red) 100%);
}

#interactiveBookingModal .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.35);
}

#interactiveBookingModal .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(40, 167, 69, 0.5);
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

#interactiveBookingModal .btn-secondary {
    background: linear-gradient(135deg, var(--bg-body) 0%, #e9ecef 100%);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

#interactiveBookingModal .btn-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

#interactiveBookingModal .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Success Message */
.text-success {
    color: #28a745 !important;
}

.fa-check-circle {
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Step Animations - Premium Smooth */
.booking-step {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 800px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.booking-step[data-step="2"] {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-step[data-step="3"] {
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    #interactiveBookingModal .modal-dialog {
        max-width: 95vw;
        width: 95vw;
        max-height: 90vh;
        margin: 5vh auto;
    }

    #interactiveBookingModal .modal-content {
        max-height: 90vh;
        border-radius: var(--radius-lg);
    }
}