
/* Blur background when modal is open */
body.modal-open {
    overflow: hidden;
}

body.modal-open .navbar,
body.modal-open .event-hero,
body.modal-open .event-details-layout,
body.modal-open .footer {
    filter: blur(8px);
    pointer-events: none;
}

/* Modal Overlay */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Checkout Card */
.checkout-card {
    background: #1a1a1d;
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    animation: scaleUp 0.3s ease forwards 0.1s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes scaleUp {
    to { transform: scale(1); }
}

/* Header with back arrow, title, and close */
.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #2a2a2d;
}

.back-arrow {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.back-arrow:hover {
    opacity: 0.7;
}

.back-arrow svg {
    width: 24px;
    height: 24px;
}

.checkout-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-align: center;
    flex: 1;
}

.checkout-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.checkout-close:hover {
    opacity: 0.7;
}

/* Date Header */
.checkout-date-header {
    text-align: center;
    color: #9AA4B2;
    font-size: 0.85rem;
    padding: 16px 24px 0;
    margin: 0;
}

/* Progress Steps */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 24px 32px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2a2a2d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.step.active .step-number {
    background: #F04400;
    color: white;
}

.step.completed .step-number {
    background: #2a2a2d;
    color: #F04400;
    font-size: 0;
}

.step.completed .step-number::before {
    content: "✓";
    font-size: 1.3rem;
    font-weight: bold;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #2a2a2d;
}

.step.completed + .step-line {
    background: #F04400;
}

/* Content Area */
.checkout-content {
    padding: 0 24px 24px;
}

/* Section Heading */
.checkout-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: #9AA4B2;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #F04400;
}

.form-group input::placeholder {
    color: #555;
}

/* Ticket Selection Card (Step 1) */
.ticket-selection-card {
    background: #0D0D0D;
    border: 1px solid #2a2a2d;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.ticket-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2d;
}

.ticket-selection-header span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.quantity-controls-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1d;
    border: 1px solid #2a2a2d;
    border-radius: 8px;
    padding: 6px 12px;
}

.quantity-controls-inline button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.quantity-controls-inline button:hover {
    color: #F04400;
}

.quantity-controls-inline span {
    color: white;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.ticket-price-info {
    padding-top: 8px;
}

.ticket-price-main {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.ticket-remaining {
    color: #F04400;
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.sales-end {
    color: #9AA4B2;
    font-size: 0.8rem;
}

/* Payment Methods (Step 3) */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #0D0D0D;
    border: 2px solid #2a2a2d;
    border-radius: 8px;
    color: #9AA4B2;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

.payment-method input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #F04400;
    cursor: pointer;
}

.payment-method svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.payment-method span {
    font-size: 0.9rem;
    font-weight: 500;
}

.payment-method:hover {
    border-color: #F04400;
}

.payment-method.active {
    border-color: #F04400;
    background: rgba(240, 68, 0, 0.05);
    color: white;
}

/* Buttons */
.checkout-submit-btn,
.register-btn {
    width: 100%;
    padding: 14px;
    background: #F04400;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.checkout-submit-btn:hover,
.register-btn:hover {
    background: #d63a00;
    transform: translateY(-1px);
}

.checkout-submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Hide right side (order summary) - not in Figma mobile design */
.checkout-right {
    display: none;
}

/* Desktop View */
@media (min-width: 769px) {
    .checkout-card {
        max-width: 900px;
        border-radius: 20px;
    }
    
    .checkout-content {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 40px;
        padding: 0;
    }
    
    .checkout-left {
        padding: 0 40px 40px;
    }
    
    .checkout-right {
        display: block;
        padding: 40px 40px 40px 0;
        border-left: 1px solid #2a2a2d;
    }
    
    .event-preview {
        width: 100%;
        height: 200px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 24px;
        position: relative;
    }
    
    .event-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .event-preview-title {
        position: absolute;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        color: white;
        font-family: 'Anton', sans-serif;
        font-size: 1.3rem;
        text-align: center;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
        width: 90%;
    }
    
    .order-summary-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: white;
        margin-bottom: 16px;
    }
    
    .order-item {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #2a2a2d;
        color: #9AA4B2;
        font-size: 0.9rem;
    }
    
    .order-total {
        display: flex;
        justify-content: space-between;
        padding: 16px 0;
        margin-top: 16px;
        border-top: 2px solid #2a2a2d;
        font-weight: 600;
        color: white;
    }
    
    .order-total-price {
        font-size: 1.3rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .checkout-card {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    
    .checkout-header {
        padding: 20px 16px 12px;
    }
    
    .checkout-date-header {
        padding: 12px 16px 0;
        font-size: 0.8rem;
    }
    
    .checkout-steps {
        padding: 20px 16px 24px;
        gap: 10px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .step-line {
        width: 30px;
    }
    
    .checkout-content {
        padding: 0 16px 16px;
    }
    
    .checkout-heading {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 14px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input {
        padding: 11px 12px;
        font-size: 0.9rem;
    }
    
    .payment-method {
        padding: 12px 14px;
    }
    
    .payment-method svg {
        width: 20px;
        height: 20px;
    }
    
    .payment-method span {
        font-size: 0.85rem;
    }
    
    .ticket-selection-card {
        padding: 16px;
    }
}