:root {
    --bg-olive: #f4f6f0;         
    --primary-olive: #556b2f;    
    --primary-hover: #3d4f22;
    --mehrum: #800020;           
    --text-black: #1a1a1a;
    --text-gray: #666666;
    --white: #ffffff;
    --border-color: #d1d5db;
    --error-color: #dc2626;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Base View Reset Engine */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; 
    -webkit-tap-highlight-color: transparent;
}

body { 
    background-color: var(--bg-olive); 
    color: var(--text-black); 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    min-height: 100vh; 
}

/* ================= MOBILE-FIRST ARCHITECTURE LAYOUT ================= */
.reg-container { 
    background: var(--white); 
    max-width: 100%; 
    width: 100%; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    box-shadow: none; 
    overflow: hidden; 
}

.desktop-sidebar-branding {
    display: none; /* Hidden by default on mobile phones */
}

.main-form-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.reg-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary-olive) 0%, var(--primary-hover) 100%);
    color: var(--white);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn {
    position: absolute;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.back-btn:hover { background: rgba(255, 255, 255, 0.3); }

.header-content { text-align: center; width: 100%; }
.reg-header h1 { font-size: 20px; margin-bottom: 8px; font-weight: 700; letter-spacing: -0.5px; }

.step-indicator { display: flex; justify-content: center; gap: 16px; margin: 12px 0 0 0; font-weight: 600; font-size: 12px; }
.step { color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; padding-bottom: 4px; }
.step.active { color: var(--white); border-bottom: 2px solid var(--white); }

.form-body { padding: 20px; flex: 1; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }

.form-section-title { 
    font-size: 15px; 
    color: var(--primary-olive); 
    border-bottom: 2px solid #eef0eb; 
    padding-bottom: 6px; 
    margin: 24px 0 14px 0; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.form-section-title:first-of-type { margin-top: 0; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; font-weight: 600; color: #4b5563; }
label span { color: var(--error-color); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
    padding: 12px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    font-size: 16px; 
    background-color: #f9fafb; 
    outline: none; 
    transition: all 0.2s ease;
    width: 100%;
    -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { 
    border-color: var(--primary-olive); 
    background-color: var(--white); 
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.12); 
}

.radio-group, .checkbox-group { display: flex; gap: 10px; flex-direction: column; margin-top: 4px; }
.option-label { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-weight: 500; 
    cursor: pointer; 
    font-size: 14px; 
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.option-label input { accent-color: var(--primary-olive); width: 18px; height: 18px; }

/* ================= AXIS PREMIUM TERMS AND CONDITIONS BLOCK ================= */
.axis-tc-container {
    margin: 25px 0 15px 0;
    padding: 14px;
    background-color: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--primary-olive);
    border-radius: 8px;
}
.axis-tc-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: normal;
    color: #334155;
}
.axis-tc-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary-olive);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.axis-tc-text {
    font-size: 12px;
    line-height: 1.6;
    color: #475569;
    user-select: none;
}

.btn-submit { 
    background-color: var(--mehrum); 
    color: var(--white); 
    border: none; 
    padding: 14px; 
    border-radius: 8px; 
    font-size: 15px; 
    font-weight: 700; 
    cursor: pointer; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    margin-top: 20px; 
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.12);
    transition: all 0.2s ease;
}
.btn-submit:hover { background-color: #600018; transform: translateY(-1px); }

.auth-container { max-width: 100%; margin: 0 auto; padding: 10px 0; }
.btn-oauth { 
    background: #ffffff; color: var(--text-black); border: 1px solid #d1d5db; padding: 12px; width: 100%; 
    border-radius: 8px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; font-size: 14px; 
}
.btn-oauth:hover { background: #f8fafc; }

.divider { margin: 20px 0; display: flex; align-items: center; text-align: center; color: #9ca3af; font-size: 11px; font-weight: 600; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid #e5e7eb; }
.divider:not(:empty)::before { margin-right: 1em; }
.divider:not(:empty)::after { margin-left: 1em; }

.switch-view-text { margin-top: 20px; font-size: 13px; color: var(--text-gray); text-align: center; }
.switch-view-text span { color: var(--primary-olive); font-weight: 700; cursor: pointer; }

/* ================= DYNAMIC DESKTOP OVERRIDE SCREEN (min-width: 992px) ================= */
@media (min-width: 992px) {
    body {
        padding: 0;
        align-items: center;
        background-color: #ebeee6;
    }
    
    .reg-container {
        max-width: 1100px;
        min-height: 680px;
        height: 85vh;
        border-radius: 20px;
        flex-direction: row; /* Split Side-By-Side Grid */
        border: 1px solid #e2e8f0;
        box-shadow: var(--shadow-md);
    }
    
    /* Split Column A - Desktop Sidebar Showcase */
    .desktop-sidebar-branding {
        display: flex;
        width: 40%;
        background: linear-gradient(135deg, rgba(85, 107, 47, 0.95) 0%, rgba(61, 79, 34, 0.98) 100%), 
                    url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=800&q=80');
        background-size: cover;
        background-position: center;
        color: var(--white);
        padding: 45px;
        align-items: center;
    }
    
    .branding-overlay-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .branding-overlay-content h2 { font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
    .branding-overlay-content p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); }
    .branding-feature-tag {
        background: rgba(255, 255, 255, 0.12);
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Split Column B - Master Right Terminal Form */
    .main-form-panel {
        width: 60%;
        height: 100%;
        overflow-y: auto; /* Independent inner scrolling */
    }
    
    .reg-header { padding: 30px 40px; text-align: left; justify-content: flex-start; background: var(--white); color: var(--text-black); border-bottom: 1px solid #f1f5f9; }
    .back-btn { display: none; } /* Breadcrumbs handle this on desktop views */
    .reg-header h1 { font-size: 24px; color: var(--text-black); text-align: left; }
    .step-indicator { justify-content: flex-start; gap: 30px; }
    .step { color: var(--text-gray); }
    .step.active { color: var(--primary-olive); border-bottom: 2px solid var(--primary-olive); }
    
    .form-body { padding: 35px 40px; }
    .form-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .form-group.full-width { grid-column: span 2; }
    .radio-group, .checkbox-group { flex-direction: row; flex-wrap: wrap; gap: 15px; }
    .option-label { background: transparent; padding: 0; border: none; width: auto; }
    .option-label input { width: 16px; height: 16px; }
    .form-section-title { font-size: 16px; margin: 30px 0 16px 0; }
    
    .axis-tc-text { font-size: 13px; }
    .btn-submit { padding: 16px; font-size: 16px; border-radius: 10px; }
}