/* Premium Layout System */

/* Global Resets & Typography */
body {
    background-color: #f3f4f6;
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

/* Main Layout Wrapper */
.premium-layout-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    gap: 32px;
    position: relative;
    align-items: flex-start;
    /* Important for sticky sidebar */
}

/* Main Content Area (Left/Center) */
.layout-main {
    flex: 1;
    min-width: 0;
    /* Prevents flex overflow */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Sidebar Area (Right) */
.layout-sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: auto;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .premium-layout-wrapper {
        flex-direction: column;
        padding: 20px 16px;
    }

    .layout-sidebar {
        width: 100%;
        position: static;
        order: -1;
        /* Sidebar on top on mobile/tablet? Or bottom? User preference. Usually summary on top is safer or bottom. Let's keep it clean. */
        margin-bottom: 24px;
    }
}

/* Premium Stepper Styling */
.premium-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    position: relative;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 10px;
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-text {
    font-weight: 600;
    font-size: 15px;
    color: #9ca3af;
    transition: all 0.3s ease;
}

/* Active State */
.step-item.active .step-indicator {
    background: #4D73FC;
    color: white;
    box-shadow: 0 0 0 4px rgba(77, 115, 252, 0.2);
}

.step-item.active .step-text {
    color: #111827;
}

/* Completed State */
.step-item.completed .step-indicator {
    background: #10b981;
    color: white;
}

.step-item.completed .step-text {
    color: #10b981;
}

/* Connector Line */
.stepper-line {
    position: absolute;
    top: 50%;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
    transform: translateY(-50%);
}

.step-progress-fill {
    height: 100%;
    background: #4D73FC;
    width: 0%;
    /* JS will animate this */
    transition: width 0.4s ease;
}

@media (max-width: 640px) {
    .premium-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stepper-line {
        display: none;
    }

    .step-item {
        width: 100%;
    }
}

/* Payment Modal */
.payment-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-overlay.active {
    display: flex;
    opacity: 1;
}

.payment-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.payment-overlay.active .payment-modal {
    transform: translateY(0);
}

.payment-modal-header {
    padding: 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.payment-modal-close {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.payment-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.stripe-element {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: all 0.2s;
}

.stripe-element--focus {
    background: white;
    border-color: #4D73FC;
    box-shadow: 0 0 0 4px rgba(77, 115, 252, 0.1);
}

.payment-submit-btn {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-submit-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.payment-submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}