:root {
    --primary-blue: #00529b;
    --primary-blue-light: #0062b8;
    --primary-green: #28a745;
    --primary-red: #dc3545;
    --bg-page: #f3f7f9;
    --bg-container: #ffffff;
    --bg-secondary: #e9ecef;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-secondary: #495057;
    --white: #ffffff;
    --shadow-container: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    background-color: var(--bg-page);
    background-image: linear-gradient(rgba(243, 247, 249, 0.92), rgba(243, 247, 249, 0.92)), 
                      url('https://upload.wikimedia.org/wikipedia/commons/a/a4/Flag_of_the_United_States.svg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text-dark);
}

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

/* Header */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

.brand {
    font-size: 1.4rem;
    color: var(--primary-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.sub-brand {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Main Container */
.lander-container {
    max-width: 550px;
    margin: 30px auto;
    padding: 35px 25px;
    background-color: var(--bg-container);
    border-radius: 10px;
    box-shadow: var(--shadow-container);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Steps */
.step {
    display: none;
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.step-headline {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.25;
    font-weight: 800;
}

.step-sub-headline {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 400;
}

/* Question Box */
.question-box {
    margin-top: 10px;
}

.question {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* ZIP Input */
.zip-input {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin: 0 auto 15px;
    display: block;
    font-weight: 700;
    color: var(--text-dark);
}

.zip-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 82, 155, 0.1);
}

.error-message {
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Buttons */
.button-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.btn {
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    border-radius: 8px;
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-btn);
    background-size: 100% 100%, 200% 200%;
    animation: moveGradient 3s linear infinite;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%, 0% 50%; }
    50% { background-position: 0% 50%, 100% 50%; }
    100% { background-position: 0% 50%, 0% 50%; }
}

.btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

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

.btn-blue {
    background-image: linear-gradient(var(--primary-blue), var(--primary-blue)), 
                      linear-gradient(to right, var(--primary-blue), var(--primary-red));
    color: var(--white);
}

.btn-green {
    background-image: linear-gradient(var(--primary-green), var(--primary-green)), 
                      linear-gradient(to right, var(--primary-blue), var(--primary-red));
    color: var(--white);
}

.btn-red {
    background-image: linear-gradient(var(--bg-secondary), var(--bg-secondary)), 
                      linear-gradient(to right, var(--primary-blue), var(--primary-red));
    color: var(--text-secondary);
}

.btn-call {
    background-image: linear-gradient(var(--primary-green), var(--primary-green)), 
                      linear-gradient(to right, var(--primary-blue), var(--primary-red));
    color: var(--white);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 22px;
    border-radius: 12px;
    animation: moveGradient 3s linear infinite, pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.btn-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-subtext {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
    margin-top: 4px;
}

/* Evaluation Container */
.evaluation-container {
    text-align: left;
    margin-top: 15px;
}

.progress-bar-container {
    width: 100%;
    height: 18px;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--primary-green);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-list {
    list-style: none;
}

.status-item {
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 600;
}

.status-item::before {
    content: "✓";
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 0.9rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.hidden {
    display: none;
}

/* Result Box */
.result-box {
    margin-top: 10px;
}

.timer-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.timer {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.call-instruction {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background-color: #f8f9fa;
    color: var(--text-muted);
    padding: 50px 0;
    text-align: center;
    font-size: 0.82rem;
    border-top: 1px solid #dee2e6;
}

.main-footer .container {
    max-width: 850px;
}

.disclaimer {
    margin-bottom: 25px;
    line-height: 1.6;
}

.links {
    margin-bottom: 15px;
}

.links a {
    color: var(--primary-blue);
    text-decoration: none;
    margin: 0 12px;
    font-weight: 600;
}

.links a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 25px;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 480px) {
    .lander-container {
        margin: 20px 15px;
        padding: 25px 20px;
    }

    .step-headline {
        font-size: 1.55rem;
    }

    .button-grid {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 16px 20px;
    }
}
