* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #182230;
}

.topbar {
    height: 82px;
    background: #ffffff;
    border-bottom: 1px solid #e7eaf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
}

.brand {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.home-link {
    color: #182230;
    text-decoration: none;
    font-size: 16px;
}

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 55px 24px 80px;
}

.form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 44px;
    box-shadow: 0 12px 40px rgba(26, 39, 64, 0.08);
}

.heading-wrap {
    text-align: center;
    margin-bottom: 38px;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #456ff6;
    margin-bottom: 8px;
}

.heading-wrap h1 {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
}

.heading-wrap p {
    color: #6f7785;
    margin-top: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

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

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

.field label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.field input,
.field select {
    width: 100%;
    height: 54px;
    border: 1px solid #d7dce5;
    border-radius: 10px;
    padding: 0 15px;
    font-size: 16px;
    background: #fff;
    outline: none;
    transition: 0.2s ease;
}

.field input:focus,
.field select:focus {
    border-color: #4b73f7;
    box-shadow: 0 0 0 3px rgba(75,115,247,0.10);
}

.questions {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.question-card {
    border: 1px solid #e0e4eb;
    border-radius: 12px;
    padding: 20px;
    background: #fafbfe;
}

.question-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.45;
}

.radio-group {
    display: flex;
    gap: 12px;
}

.radio-group label {
    flex: 1;
    cursor: pointer;
}

.radio-group input {
    display: none;
}

.radio-group span {
    display: block;
    text-align: center;
    border: 1px solid #cfd5df;
    padding: 11px;
    border-radius: 9px;
    background: #fff;
    transition: 0.2s ease;
}

.radio-group input:checked + span {
    background: #4b73f7;
    color: #fff;
    border-color: #4b73f7;
}

.submit-btn {
    width: 100%;
    margin-top: 30px;
    height: 56px;
    border: 0;
    border-radius: 10px;
    background: #4b73f7;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.submit-btn:hover {
    opacity: 0.95;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message-box {
    display: none;
    padding: 14px 16px;
    border-radius: 9px;
    margin-bottom: 20px;
    font-size: 14px;
}

.message-box.success {
    display: block;
    background: #e9f8ef;
    border: 1px solid #b6e5c7;
    color: #1d6e38;
}

.message-box.error {
    display: block;
    background: #fff0f0;
    border: 1px solid #f0baba;
    color: #9b2c2c;
}

@media (max-width: 768px) {
    .topbar {
        padding: 0 20px;
    }

    .page-wrap {
        padding: 28px 14px 50px;
    }

    .form-card {
        padding: 24px 18px;
    }

    .form-grid,
    .questions {
        grid-template-columns: 1fr;
    }

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

    .heading-wrap h1 {
        font-size: 30px;
    }
}
