* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 8% 90%, rgba(223, 224, 170, 0.30), transparent 22%),
        radial-gradient(circle at 92% 12%, rgba(198, 224, 241, 0.45), transparent 25%),
        #f6fafc;
    color: #10204c;
}

.page-wrap {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px;
}

.form-card {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border: 1px solid #dce4ee;
    border-radius: 22px;
    padding: 28px 28px 22px;
    box-shadow: 0 18px 45px rgba(31, 52, 91, 0.10);
}

.top-line {
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 5px;
    background: linear-gradient(
        90deg,
        #5670e5,
        #5ca896,
        #bea956
    );
    border-radius: 0 0 5px 5px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 22px;
    background: #f2f6ff;
    border: 1px solid #d7e1f4;
    color: #39715e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}

h1 {
    margin: 0;
    color: #20356f;
    font-size: 29px;
    line-height: 1.08;
    letter-spacing: -1px;
}

.intro {
    margin: 8px 0 20px;
    color: #69758d;
    font-size: 13px;
    line-height: 1.45;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 12px;
}

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

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

.field label {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #10204c;
}

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

.field input,
.field select {
    width: 100%;
    height: 43px;
    border: 1px solid #d7deea;
    border-radius: 9px;
    padding: 0 13px;
    font-size: 13px;
    color: #182230;
    background: #ffffff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder {
    color: #727b8b;
}

.field input:focus,
.field select:focus {
    border-color: #5973dc;
    box-shadow: 0 0 0 3px rgba(89, 115, 220, 0.09);
}

.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 15px;
    padding: 14px;
    background: #fbfcff;
    border: 1px solid #dce3ee;
    border-radius: 13px;
}

.consent-box input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.consent-box label {
    color: #26375f;
    font-size: 10.5px;
    line-height: 1.45;
}

.consent-box strong {
    color: #10204c;
}

.submit-btn {
    width: 100%;
    height: 49px;
    margin-top: 15px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #5972df,
        #3f59b9
    );
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(73, 94, 190, 0.20);
}

.submit-btn:hover {
    filter: brightness(1.03);
}

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

.secure-note {
    margin-top: 10px;
    text-align: center;
    font-size: 10px;
    color: #8590a2;
}

.message-box {
    display: none;
    margin-bottom: 14px;
    padding: 10px;
    border-radius: 9px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.message-box.success {
    display: block;
    color: #15803d;
    background: #ebf8ef;
    border: 1px solid #b5e0c2;
}

.message-box.error {
    display: block;
    color: #b91c1c;
    background: #fff0f0;
    border: 1px solid #efb5b5;
}

@media (max-width: 600px) {
    .page-wrap {
        padding: 10px;
    }

    .form-card {
        max-width: 100%;
        border-radius: 18px;
        padding: 24px 18px 18px;
    }

    h1 {
        font-size: 25px;
    }

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

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

    .field input,
    .field select {
        height: 45px;
        font-size: 14px;
    }
}
