@font-face {
    font-family: 'Suiza';
    src: url('assets/fonts/SuizaExtraLight.woff2?v=4') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suiza';
    src: url('assets/fonts/SuizaRegular.woff2?v=4') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suiza';
    src: url('assets/fonts/SuizaBold.woff2?v=4') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg-color: #eff2ee;
    --text-color: #124055;
    --line-color: #c6c7c5;
    --accent-color: #f79755;
    --card-bg: #ffffff;
}

body {
    font-family: 'Suiza', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    font-size: 16px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.screen {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.screen.active {
    display: block;
}

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

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 80px;
    box-shadow: 0 2px 12px rgba(18, 64, 85, 0.08);
    border: 1px solid var(--line-color);
}

.intro-card {
    text-align: left;
    max-width: 600px;
    margin: 60px auto;
}

#intro-title {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #000000;
}

#intro-description {
    font-size: 16px;
    margin-bottom: 32px;
    color: var(--text-color);
    font-weight: 200;
}

.btn-primary, .btn-secondary {
    font-family: 'Suiza', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000000;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #e6863d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 151, 85, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--line-color);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: rgba(18, 64, 85, 0.05);
}

.question-card {
    max-width: 700px;
    margin: 40px auto;
    height: 550px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.question-counter {
    font-size: 0.875rem;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 200;
    flex-shrink: 0;
}

.question-text {
    font-size: 18px;
    font-weight: 400;
    min-height: 90px;
    margin-bottom: 16px;
    line-height: 1.3;
    color: #000000;
    flex-grow: 0;
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--line-color);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 24px;
    flex-shrink: 0;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.4s ease;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    flex-shrink: 0;
    margin-top: auto;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    margin-top: auto;
}

.option-btn {
    font-family: 'Suiza', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px solid var(--line-color);
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.option-btn:hover {
    border-color: var(--text-color);
    background-color: rgba(18, 64, 85, 0.05);
}

.option-btn.selected {
    border-color: var(--accent-color);
    background-color: rgba(247, 151, 85, 0.1);
}

#text-input-container {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    flex-shrink: 0;
}

.text-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid var(--line-color);
    border-radius: 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
    margin-bottom: 16px;
    min-height: 100px;
    max-height: 200px;
}

.text-input::placeholder {
    font-weight: 200;
    color: var(--text-color);
    opacity: 0.7;
}

.text-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.results-card {
    text-align: left;
    max-width: 700px;
    margin: 40px auto;
}

#results-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #000000;
}

.gauge-container {
    position: relative;
    margin: 32px auto 48px auto;
    width: 100%;
    max-width: 450px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#gauge-canvas {
    display: block;
    width: 100%;
    max-width: 450px;
    height: auto;
}

.score-display {
    text-align: center;
    margin-top: 24px;
}

#score-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-color);
}

.score-label {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 200;
}

.tier-badge {
    text-align: center;
    margin: 64px 0 24px 0;
}

#tier-name {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    padding: 8px 24px;
    border: 2px solid var(--accent-color);
    border-radius: 24px;
    background-color: rgba(247, 151, 85, 0.1);
}

.tier-summary {
    font-size: 1rem;
    line-height: 1.7;
    margin: 24px 0;
    padding: 24px;
    background-color: var(--bg-color);
    border-radius: 12px;
    color: #000000;
}

.insights-container {
    margin: 32px 0;
}

.insight-item {
    margin-bottom: 24px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.insight-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insight-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
}

.cta-container {
    margin: 32px 0;
}

.cta-box {
    padding: 24px;
    background-color: var(--bg-color);
    border-radius: 12px;
    margin-bottom: 16px;
}

.cta-box h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #000000;
}

.cta-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 200;
    color: #000000;
}

.cta-box .btn-primary,
.cta-box .btn-secondary {
    max-width: 100%;
}

.results-message {
    font-size: 1rem;
    line-height: 1.6;
    margin: 32px 0;
    padding: 24px;
    background-color: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    color: #000000;
}

.confirmation-card {
    text-align: left;
    max-width: 700px;
    margin: 40px auto;
}

.confirmation-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #000000;
    line-height: 1.3;
}

.confirmation-message {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    color: #000000;
}

.spam-notice {
    margin: 32px 0;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.spam-notice p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    color: #000000;
}

.next-steps {
    margin: 48px 0 32px 0;
}

.next-steps h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #000000;
}

.next-step-item {
    margin-bottom: 24px;
    padding: 24px;
    background-color: var(--bg-color);
    border-radius: 12px;
}

.next-step-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000000;
}

.next-step-item p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 200;
    color: #000000;
}

.next-step-item button {
    margin-top: 8px;
}

.confirmation-footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line-color);
    text-align: center;
}

.confirmation-footer p {
    font-size: 0.875rem;
    font-weight: 200;
    color: var(--text-color);
    margin: 0;
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 32px;
}

.email-disclaimer {
    font-size: 0.75rem;
    font-weight: 200;
    color: var(--text-color);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 64, 85, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: #000000;
}

.modal-content p {
    margin-bottom: 24px;
    opacity: 0.8;
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#email-input, #name-input {
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--line-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.2s;
}

#email-input:focus, #name-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.consent-wrapper {
    margin: 16px 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 200;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.consent-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.consent-label a:hover {
    color: #e6863d;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    font-size: 1rem;
    font-weight: 400;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast.success {
    background-color: #2ecc71;
}

.toast.error {
    background-color: #e74c3c;
}

@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    .card {
        padding: 24px;
    }

    #intro-title {
        font-size: 1.875rem;
    }

    #intro-description {
        font-size: 1rem;
    }

    .question-card {
        height: 600px;
    }

    .question-text {
        font-size: 1.125rem;
        min-height: 100px;
        margin-bottom: 16px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .btn-primary, .btn-secondary {
        font-size: 1rem;
        padding: 14px 24px;
    }

    #score-number {
        font-size: 2.5rem;
    }

    .score-label {
        font-size: 1.25rem;
    }

    .gauge-container {
        width: 100%;
        max-width: 320px;
        margin: 24px auto 32px auto;
    }

    #gauge-canvas {
        width: 100%;
        max-width: 320px;
    }

    .tier-badge {
        margin: 48px 0 24px 0;
    }
}

@media (max-width: 480px) {
    #intro-title {
        font-size: 1.5rem;
    }

    .question-card {
        height: 620px;
    }

    .question-text {
        font-size: 1rem;
        min-height: 110px;
        margin-bottom: 16px;
    }

    #results-title {
        font-size: 1.5rem;
    }
}
