/* MTH SURVEY - REFINED BRUTALIST DESIGN */
/* Modern Brutalism with MTH Green */

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

:root {
    /* Base Colors */
    --pure-white: #FFFFFF;
    --pure-black: #000000;
    --light-gray: #F7F7F7;
    --mid-gray: #E5E5E5;
    --dark-gray: #555555;
    
    /* MTH Green System */
    --mth-green: #9DC20A;
    --mth-green-dark: #7FA008;
    --mth-green-pale: rgba(157, 194, 10, 0.08);
    
    /* Typography */
    --font-main: 'Space Grotesk', -apple-system, system-ui, sans-serif;
    
    /* Spacing */
    --grid-margin: 120px;
    --section-spacing: 100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    color: var(--pure-black);
    background: var(--pure-white);
    -webkit-font-smoothing: antialiased;
}

/* LOADING */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--pure-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--mth-green);
    animation: spin 0.8s linear infinite;
}

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

/* PROGRESS LINE */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--light-gray);
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: var(--mth-green);
    transition: width 0.3s ease;
}

/* HEADER */
.header {
    position: fixed;
    top: 4px;
    left: 0;
    width: 100%;
    background: var(--pure-white);
    border-bottom: 2px solid var(--pure-black);
    padding: 24px var(--grid-margin);
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 32px;
    z-index: 1000;
}

.header-logo {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-title {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

.header-btn {
    padding: 8px 20px;
    border: 2px solid var(--pure-black);
    background: transparent;
    font-family: var(--font-main);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.header-btn:hover {
    background: var(--pure-black);
    color: var(--pure-white);
}

.header-btn.active {
    background: var(--mth-green);
    border-color: var(--mth-green);
    color: var(--pure-white);
}

/* CONTAINER */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 120px var(--grid-margin) 80px;
}

.section {
    margin-bottom: var(--section-spacing);
}

.section-alt {
    background: var(--light-gray);
    margin-left: calc(var(--grid-margin) * -1);
    margin-right: calc(var(--grid-margin) * -1);
    padding: 80px var(--grid-margin);
}

/* INTRO */
.intro-section {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: var(--section-spacing);
}

.intro-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 32px;
}

.intro-subtitle {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0.02em;
    max-width: 600px;
    margin-bottom: 80px;
    color: var(--dark-gray);
}

.intro-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 800px;
    width: 100%;
}

.info-item-brutalist {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.info-icon-brutalist {
    width: 56px;
    height: 56px;
    border: 3px solid var(--pure-black);
    background: var(--mth-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--pure-white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.info-text-brutalist {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

/* SECTION HEADERS */
.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--mth-green);
    margin-bottom: 24px;
    padding: 6px 20px;
    border: 2px solid var(--mth-green);
}

.section-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-description {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 60px;
    color: var(--dark-gray);
}

/* QUESTION BLOCKS */
.question-block {
    margin-bottom: 64px;
    padding: 64px;
    border: 3px solid var(--pure-black);
    background: var(--pure-white);
}

.question-number {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--pure-white);
    background: var(--mth-green);
    padding: 10px 24px;
    margin-bottom: 28px;
    border: 3px solid var(--mth-green);
}

.question-text {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 40px;
}

.question-hint {
    font-size: 16px;
    font-weight: 400;
    color: var(--dark-gray);
    margin-top: 16px;
}

/* OPTIONS */
.options-grid {
    display: grid;
    gap: 16px;
}

.option-card {
    padding: 24px 32px;
    border: 2px solid var(--pure-black);
    background: var(--pure-white);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 20px;
}

.option-card:hover {
    background: var(--mth-green);
    border-color: var(--mth-green);
    color: var(--pure-white);
}

.option-card.selected {
    background: var(--mth-green);
    border-color: var(--mth-green);
    color: var(--pure-white);
}

/* CHECKBOXES - ALWAYS SQUARE */
.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 2px solid var(--pure-black);
    border-radius: 0;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--pure-white);
    position: relative;
    transition: all 0.15s;
}

.option-card input[type="radio"]:checked,
.option-card input[type="checkbox"]:checked {
    background: var(--mth-green);
    border-color: var(--mth-green);
}

.option-card input[type="radio"]:checked::after,
.option-card input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--pure-white);
}

.option-card:hover input[type="radio"],
.option-card:hover input[type="checkbox"] {
    border-color: var(--pure-white);
}

.option-card.selected input[type="radio"],
.option-card.selected input[type="checkbox"] {
    border-color: var(--pure-white);
    background: var(--pure-white);
}

.option-card.selected input[type="radio"]::after,
.option-card.selected input[type="checkbox"]::after {
    background: var(--mth-green);
}

/* RATING BOXES */
.rating-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 36px 0;
}

.rating-box {
    aspect-ratio: 1;
    border: 3px solid var(--pure-black);
    background: var(--pure-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.rating-box:hover {
    background: var(--mth-green);
    border-color: var(--mth-green);
    color: var(--pure-white);
}

.rating-box.selected {
    background: var(--mth-green);
    border-color: var(--mth-green);
    color: var(--pure-white);
}

.rating-box input {
    display: none;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 20px;
}

/* INPUTS */
.input-brutalist {
    width: 100%;
    padding: 22px 28px;
    border: 2px solid var(--pure-black);
    background: var(--pure-white);
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 400;
    transition: all 0.2s;
}

.input-brutalist:focus {
    outline: none;
    border-color: var(--mth-green);
    border-width: 3px;
}

.input-brutalist::placeholder {
    color: var(--dark-gray);
    opacity: 0.5;
}

textarea.input-brutalist {
    min-height: 200px;
    resize: vertical;
    line-height: 1.7;
}

/* AUDIO */
.audio-section {
    margin-top: 32px;
    padding: 32px;
    border: 2px solid var(--pure-black);
    background: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.btn-audio-brutalist {
    padding: 16px 32px;
    border: 2px solid var(--pure-black);
    background: var(--pure-black);
    color: var(--pure-white);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-audio-brutalist:hover {
    background: var(--mth-green);
    border-color: var(--mth-green);
}

.btn-audio-brutalist.recording {
    background: var(--mth-green);
    border-color: var(--mth-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.audio-status-brutalist {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.audio-info-brutalist {
    margin-top: 16px;
    padding: 24px;
    border-left: 4px solid var(--mth-green);
    background: var(--mth-green-pale);
    font-size: 15px;
    line-height: 1.7;
}

/* BUTTONS */
.btn-brutalist {
    padding: 20px 48px;
    border: 3px solid var(--pure-black);
    background: var(--pure-white);
    color: var(--pure-black);
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-brutalist:hover {
    background: var(--pure-black);
    color: var(--pure-white);
}

.btn-brutalist-primary {
    background: var(--mth-green);
    border-color: var(--mth-green);
    color: var(--pure-white);
}

.btn-brutalist-primary:hover {
    background: var(--mth-green-dark);
    border-color: var(--mth-green-dark);
}

.button-row {
    display: flex;
    gap: 24px;
    margin-top: 64px;
    justify-content: space-between;
}

/* CTA */
.cta-section {
    background: var(--mth-green);
    margin-left: calc(var(--grid-margin) * -1);
    margin-right: calc(var(--grid-margin) * -1);
    padding: 120px var(--grid-margin);
    text-align: center;
    color: var(--pure-white);
}

.cta-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 0.95;
    margin-bottom: 48px;
}

.btn-cta {
    padding: 24px 64px;
    border: 3px solid var(--pure-white);
    background: transparent;
    color: var(--pure-white);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cta:hover {
    background: var(--pure-white);
    color: var(--mth-green);
}

/* INTERLUDE */
.interlude-brutalist {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 40px;
}

.interlude-number {
    font-size: 140px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 48px;
    color: var(--mth-green);
}

.interlude-title-brutalist {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 32px;
}

.interlude-desc-brutalist {
    font-size: 20px;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 64px;
    color: var(--dark-gray);
}

.fun-fact-brutalist {
    padding: 44px;
    border: 3px solid var(--mth-green);
    background: var(--mth-green-pale);
    max-width: 700px;
    margin: 0 auto 64px;
}

.fun-fact-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--mth-green);
}

.fun-fact-text-brutalist {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.6;
}

/* FOOTER */
.footer-brutalist {
    margin-top: 120px;
    padding: 64px var(--grid-margin);
    border-top: 3px solid var(--pure-black);
    text-align: center;
}

.footer-main-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-link {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--pure-black);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.footer-link:hover {
    border-bottom-color: var(--mth-green);
    color: var(--mth-green);
}

/* MODAL */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    overflow-y: auto;
}

.modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-brutalist {
    background: var(--pure-white);
    border: 4px solid var(--pure-black);
    max-width: 900px;
    width: 100%;
    padding: 64px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border: 2px solid var(--pure-black);
    background: transparent;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--pure-black);
    color: var(--pure-white);
}

.modal-brutalist h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.modal-brutalist h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
}

.modal-brutalist p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.modal-brutalist ul {
    margin: 16px 0 16px 32px;
}

.modal-brutalist li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* THANK YOU */
.thank-you-brutalist {
    text-align: center;
    padding: 120px 40px;
}

.success-number {
    font-size: 180px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 48px;
    color: var(--mth-green);
}

.thank-you-title-brutalist {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 32px;
}

.thank-you-text-brutalist {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 64px;
    color: var(--dark-gray);
}

.thank-you-info-brutalist {
    padding: 44px;
    border: 3px solid var(--pure-black);
    background: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* SCREEN TRANSITIONS */
.screen {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.screen.active {
    display: block;
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    :root {
        --grid-margin: 60px;
        --section-spacing: 80px;
    }
}

@media (max-width: 768px) {
    :root {
        --grid-margin: 32px;
        --section-spacing: 60px;
    }
    
    .header {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
        padding: 20px 32px;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .intro-info {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .question-block {
        padding: 40px 28px;
    }
    
    .rating-box {
        font-size: 28px;
    }
    
    .button-row {
        flex-direction: column;
    }
    
    .btn-brutalist {
        width: 100%;
    }
    
    .modal-brutalist {
        padding: 40px 28px;
    }
    
    .audio-section {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --grid-margin: 20px;
    }
    
    .question-block {
        padding: 32px 20px;
    }
    
    .option-card {
        padding: 18px 24px;
        font-size: 16px;
    }
    
    .rating-grid {
        gap: 10px;
    }
    
    .rating-box {
        font-size: 24px;
    }
}
