* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: #f2f4f7;
    color: #172033;
}

.hero {
    background:
        linear-gradient(
            135deg,
            #121827,
            #25324b
        );
    padding: 45px 20px 95px;
}

.hero-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
    color: white;
}

.brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #172033;
    font-weight: 900;
    font-size: 23px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.hero-label {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
    opacity: .7;
}

.hero h1 {
    margin: 6px 0 8px;
    font-size: 32px;
}

.hero p {
    margin: 0;
    opacity: .76;
    line-height: 1.6;
}

.page {
    max-width: 980px;
    margin: -55px auto 60px;
    padding: 0 18px;
}

.form-shell {
    background: white;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(25,35,55,.12);
    overflow: hidden;
}

.form-section {
    padding: 32px 36px;
    border-bottom: 1px solid #edf0f4;
}

.section-heading {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
}

.section-number {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #172033;
    color: white;
    font-weight: 800;
    font-size: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: 19px;
}

.section-heading p {
    margin: 4px 0 0;
    color: #7b8494;
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.field label span {
    font-weight: 400;
    color: #8b94a4;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 9px;
    padding: 12px 13px;
    font-size: 14px;
    color: #172033;
    background: white;
    outline: none;
    transition:
        border .2s ease,
        box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #7e8da8;
    box-shadow: 0 0 0 3px rgba(30,45,70,.08);
}

input[readonly] {
    background: #f8f9fb;
}

.status-text {
    margin-top: 7px;
    min-height: 16px;
    font-size: 12px;
}

.status-text.checking {
    color: #7b8494;
}

.status-text.success {
    color: #178548;
    font-weight: 700;
}

.status-text.error {
    color: #c23434;
}

.question-list {
    margin-top: 28px;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    overflow: hidden;
}

.question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    gap: 20px;
    border-bottom: 1px solid #edf0f4;
}

.question-row:last-child {
    border-bottom: 0;
}

.question-row > span {
    font-size: 14px;
    font-weight: 650;
}

.choice-group {
    display: flex;
    gap: 8px;
}

.choice-group label {
    cursor: pointer;
}

.choice-group input {
    display: none;
}

.choice-group span {
    display: block;
    min-width: 60px;
    padding: 8px 14px;
    text-align: center;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition: .15s ease;
}

.choice-group input:checked + span {
    background: #172033;
    color: white;
    border-color: #172033;
}

.comments-field {
    margin-top: 24px;
}

.message-box {
    display: none;
}

.submit-button {
    margin: 30px 36px 12px;
    width: calc(100% - 72px);
    min-height: 52px;
    border: none;
    border-radius: 10px;
    background: #172033;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.submit-button:hover {
    opacity: .94;
}

.submit-button strong {
    font-size: 20px;
}

.security-note {
    text-align: center;
    padding: 5px 20px 28px;
    font-size: 12px;
    color: #8992a1;
}

.overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(11,18,30,.72);
    padding: 20px;
    z-index: 1000;
}

.overlay.active {
    display: flex;
}

.result-card {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 18px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.result-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #edf0f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
}

.result-card.success .result-icon {
    background: #e4f6eb;
    color: #178548;
}

.result-card.error .result-icon {
    background: #fdeaea;
    color: #c23434;
}

.result-card h2 {
    margin: 0 0 10px;
}

.result-card p {
    color: #6e7787;
    line-height: 1.5;
}

.spinner {
    width: 34px;
    height: 34px;
    margin: 22px auto 5px;
    border: 4px solid #e5e9ef;
    border-top-color: #172033;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

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

.result-meta {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.8;
}

.close-result {
    margin-top: 20px;
    border: 0;
    background: #172033;
    color: white;
    min-width: 120px;
    padding: 11px 20px;
    border-radius: 9px;
    font-weight: 800;
    cursor: pointer;
    justify-content: center;
}

@media (max-width: 700px) {

    .hero {
        padding-top: 32px;
    }

    .hero-inner {
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 25px;
    }

    .brand-mark {
        width: 55px;
        height: 55px;
    }

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

    .field.full {
        grid-column: auto;
    }

    .form-section {
        padding: 26px 20px;
    }

    .question-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .choice-group {
        width: 100%;
    }

    .choice-group label {
        flex: 1;
    }

    .choice-group span {
        width: 100%;
    }

    .submit-button {
        margin-left: 20px;
        margin-right: 20px;
        width: calc(100% - 40px);
    }
}
