/* =====================================================
   OBC NCL Wizard V2 - Student Setu Brand Colors
   Primary Blue: #0B5ED7 | Accent Orange: #F59E0B
   ===================================================== */

:root {
    /* Brand Colors */
    --primary-blue: #0B5ED7;
    --accent-orange: #F59E0B;
    --bg-light: #F8FBFF;
    
    /* Supporting Colors */
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --gray-50: #F8F9FA;
    --gray-100: #E9ECEF;
    --gray-200: #DEE2E6;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    /* Shadows */
    --shadow-sm: 0 2px 6px rgba(11, 94, 215, 0.08);
    --shadow-md: 0 4px 12px rgba(11, 94, 215, 0.12);
    --shadow-lg: 0 8px 24px rgba(11, 94, 215, 0.15);
}

/* Reset & Base */
.obc-wizard-v2-container {
    max-width: 900px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-light) 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar */
.wizard-progress {
    background: var(--primary-blue);
    padding: 2rem 2rem 2.5rem;
    position: relative;
}

.progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-orange);
    border-radius: 10px;
    width: 25%;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.progress-step.active {
    opacity: 1;
    transform: scale(1.05);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.progress-step.active .step-number {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    text-align: center;
}

/* Wizard Header */
.wizard-header {
    text-align: center;
    padding: 2rem 2rem 2.5rem;
    background: white;
}

.header-logo {
    margin-bottom: 1rem;
}

.logo-image {
    height: 40px;
    width: auto;
}

.wizard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0.5rem 0;
}

.wizard-subtitle-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0.5rem 0;
}

.wizard-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
}

/* Wizard Steps */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-content {
    padding: 2rem;
    min-height: 400px;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0 0 0.5rem 0;
}

.step-description {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0 0 1.5rem 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--danger);
}

.form-select,
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--gray-900);
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Category Cards */
.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.category-card {
    background: white;
    border: 3px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.category-card.selected {
    border-color: var(--primary-blue);
    background: rgba(11, 94, 215, 0.05);
    box-shadow: var(--shadow-sm);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* OBC List Checker */
.obc-list-checker {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #E8F4F8 0%, #D4E9F7 100%);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 2px solid var(--primary-blue);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

.checker-content {
    text-align: center;
}

.info-icon {
    font-size: 2rem;
}

.checker-content p {
    margin: 0.75rem 0;
    font-weight: 600;
    color: var(--primary-blue);
}

.checker-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.check-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.check-link:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.obc-note {
    font-size: 0.85rem;
    color: var(--gray-700);
    text-align: left;
    margin-top: 1rem;
}

/* Employment Grid */
.employment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.employment-column {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
}

.column-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.conditional-field {
    animation: slideDown 0.3s ease;
}

/* Radio Groups */
.radio-group-inline {
    display: flex;
    gap: 1rem;
}

.radio-option-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option-inline input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.radio-group.vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option:hover {
    border-color: var(--primary-blue);
}

.radio-option input[type="radio"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.radio-content {
    flex: 1;
}

.radio-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.radio-desc {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.safe-option {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.05);
}

.critical-label {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rank-hint {
    color: var(--accent-orange);
    font-weight: 600;
}

/* Helper Box */
.helper-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-orange);
    margin-top: 1.5rem;
}

.helper-icon {
    font-size: 1.5rem;
}

.helper-box p {
    margin: 0;
    color: var(--gray-800);
    line-height: 1.6;
}

/* Income Section */
.income-section {
    max-width: 700px;
    margin: 0 auto;
}

.income-guide {
    margin-top: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 1rem;
    border-left: 3px solid var(--primary-blue);
}

.guide-header {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
}

.guide-content div {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.guide-include { color: var(--success); }
.guide-exclude { color: var(--danger); }
.guide-note { color: var(--gray-700); }
.guide-limit {
    color: var(--accent-orange);
    font-weight: 700;
    margin-top: 0.75rem;
}

/* Constitutional Info */
.constitutional-info {
    margin-top: 1rem;
}

.info-toggle {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.info-toggle:hover {
    background: #0952B8;
    transform: translateY(-1px);
}

.constitutional-list {
    margin-top: 1rem;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.constitutional-list h4 {
    color: var(--primary-blue);
    margin-top: 0;
}

.post-category {
    margin-bottom: 1rem;
}

.post-category strong {
    color: var(--accent-orange);
}

.post-category ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.post-category li {
    margin-bottom: 0.25rem;
}

.warning-note {
    background: #FFF3E0;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--accent-orange);
    font-weight: 600;
    margin-top: 1rem;
}

.horizontal-radio {
    display: flex;
    gap: 1.5rem;
}

.radio-option-simple {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-option-simple input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-blue);
}

/* Income Summary */
.income-summary {
    background: var(--primary-blue);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
    color: white;
}

.summary-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-item strong {
    font-size: 1.15rem;
}

.summary-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.summary-status.within-limit {
    background: rgba(40, 167, 69, 0.2);
    color: #A5D6A7;
}

.summary-status.exceeds-limit {
    background: rgba(220, 53, 69, 0.2);
    color: #EF9A9A;
}

.summary-status.borderline {
    background: rgba(245, 158, 11, 0.2);
    color: #FFD54F;
}

/* Action Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-top: 2px solid var(--gray-200);
}

.btn-back,
.btn-next,
.btn-submit {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
}

.btn-back {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-back:hover {
    background: var(--gray-100);
    transform: translateX(-3px);
}

.btn-next,
.btn-submit {
    background: var(--accent-orange);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    background: #E08E00;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-submit {
    background: var(--success);
}

.btn-submit:hover {
    background: #218838;
}

/* Loading State */
.wizard-loading {
    text-align: center;
    padding: 3rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 450px;
    margin: 1rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 0 0 0.75rem 0;
}

.modal-content p {
    color: var(--gray-600);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.btn-modal {
    padding: 0.875rem 2rem;
    background: var(--accent-orange);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal:hover {
    background: #E08E00;
    transform: translateY(-2px);
}

/* Guide Post Section */
.guide-post-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.guide-post-section h2 {
    color: var(--primary-blue);
    margin-top: 0;
}

.guide-intro {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.guide-accordion .guide-item {
    margin-bottom: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.guide-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.guide-toggle:hover {
    background: rgba(11, 94, 215, 0.05);
    color: var(--primary-blue);
}

.guide-content-detail {
    padding: 1.5rem;
    background: white;
}

.guide-content-detail ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.guide-content-detail li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.guide-disclaimer {
    margin-top: 2rem;
    padding: 1rem;
    background: #FFF3E0;
    border-left: 4px solid var(--accent-orange);
    border-radius: var(--radius-sm);
}

/* Results Styles (will be added by JS) */
.results-eligible,
.results-not-eligible {
    padding: 2rem;
    text-align: center;
}

.result-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.result-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin: 0 0 2rem 0;
}

.result-details {
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.result-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

.result-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-whatsapp,
.btn-pdf,
.btn-restart {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1EBE57;
    transform: translateY(-2px);
}

.btn-pdf {
    background: var(--danger);
    color: white;
}

.btn-pdf:hover {
    background: #C82333;
    transform: translateY(-2px);
}

.btn-restart {
    background: var(--gray-600);
    color: white;
}

.btn-restart:hover {
    background: var(--gray-800);
}

.verification-box {
    background: #FFF3E0;
    border: 2px solid var(--accent-orange);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.verification-box h4 {
    color: var(--accent-orange);
    margin-top: 0;
}

.state-info-box {
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.state-info-box h4 {
    color: var(--primary-blue);
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .obc-wizard-v2-container {
        margin: 1rem;
        border-radius: var(--radius-md);
    }
    
    .category-cards {
        grid-template-columns: 1fr;
    }
    
    .employment-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        gap: 0.5rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .checker-links {
        flex-direction: column;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-next,
    .btn-submit {
        margin-left: 0;
    }
    
    /* Larger buttons for mobile */
    .btn-back,
    .btn-next,
    .btn-submit {
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
    }
}
