* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --navy: #14206B;
    --orange: #F26522;
    --gold: #F5C518;
    --cream: #F7F2E8;
    --paper: #FFFFFF;
    --ink: #0B1140;
}

body {
    background-color: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    padding: 0 20px 60px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background header in Navy */
.bg-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 350px;
    background-color: var(--navy);
    z-index: -1;
    border-bottom: 5px solid var(--gold);
}

.form-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 30px;
    background: var(--navy);
    color: var(--paper);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(20, 32, 107, 0.2);
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--paper);
}

.form-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.6;
}

.section-card {
    background: var(--paper);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(11, 17, 64, 0.05);
    border-top: 4px solid var(--orange);
    transition: transform 0.3s ease;
}

.section-card:hover {
    transform: translateY(-2px);
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    border-bottom: 2px solid var(--cream);
    padding-bottom: 16px;
}

.section-desc {
    color: #4b5563;
    font-size: 15px;
    margin-bottom: 30px;
    margin-top: 16px;
}

/* Text Inputs */
.input-group {
    position: relative;
    margin-bottom: 24px;
    margin-top: 24px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--paper);
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: var(--ink);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.1);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #6b7280;
    pointer-events: none;
    transition: 0.2s ease all;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 13px;
    font-weight: 600;
    background: var(--paper);
    padding: 0 6px;
    color: var(--orange);
    border-radius: 4px;
}

/* Questions */
.question-item {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--cream);
    border-radius: 12px;
    border-left: 4px solid var(--navy);
}

.question-item p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--ink);
}

/* Radio Scale */
.scale-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.scale-text {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    flex: 1;
    text-align: center;
}

.scale-text:first-child { text-align: right; }
.scale-text:last-child { text-align: left; }

.radio-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.radio-group label {
    cursor: pointer;
    position: relative;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid #d1d5db;
    color: var(--ink);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.radio-group label:hover .radio-btn {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(242, 101, 34, 0.05);
}

.radio-group input[type="radio"]:checked + .radio-btn {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--paper);
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.3);
    transform: scale(1.1);
}

/* Buttons */
button {
    width: 100%;
    padding: 18px;
    background: var(--orange);
    color: var(--paper);
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(242, 101, 34, 0.3);
}

button:hover {
    background: #e05512;
    box-shadow: 0 6px 20px rgba(242, 101, 34, 0.4);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

.btn-text.hidden { display: none; }
.loader.active { display: block; }

#successMessage, #errorMessage {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

#successMessage {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

#errorMessage {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.hidden { display: none !important; }

/* Responsive adjustments */
@media (max-width: 600px) {
    .scale-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .scale-text {
        text-align: center !important;
        font-weight: 600;
    }
    .radio-group {
        justify-content: space-between;
    }
    .radio-btn {
        width: 50px;
        height: 50px;
    }
}
