@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(90deg, #0f2b43 0%, #63aee1 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    font-size: clamp(1em, 2vw, 1.1em);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.logo {
    width: 260px;
    aspect-ratio: 3.5 / 1;
    max-width: 100%;
    min-width: 100px;
    min-height: 40px;
    margin: 0 auto 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('lai.jpg') no-repeat center center;
    background-size: contain;
    background-color: #fff;
    /* fallback for browsers without aspect-ratio */
    height: 74px;
}

.header h1 {
    font-size: clamp(1.2em, 4vw, 2.8em);
    font-weight: 700;
    color: #8FCDFF;
    margin-bottom: 15px;
}

.header p {
    font-size: clamp(0.95em, 2.5vw, 1.3em);
    color: #555;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.assessment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.info-card {
    background: rgba(30, 60, 114, 0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(30, 60, 114, 0.2);
}

.info-card h4 {
    color: #1e3c72;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.info-card p {
    color: #666;
    font-size: clamp(0.95em, 2.5vw, 1.3em);
}

.progress-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    transition: width 0.5s ease;
    border-radius: 6px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1e3c72;
}

.section {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    border-bottom: 3px solid #1e3c72;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section h2 {
    color: #8FCDFF;
    font-size: clamp(1.2em, 4vw, 2.8em);
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: clamp(0.95em, 2.5vw, 1.3em);
    font-style: italic;
}

.question {
    margin-bottom: 35px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 5px solid #1e3c72;
}

.question h3 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.question-options {
    display: grid;
    gap: 12px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option:hover {
    border-color: #1e3c72;
    background: #f0f4ff;
    transform: translateX(5px);
}

.option.selected {
    border-color: #1e3c72;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    transform: translateX(5px);
}

.option input[type="radio"], .option input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 2px;
}

.option-text {
    flex: 1;
}

.checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-option:hover {
    border-color: #1e3c72;
    background: #f0f4ff;
}

.checkbox-option.selected {
    border-color: #1e3c72;
    background: #f0f4ff;
}

.checkbox-option input[type="checkbox"] {
    margin-right: 12px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border: none;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: #2563eb;
    color: #fff;
}

.btn-secondary {
    background: #f8fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e0;
}

.lead-form {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 35px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #1e3c72;
}

.lead-form h3 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.6em;
    text-align: center;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.privacy-note {
    font-size: clamp(0.95em, 2.5vw, 1.3em);
    color: #666;
    margin-top: 15px;
    text-align: center;
}

.results-dashboard {
    text-align: center;
    padding: 40px 30px;
}

.total-score {
    font-size: 4.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.readiness-level {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 40px;
    padding: 20px 40px;
    border-radius: 50px;
    display: inline-block;
    color: white;
}

.level-excellent { background: linear-gradient(135deg, #059669, #10b981); }
.level-good { background: linear-gradient(135deg, #0284c7, #0ea5e9); }
.level-moderate { background: linear-gradient(135deg, #ea580c, #f97316); }
.level-developing { background: linear-gradient(135deg, #dc2626, #ef4444); }

.category-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #1e3c72;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.category-card h4 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.category-score-bar {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.category-score-num {
    font-size: 1.5em;
    font-weight: 700;
    color: #1e3c72;
    min-width: 80px;
}

.category-bar {
    flex: 1;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin: 0 15px;
    overflow: hidden;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.category-status {
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 15px;
    display: inline-block;
}

.status-excellent { background: #d1fae5; color: #065f46; }
.status-good { background: #dbeafe; color: #1e40af; }
.status-moderate { background: #fed7aa; color: #ea580c; }
.status-developing { background: #fecaca; color: #dc2626; }

.category-advice {
    color: #4a5568;
    line-height: 1.5;
    margin-top: 10px;
    font-size: clamp(0.95em, 2.5vw, 1.3em);
}

.cta-section {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 2em;
    margin-bottom: 20px;
}

.recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.recommendation {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.recommendation h4 {
    margin-bottom: 10px;
    font-size: 1.2em;
}

.score-visualization {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
    border-radius: 20px;
    margin: 30px 0;
    border: 2px solid #e2e8f0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.score-bar-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1e3c72;
}

.score-bar-text.excellent {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.score-bar-text.good {
    border-left-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.score-bar-text.moderate {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.score-bar-text.developing {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.score-label {
    font-weight: 600;
    color: #1e3c72;
    font-size: 1em;
    flex: 1;
}

.score-number {
    font-weight: 700;
    color: #1e3c72;
    font-size: 1.1em;
    margin-left: 10px;
}

.score-visual-bar {
    width: 100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
    padding: 5px 0;
    overflow-x: auto;
    white-space: nowrap;
}

.total-score-bar {
    border-top: 2px solid #cbd5e0;
    margin-top: 20px;
    padding-top: 15px;
}

.total-score-bar .score-bar-text {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-left: 4px solid #fbbf24;
}

.total-score-bar .score-label,
.total-score-bar .score-number {
    color: white;
}

@media (max-width: 1200px) {
    .container {
        max-width: 98vw;
        padding: 15px;
    }
    .header {
        padding: 30px 10px;
    }
    .section {
        padding: 30px 10px;
    }
}

@media (max-width: 992px) {
    .header h1 {
        font-size: 2.2em;
    }
    .section h2 {
        font-size: 1.6em;
    }
    .category-scores {
        grid-template-columns: 1fr;
    }
    .assessment-info {
        grid-template-columns: 1fr 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .cta-section {
        padding: 25px 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 8px;
    }
    .header {
        padding: 18px 5px;
    }
    .logo {
        width: 160px;
        min-width: 70px;
        min-height: 28px;
        height: 40px;
        aspect-ratio: 3.5 / 1;
    }
    .header h1 {
        font-size: 1.5em;
    }
    .header p {
        font-size: 1em;
    }
    .section {
        padding: 15px 5px;
        border-radius: 12px;
    }
    .assessment-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .info-card {
        padding: 12px;
    }
    .question {
        padding: 12px;
    }
    .navigation {
        flex-direction: column;
        gap: 15px;
        padding-top: 10px;
    }
    .btn {
        width: 100%;
        padding: 12px 0;
        font-size: 1em;
    }
    .lead-form {
        padding: 15px 5px;
        border-radius: 10px;
    }
    .results-dashboard {
        padding: 18px 5px;
    }
    .cta-section {
        padding: 15px 5px;
        border-radius: 10px;
    }
    .recommendations {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    .container {
        padding: 2px;
    }
    .header {
        padding: 8px 2px;
        border-radius: 8px;
    }
    .logo {
        width: 110px;
        min-width: 50px;
        min-height: 18px;
        height: 24px;
        aspect-ratio: 3.5 / 1;
    }
    .header h1 {
        font-size: 1.1em;
    }
    .section {
        padding: 8px 2px;
        border-radius: 6px;
    }
    .question {
        padding: 8px 2px;
        border-radius: 6px;
    }
    .btn {
        font-size: 0.95em;
        padding: 10px 0;
    }
    .lead-form {
        padding: 8px 2px;
        border-radius: 6px;
    }
    .results-dashboard {
        padding: 8px 2px;
    }
    .cta-section {
        padding: 8px 2px;
        border-radius: 6px;
    }
    .category-card {
        padding: 10px 2px;
        border-radius: 6px;
    }
    .score-bar-text {
        padding: 8px 2px;
        border-radius: 6px;
    }
}

/* Fluid typography for headings and body */
.header h1, .section h2 {
    font-size: clamp(1.2em, 4vw, 2.8em);
}
.header p, .section-subtitle, .info-card p, .category-advice, .privacy-note {
    font-size: clamp(0.95em, 2.5vw, 1.3em);
}

body {
    font-size: clamp(1em, 2vw, 1.1em);
}

/* Make images and logo responsive */
.logo {
    max-width: 100%;
    height: auto;
    min-width: 80px;
    min-height: 30px;
    }

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure no horizontal scroll */
html, body {
    overflow-x: hidden;
}


.btn {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent overlapping and ensure stacking */
.assessment-info, .category-scores, .recommendations, .form-row {
    grid-gap: 10px;
    gap: 10px;
}

/* Hide scrollbars on mobile for score visualizations */
@media (max-width: 480px) {
    .score-visualization {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .score-visualization::-webkit-scrollbar {
        display: none;
    }
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-scores {
        grid-template-columns: 1fr;
    }
    
    .recommendations {
        grid-template-columns: 1fr;
    }
}