/* ========================================
   THEME: MIDNIGHT GOLD (Checkout Edition)
   ========================================
*/
:root {
    /* Metallic Gold */
    --gold-primary: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 40%, #B38728 60%, #AA771C 100%);
    --gold-glow: 0 0 20px rgba(212, 175, 55, 0.2);

    /* Dark Environment */
    --bg-body: #050505;
    --bg-panel: #0F0F0F;
    --bg-border: #222;
    --bg-input: rgba(255, 255, 255, 0.03);

    /* Text */
    --text-main: #F5F5F7;
    --text-muted: #86868B;
    --text-error: #ff4d4f;

    --ease-lux: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    margin: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 80%);
}

/* Anti-Theft */
img {
    user-select: none;
    -webkit-user-drag: none;
}

/* --- NAVIGATION --- */
nav {
    height: 80px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bg-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

/* --- LAYOUT --- */
.checkout-container {
    margin-top: 120px;
    margin-bottom: 100px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    /* Main content | Order Summary */
    gap: 40px;
}

.step-content {
    animation: fadeUp 0.6s var(--ease-lux);
}

/* --- PROGRESS HEADER --- */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    grid-column: 1 / -1;
    /* Span full width initially */
}

.progress-step {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.progress-step.active {
    color: var(--gold-primary);
}

.progress-step.completed {
    color: white;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--bg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.8rem;
    background: var(--bg-body);
}

.progress-step.active .step-num {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
}

.progress-step.completed .step-num {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: black;
}

/* --- FORMS & CARDS --- */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: white;
}

p.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 30px 0;
}

.form-section {
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 30px;
}

.form-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-primary);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: span 2;
}

label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

input,
select,
textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--bg-border);
    color: white;
    padding: 12px;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
select:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* --- ORDER SUMMARY SIDEBAR --- */
.order-summary {
    background: var(--bg-panel);
    border: 1px solid var(--bg-border);
    border-radius: 4px;
    padding: 30px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--bg-border);
    color: white;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-border);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.suit-preview {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.suit-thumb {
    width: 60px;
    height: 80px;
    background: #222;
    object-fit: cover;
    border-radius: 2px;
}

/* --- BUTTONS --- */
.btn-primary {
    width: 100%;
    background: var(--gold-gradient);
    color: #050505;
    padding: 15px;
    border: none;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 10px;
}

.btn-secondary:hover {
    color: white;
}

/* --- ANIMATIONS --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE --- */
@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        order: -1;
        /* Show summary first on mobile? Or maybe keep it bottom? Let's keep typical flow */
    }
}

/* --- SIZE SUGGESTION --- */
.size-suggestion-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(15, 15, 15, 1) 100%);
    border: 1px solid var(--gold-primary);
    border-radius: 4px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.suggestion-header {
    color: var(--gold-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.suggestion-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 5px;
}

.suggestion-confidence {
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.suggestion-helper {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}