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

:root {
    --primary: #1e3a5f;
    --secondary: #2c5282;
    --accent: #3182ce;
    --light: #f7fafc;
    --border: #e2e8f0;
    --text: #2d3748;
    --success: #48bb78;
    --warning: #ed8936;
    --danger: #f56565;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* HEADER */
.header {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

.logo-image {
    width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 25px;
}

.header h1 {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
}

.header p {
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 25px;
}

.tagline {
    font-style: italic;
    color: var(--accent);
    font-size: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
}

/* PROGRESS BAR */
.progress-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary);
}

.progress-bar {
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

/* BLOCKS */
.block {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.block-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
}

.block-icon {
    font-size: 40px;
    margin-right: 20px;
}

.block-title {
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
}

.block-description {
    color: var(--secondary);
    margin-top: 10px;
    font-size: 16px;
}

/* QUESTIONS */
.question {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--light);
    border-radius: 12px;
    border-left: 5px solid var(--accent);
    transition: all 0.3s;
}

.question:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.question-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 15px;
}

.question-text {
    flex: 1;
    font-weight: 600;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.4;
}

.help-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.help-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(49, 130, 206, 0.3);
}

.help-content {
    display: none;
    margin-top: 20px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--border);
    animation: slideDown 0.3s ease;
}

.help-content.active {
    display: block;
}

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

.help-section {
    margin-bottom: 20px;
}

.help-section:last-child {
    margin-bottom: 0;
}

.help-section-title {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.help-section-title::before {
    content: "▸";
    margin-right: 10px;
    color: var(--accent);
    font-size: 20px;
}

.help-text {
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    padding-left: 30px;
}

.warning-box {
    background: #fff5f5;
    border-left: 4px solid var(--danger);
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
}

.warning-text {
    color: #c53030;
    font-size: 14px;
    font-weight: 600;
}

/* OPTIONS */
.options {
    margin-top: 25px;
}

.option {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 18px;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.option:hover {
    background: #edf2f7;
    border-color: var(--accent);
    transform: translateX(5px);
}

.option input[type="radio"] {
    margin-right: 15px;
    margin-top: 5px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.option-label {
    flex: 1;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}

.option-score {
    background: var(--primary);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 15px;
    white-space: nowrap;
}

/* SUBMIT BUTTON */
.submit-container {
    text-align: center;
    margin: 50px 0;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    padding: 25px 80px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.3);
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(30, 58, 95, 0.4);
}

.submit-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* CONTACT FORM */
.contact-section {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.contact-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--secondary);
    font-size: 14px;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--secondary);
    font-size: 14px;
    margin-top: 50px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

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

.phone-reveal-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.phone-reveal-btn:hover {
    color: var(--secondary);
}

/* ALERTS */
.alert {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.alert.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background: #fed7d7;
    border: 2px solid var(--danger);
    color: #c53030;
}

.alert-success {
    background: #c6f6d5;
    border: 2px solid var(--success);
    color: #276749;
}

/* LOADING / ERROR STATES FOR DYNAMIC CONTENT */
.loading-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    color: var(--secondary);
    font-size: 18px;
}

.load-error-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff5f5;
    border: 2px solid var(--danger);
    border-radius: 15px;
    color: #c53030;
    font-size: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .header, .block {
        padding: 25px 20px;
    }

    .header h1 {
        font-size: 28px;
    }

    .block-title {
        font-size: 22px;
    }

    .question-header {
        flex-direction: column;
    }

    .question-number {
        margin-bottom: 10px;
    }

    .help-btn {
        align-self: flex-start;
        margin-top: 10px;
    }

    .option {
        flex-direction: column;
    }

    .option-score {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-start;
    }

    .submit-btn {
        padding: 20px 50px;
        font-size: 18px;
    }
}
