/* MDGSI Premium Enhanced Styles - GSI Eligibility Checker v3.0 */
:root {
    /* Primary Brand Colors - Enhanced */
    --primary-blue: #1e5aa8;
    --primary-blue-light: #2e6fc2;
    --primary-blue-dark: #164580;
    
    /* Accent Colors - Medical Professional */
    --accent-teal: #00897b;
    --accent-teal-light: #4db6ac;
    --accent-purple: #5e35b1;
    --accent-purple-light: #7e57c2;
    --accent-orange: #f57c00;
    --accent-green: #2e7d32;
    --accent-green-light: #43a047;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e5aa8 0%, #2e6fc2 100%);
    --gradient-success: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    --gradient-premium: linear-gradient(135deg, #5e35b1 0%, #7e57c2 100%);
    --gradient-teal: linear-gradient(135deg, #00897b 0%, #4db6ac 100%);
    --gradient-orange: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
    --gradient-background: linear-gradient(135deg, #f5f7fa 0%, #e3f2fd 100%);
    --gradient-header: linear-gradient(135deg, #1e5aa8 0%, #2e6fc2 50%, #00897b 100%);
    
    /* UI Colors */
    --text-color: #333;
    --text-light: #666;
    --border-color: #d0d0d0;
    --background-color: #f5f7fa;
    --white: #fff;
    
    /* Semantic Colors */
    --success-color: #2e7d32;
    --success-bg: #f0fff4;
    --warning-color: #f57c00;
    --warning-bg: #fff7e6;
    --urgent-color: #d32f2f;
    --urgent-bg: #ffebee;
    --discount-color: #5e35b1;
    --discount-bg: #f3e5f5;
    --info-color: #0288d1;
    --info-bg: #e3f2fd;
    
    /* Shadows - Elevated */
    --shadow-soft: 0 4px 20px rgba(30, 90, 168, 0.08);
    --shadow-medium: 0 8px 30px rgba(30, 90, 168, 0.12);
    --shadow-strong: 0 12px 40px rgba(30, 90, 168, 0.18);
    --shadow-glow: 0 0 30px rgba(30, 90, 168, 0.15);
    --shadow-success: 0 8px 25px rgba(46, 125, 50, 0.2);
    --shadow-premium: 0 8px 25px rgba(94, 53, 177, 0.2);
}

* {
    box-sizing: border-box;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0066cc;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--gradient-background);
    color: var(--text-color);
    margin: 0;
    padding: 30px 20px;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 80px;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: visible;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-header);
}

header {
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-primary) 1;
    padding-bottom: 25px;
    margin-bottom: 30px;
    position: relative;
}

/* MDGSI Branding Block - Side by Side Layout */
.mdgsi-branding {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 0;
}

.mdgsi-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mdgsi-logo-link:hover {
    opacity: 0.85;
}

.mdgsi-logo {
    max-width: 140px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.branding-text {
    flex: 1;
    text-align: left;
}

.mdgsi-caption {
    font-size: 0.875rem;
    color: #666;
    margin: 8px 0 0;
    line-height: 1.4;
}



header h1 {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

header p {
    font-size: 1.35rem;
    color: var(--text-light);
    margin: 0;
    font-weight: 500;
}

/* Enhanced Progress Indicator - HIDDEN */
#progress-container {
    display: none;
}

#progress-bar {
    height: 8px;
    background: linear-gradient(135deg, #D64545 0%, #E85A5A 100%);
    border-radius: 10px;
    width: 25%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(214, 69, 69, 0.3);
    position: relative;
}

#progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #D64545;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.2);
}

#progress-text {
    text-align: center;
    font-size: 1rem;
    color: #D64545;
    margin-top: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Urgency Banners - Enhanced */
.urgency-banner {
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 6px solid;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.urgency-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.urgency-banner h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.urgency-banner p {
    margin: 0 0 10px 0;
    line-height: 1.7;
}

.urgency-banner p:last-child {
    margin-bottom: 0;
}

.info-banner {
    background: linear-gradient(135deg, var(--info-bg) 0%, #e8f5e9 100%);
    border-color: var(--info-color);
}

.info-banner h3 {
    color: var(--info-color);
}

.warning-banner {
    background: linear-gradient(135deg, var(--warning-bg) 0%, #fff3e0 100%);
    border-color: var(--warning-color);
}

.warning-banner h3 {
    color: var(--warning-color);
}

.urgent-banner {
    background: linear-gradient(135deg, var(--urgent-bg) 0%, #fce4ec 100%);
    border-color: var(--urgent-color);
}

.urgent-banner h3 {
    color: var(--urgent-color);
}

/* Step Cards - Enhanced */
.step-card,
.result-card {
    background: var(--white);
    padding: 40px;
    border-radius: 14px;
    box-shadow: var(--shadow-medium);
    border: 2px solid transparent;
    background-image: linear-gradient(white, white), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.app-step {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-step.active {
    display: block;
}

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

@keyframes successPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 15px rgba(46, 125, 50, 0);
    }
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

h2 {
    font-size: 28px;
    line-height: 1.3;
    margin: 32px 0 16px 0;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.4px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 24px 0 12px 0;
    color: var(--text-color);
}

.result-page h2 {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    gap: 20px;
}

.question {
    margin-bottom: 35px;
}

.step-helper-text {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.step-footer-disclosure {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.step-footer-disclosure p {
    margin: 0;
    color: #666;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
    letter-spacing: -0.2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    font-family: inherit;
}

#school-input {
    font-size: 18px;
    padding: 16px;
    border: 2px solid #0066cc;
    border-radius: 8px;
}

input:focus, select:focus, button:focus {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(30, 90, 168, 0.1), 0 4px 12px rgba(30, 90, 168, 0.15);
    transform: translateY(-1px);
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid var(--border-color);
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-grow: 1;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 90, 168, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background-color: #f8f9fa;
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn:active {
    transform: translateY(0);
}

.btn.selected {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 90, 168, 0.15), var(--shadow-soft);
}

.btn-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: var(--white);
    border-color: #0066cc;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 16px 32px;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(-1px);
    animation: successPulse 0.6s ease;
}

.btn-primary:disabled {
    background: #a0a0a0;
    border-color: #a0a0a0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: none;
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    font-weight: 700;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #eef7ff 0%, #e3f2fd 100%);
}

/* Enhanced Search Dropdown */
#school-search-wrapper {
    position: relative;
}

.results-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-blue);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: var(--shadow-strong);
}

.result-item {
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.result-item:hover::before {
    opacity: 1;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: linear-gradient(90deg, #eef7ff 0%, #f8f9fa 100%);
    padding-left: 24px;
}

.school-not-listed {
    font-weight: 700;
    color: var(--primary-blue);
    justify-content: center;
}

.show-more-btn {
    font-weight: 600;
    color: var(--primary-blue);
    justify-content: center;
    background: linear-gradient(90deg, #f0f7ff 0%, #e8f4ff 100%);
    border-top: 2px solid var(--primary-blue-light);
    border-bottom: 2px solid var(--primary-blue-light);
}

.show-more-btn:hover {
    background: linear-gradient(90deg, #e0f0ff 0%, #d0e8ff 100%);
    color: var(--primary-blue-dark);
    font-weight: 700;
}

/* Premium Badges */
.school-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.result-item:hover .school-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gsi-badge {
    background: var(--gradient-success);
    color: var(--white);
    border: none;
}

.discount-badge {
    background: var(--gradient-premium);
    color: var(--white);
    border: none;
}

/* Result Boxes - Enhanced */
.result-box {
    padding: 30px;
    margin: 30px 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f7fa 100%);
    border: 2px solid #e0e0e0;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.result-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.result-box h3 {
    margin-top: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.4rem;
}

.result-box p {
    margin: 0 0 15px 0;
    line-height: 1.8;
}

.result-box p:last-child {
    margin-bottom: 0;
}

.small-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 35px;
}

.cta-buttons .btn {
    text-align: center;
}

/* Form Styling */
.form-group {
    margin-bottom: 25px;
}

#partnership-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

#partnership-form input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

#partnership-form-success {
    background: var(--gradient-success);
    border: none;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-success);
}

#partnership-form-success h2 {
    color: var(--white);
}

/* Result Page Specific Colors - Enhanced */
#result-managed-gsi h2 { 
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#result-partnership-gsi h2 { 
    background: linear-gradient(135deg, #D64545 0%, #E85A5A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.partnership-icon {
    font-size: 2.8rem;
    display: inline-block;
    filter: contrast(1.2) brightness(1.1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#result-exclusive-school h2 { 
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#result-non-gsi-with-discount h2 { 
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#result-non-gsi-no-discount h2 { 
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#result-disqualified-history h2,
#result-work-status-disqualified h2 { 
    background: var(--gradient-premium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Success Celebration */
.success-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--gradient-success);
    border-radius: 50%;
    position: relative;
    animation: successPulse 2s infinite;
}

.success-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
}

/* Responsive Design */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
        padding: 70px 100px;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .container {
        max-width: 1200px;
        padding: 60px 80px;
    }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 50px 60px;
    }
    
    header h1 {
        font-size: 2.6rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 45px 50px;
    }
    
    header h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .result-page h2 {
        font-size: 2rem;
    }
}

/* Large Mobile (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .container {
        max-width: 100%;
        margin: 0 20px;
        padding: 40px 35px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .button-group {
        flex-wrap: nowrap;
    }
    
    .cta-buttons {
        flex-direction: row;
    }
}

/* Mobile (< 600px) */
@media (max-width: 599px) {
    body {
        padding: 15px 10px;
    }
    
    .container {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1.05rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .result-page h2 {
        font-size: 1.7rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .school-badge {
        align-self: flex-start;
        margin-left: 0;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .cta-buttons {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px 0;
        margin: 20px -20px -30px -20px;
        padding: 15px 20px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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


/* Coverage Amount Highlight Box */
.coverage-highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border: 3px solid;
    border-image: linear-gradient(135deg, #2e7d32 0%, #43a047 100%) 1;
    border-radius: 16px;
    padding: 30px 40px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 8px 30px rgba(46, 125, 50, 0.2);
    animation: slideInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}



.coverage-highlight p {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b5e20;
    line-height: 1.5;
}

.coverage-amount {
    display: block;
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0;
    letter-spacing: -1px;
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile adjustments for coverage highlight */
@media (max-width: 599px) {
    .coverage-highlight {
        padding: 25px 20px;
    }
    
    .coverage-highlight p {
        font-size: 1.3rem;
    }
    
    .coverage-amount {
        font-size: 2.2rem;
    }
    

}

/* ===== TRAINING ADVANTAGE SCORE (TAS) METER ===== */
.tas-container {
    display: none; /* Hidden by default, shown by JS */
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid #e3f2fd;
    box-shadow: 0 4px 20px rgba(30, 90, 168, 0.08);
}

.tas-meter {
    max-width: 600px;
    margin: 0 auto;
}

.tas-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.tas-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.tas-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.tas-bar {
    width: 100%;
    height: 24px;
    background-color: #f0f2f7;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.tas-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.6s ease-out;
    border-radius: 9999px;
    position: relative;
}

.tas-band-label {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

.tas-explanation {
    margin-top: 16px;
    font-size: 13px;
    color: #666;
    text-align: center;
    line-height: 1.6;
    font-style: italic;
}

/* TAS States - High Opportunity (80-100) */
.tas-meter.tas-high .tas-value {
    color: #0b305d;
}

.tas-meter.tas-high .tas-bar-fill {
    background: linear-gradient(90deg, #1e5aa8 0%, #2e6fc2 100%);
    box-shadow: 0 2px 8px rgba(30, 90, 168, 0.3);
}

.tas-meter.tas-high .tas-band-label {
    color: #0b305d;
}

/* TAS States - Solid Opportunity (60-79) */
.tas-meter.tas-solid .tas-value {
    color: #8a4b00;
}

.tas-meter.tas-solid .tas-bar-fill {
    background: linear-gradient(90deg, #f4a623 0%, #ff9800 100%);
    box-shadow: 0 2px 8px rgba(244, 166, 35, 0.3);
}

.tas-meter.tas-solid .tas-band-label {
    color: #8a4b00;
}

/* TAS States - Limited Opportunity (40-59) */
.tas-meter.tas-limited .tas-value {
    color: #9e1c1c;
}

.tas-meter.tas-limited .tas-bar-fill {
    background: linear-gradient(90deg, #d64545 0%, #e85a5a 100%);
    box-shadow: 0 2px 8px rgba(214, 69, 69, 0.3);
}

.tas-meter.tas-limited .tas-band-label {
    color: #9e1c1c;
}

/* ===== URGENCY BANNERS ===== */
.urgency-banner {
    margin: 25px 0;
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 5px solid;
}

.urgency-banner h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
}

.urgency-banner p {
    margin: 0 0 10px 0;
    font-size: 15px;
    line-height: 1.6;
}

.urgency-banner p:last-child {
    margin-bottom: 0;
}

.urgency-banner .countdown {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
}

/* Info Banner - Not Final Year (Soft Blue/Yellow) */
.urgency-banner.info-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #fff9e6 100%);
    border-left-color: #1e5aa8;
}

.urgency-banner.info-banner h3 {
    color: #0b305d;
}

.urgency-banner.info-banner p {
    color: #333;
}

/* Mild Warning Banner - Final Year >180 days (Orange) */
.urgency-banner.mild-warning-banner {
    background: linear-gradient(135deg, #fff7e6 0%, #ffe0b2 100%);
    border-left-color: #f4a623;
}

.urgency-banner.mild-warning-banner h3 {
    color: #8a4b00;
}

.urgency-banner.mild-warning-banner p {
    color: #333;
}

/* Warning Banner - Final Year ≤180 days (Orange) */
.urgency-banner.warning-banner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #f57c00;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.15);
}

.urgency-banner.warning-banner h3 {
    color: #e65100;
}

.urgency-banner.warning-banner p {
    color: #333;
}

/* Urgent Banner - Post-Grad ≤90 days (Red) */
.urgency-banner.urgent-banner {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left-color: #d64545;
    box-shadow: 0 4px 15px rgba(214, 69, 69, 0.2);
}

.urgency-banner.urgent-banner h3 {
    color: #b71c1c;
}

.urgency-banner.urgent-banner p {
    color: #333;
}

.urgency-banner.urgent-banner .countdown {
    color: #b71c1c;
    font-size: 18px;
}

.urgent-text {
    color: #b71c1c;
    font-weight: 700;
}

/* ===== RESPONSIVE - TAS METER ===== */
@media (max-width: 600px) {
    .tas-container {
        padding: 20px 15px;
    }

    .tas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tas-label {
        font-size: 12px;
    }

    .tas-value {
        font-size: 24px;
    }

    .tas-bar {
        height: 20px;
    }

    .tas-band-label {
        font-size: 13px;
    }

    .tas-explanation {
        font-size: 12px;
    }

    .urgency-banner {
        padding: 15px 18px;
    }

    .urgency-banner h3 {
        font-size: 16px;
    }

    .urgency-banner p {
        font-size: 14px;
    }
}


/* ===================================
   NEW: OPPORTUNITY WINDOW TIMELINE - ANIMATED
   =================================== */

/* Step helper text styling */
.step-helper-text {
    font-size: 0.95rem;
    color: #666;
    margin: -8px 0 20px 0;
    line-height: 1.5;
}

/* Opportunity Status Container */
.opportunity-status {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 32px;
    margin: 28px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    /* Visible by default - animation removed for reliability */
    opacity: 1 !important;
    transform: translateY(0);
}

.opportunity-status-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: -0.3px;
}

/* Timeline container - horizontal bar with 3 blocks */
.opportunity-status-timeline {
    display: flex;
    gap: 8px;
    background-color: #F0F2F7;
    border-radius: 9999px;
    padding: 8px;
    align-items: stretch;
    margin-bottom: 20px;
}

/* Individual stage blocks - INACTIVE by default */
.opportunity-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid #d3d7e0;
    background-color: #f9f9fb;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 8px 4px;
    min-height: 56px;
    /* Smooth transitions for all state changes */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, 
                transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.opportunity-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
    display: block;
    transition: all 0.3s ease;
}

.opportunity-label {
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* ACTIVE STATE: OPTIMUM WINDOW */
.status-optimum .opportunity-stage-optimum {
    background: #1E5AA8;
    border-color: transparent;
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(30, 90, 168, 0.3);
    z-index: 2;
}

.status-optimum .opportunity-stage-optimum .opportunity-icon,
.status-optimum .opportunity-stage-optimum .opportunity-label {
    color: #ffffff;
}

/* ACTIVE STATE: CLOSING WINDOW */
.status-closing .opportunity-stage-closing {
    background: #F4A623;
    border-color: transparent;
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(244, 166, 35, 0.3);
    z-index: 2;
}

.status-closing .opportunity-stage-closing .opportunity-icon,
.status-closing .opportunity-stage-closing .opportunity-label {
    color: #8A4B00;
}

/* ACTIVE STATE: FINAL WINDOW */
.status-final .opportunity-stage-final {
    background: #D64545;
    border-color: transparent;
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(214, 69, 69, 0.3);
    z-index: 2;
}

.status-final .opportunity-stage-final .opportunity-icon,
.status-final .opportunity-stage-final .opportunity-label {
    color: #ffffff;
}

/* Window status text under timeline */
.window-status-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    text-align: center;
    margin: 0;
    padding: 0 20px;
    font-weight: 500;
}

/* ===================================
   UPDATED: FINAL WINDOW URGENCY BANNER
   =================================== */

.final-window-alert {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #FCE7E7;
    border-left: 5px solid #D64545;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(214, 69, 69, 0.15);
}

.final-window-icon {
    font-size: 2rem;
    color: #D64545;
    line-height: 1;
    flex-shrink: 0;
}

.final-window-content {
    flex: 1;
}

.final-window-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #B71C1C;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
}

.final-window-content p {
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.final-window-content p:last-child {
    margin-bottom: 0;
}
.final-window-countdown {
    font-weight: 600;
    color: #B71C1C;
}

/* ===================================
   NEW: CLOSING WINDOW COUNTDOWN (ORANGE)
   =================================== */

.closing-window-alert {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #FFF4E6;
    border-left: 5px solid #FF9800;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.closing-window-icon {
    font-size: 2rem;
    color: #FF9800;
    line-height: 1;
    flex-shrink: 0;
}

.closing-window-content {
    flex: 1;
}

.closing-window-countdown {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}    font-size: 1rem;
    margin-top: 12px !important;
}

.final-window-countdown strong {
    font-size: 1.1rem;
    color: #D64545;
}

/* ===================================
   MOBILE RESPONSIVE - NEW TIMELINE
   =================================== */

@media (max-width: 768px) {
    /* Mobile Header Optimizations */
    .mdgsi-branding {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .mdgsi-logo {
        max-width: 100px;
    }
    
    .branding-text {
        text-align: left;
    }
    
    header h1 {
        font-size: 26px;
        line-height: 1.3;
    }
    
    .mdgsi-caption {
        font-size: 0.8rem;
    }
    
    /* Mobile Touch Targets */
    .school-result-item {
        padding: 16px;
        min-height: 48px;
    }
    
    button {
        min-height: 48px;
        padding: 14px 24px;
    }
    
    #school-input {
        font-size: 16px;
        padding: 14px;
    }
    
    .opportunity-status {
        padding: 20px 16px;
    }
    
    .opportunity-status-heading {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .opportunity-status-timeline {
        gap: 6px;
        padding: 6px;
    }
    
    .opportunity-stage {
        min-height: 48px;
        padding: 6px 3px;
    }
    
    .opportunity-icon {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }
    
    .opportunity-label {
        font-size: 9px;
        letter-spacing: 0.5px;
    }
    
    .window-status-text {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    /* Active states on mobile - slightly less scale */
    .status-optimum .opportunity-stage-optimum,
    .status-closing .opportunity-stage-closing,
    .status-final .opportunity-stage-final {
        transform: scale(1.03);
    }
    
    /* Final window alert on mobile */
    .final-window-alert {
        flex-direction: column;
        gap: 12px;
        padding: 16px 18px;
    }
    
    .final-window-icon {
        font-size: 1.8rem;
    }
    
    .final-window-title {
        font-size: 1rem;
    }
    
    .final-window-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .step-helper-text {
        font-size: 0.9rem;
        margin: -6px 0 16px 0;
    }
}

@media (max-width: 400px) {
    .opportunity-stage {
        min-height: 44px;
        padding: 5px 2px;
    }
    
    .opportunity-icon {
        font-size: 1.2rem;
    }
    
    .opportunity-label {
        font-size: 8px;
        letter-spacing: 0.3px;
    }
}


/* ===================================
   SEO CONTENT SECTIONS
   =================================== */

.seo-intro {
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    line-height: 1.6;
}

.seo-intro h2 {
    font-size: 1.3rem;
    color: #1e5aa8;
    margin: 20px 0 10px 0;
}

.seo-intro p {
    margin-bottom: 12px;
    color: #333;
}

.seo-faq {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px 20px;
    background: #ffffff;
    border-top: 2px solid #e0e0e0;
}

.seo-faq h2 {
    font-size: 1.5rem;
    color: #1e5aa8;
    margin-bottom: 24px;
    text-align: center;
}

.seo-faq h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 20px 0 8px 0;
    font-weight: 600;
}

.seo-faq p {
    margin-bottom: 16px;
    color: #555;
    line-height: 1.6;
}

.seo-footer {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.seo-footer p {
    color: #666;
    font-size: 0.95rem;
}

.seo-footer a {
    color: #1e5aa8;
    text-decoration: none;
    font-weight: 500;
}

.seo-footer a:hover {
    text-decoration: underline;
}

.seo-footer .disclaimer-text {
    color: #666;
    font-size: 0.85rem;
    margin-top: 16px;
    line-height: 1.5;
}

/* ===================================
   ACCENT COLOR SYSTEM
   =================================== */

/* Blue - GSI Eligible (both managed and partnership) */
#result-managed-gsi h2,
#result-partnership-gsi h2 {
    color: #1e5aa8;
}

#result-managed-gsi .btn-primary,
#result-partnership-gsi .btn-primary {
    background: #1e5aa8;
    border-color: #1e5aa8;
}

#result-managed-gsi .btn-primary:hover,
#result-partnership-gsi .btn-primary:hover {
    background: #164a8a;
    border-color: #164a8a;
}

/* Green - Discounted Rates */
#result-non-gsi-with-discount h2 {
    color: #2c9e4b;
}

#result-non-gsi-with-discount .btn-primary {
    background: #2c9e4b;
    border-color: #2c9e4b;
}

#result-non-gsi-with-discount .btn-primary:hover {
    background: #238a3d;
    border-color: #238a3d;
}

#result-non-gsi-with-discount .result-box {
    border-left: 4px solid #2c9e4b;
}

/* Green - No GSI (changed from gray to match discount styling) */
#result-non-gsi-no-discount h2 {
    color: #2c9e4b;
}

#result-non-gsi-no-discount .btn-primary {
    background: #2c9e4b;
    border-color: #2c9e4b;
}

#result-non-gsi-no-discount .btn-primary:hover {
    background: #238a3d;
    border-color: #238a3d;
}

#result-non-gsi-no-discount .result-box {
    border-left: 4px solid #2c9e4b;
}

/* Red - Not Eligible */
#result-disqualified-history h2,
#result-work-status-disqualified h2 {
    color: #d7263d;
}

#result-disqualified-history .btn-primary,
#result-work-status-disqualified .btn-primary {
    background: #d7263d;
    border-color: #d7263d;
}

#result-disqualified-history .btn-primary:hover,
#result-work-status-disqualified .btn-primary:hover {
    background: #b71c32;
    border-color: #b71c32;
}

#result-disqualified-history .result-box,
#result-work-status-disqualified .result-box {
    border-left: 4px solid #d7263d;
}

/* Gray - Exclusive School */
#result-exclusive-school h2 {
    color: #666;
}

#result-exclusive-school .result-box {
    border-left: 4px solid #999;
}

/* ===================================
   MOBILE RESPONSIVE - SEO SECTIONS
   =================================== */

@media (max-width: 768px) {
    .seo-intro,
    .seo-faq,
    .seo-footer {
        padding: 16px;
    }
    
    .seo-intro h2 {
        font-size: 1.2rem;
    }
    
    .seo-faq h2 {
        font-size: 1.3rem;
    }
    
    .seo-faq h3 {
        font-size: 1rem;
    }
}


/* ===================================
   BACK BUTTON STYLES
   =================================== */

.btn-back {
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.btn-back:active {
    transform: scale(0.98);
}

/* ===================================
   STEP-SPECIFIC FAQ STYLES
   =================================== */

.step-faq {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #1e5aa8;
}

.step-faq h3 {
    font-size: 1.2rem;
    color: #1e5aa8;
    margin-bottom: 16px;
}

.step-faq details {
    margin-bottom: 12px;
    padding: 12px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.step-faq details[open] {
    border-color: #1e5aa8;
}

.step-faq summary {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Remove default arrow */
}

.step-faq summary::-webkit-details-marker {
    display: none; /* Remove default arrow in WebKit browsers */
}

.step-faq summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.2s ease;
    color: #1e5aa8;
}

.step-faq details[open] summary::before {
    transform: rotate(90deg);
}

.step-faq summary:hover {
    color: #1e5aa8;
}

.step-faq p {
    margin-top: 12px;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   MOBILE RESPONSIVE - BACK BUTTON & FAQ
   =================================== */

@media (max-width: 768px) {
    .btn-back {
        width: 100%;
        margin-top: 16px;
    }
    
    .step-faq {
        padding: 16px;
        margin-top: 30px;
    }
    
    .step-faq h3 {
        font-size: 1.1rem;
    }
    
    .step-faq details {
        padding: 10px;
    }
    
    .step-faq summary {
        font-size: 0.95rem;
    }
    
    /* MDGSI Branding - Mobile Optimization */
    .mdgsi-logo {
        max-width: 96px;
    }
    
    .mdgsi-branding {
        margin-bottom: 10px;
    }
    
    .mdgsi-logo {
        margin-bottom: 8px;
    }
    
    .mdgsi-caption {
        font-size: 0.75rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .authority-line {
        font-size: 0.9rem;
        margin-top: 12px;
        line-height: 1.5;
    }
    
    header h1 {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }
    
    header {
        padding-bottom: 24px;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 30px 20px;
    }
}
