.vr-form-wrap {
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 28px 28px;
    border: 1px solid #d9e3ef;
    border-top: 5px solid #2f3792;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 42, 74, 0.08);
    overflow: hidden;
}

.vr-form-heading {
    box-sizing: border-box;
    margin: 0 -28px 24px;
    padding: 26px 28px 22px;
    border-bottom: 1px solid #e3ebf4;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    text-align: center;
}

.vr-brand-header {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    max-height: 86px;
    object-fit: contain;
    margin: 0 auto 16px;
}

.vr-brand-kicker {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e8f7fd;
    color: #2f3792;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: normal;
}

.vr-form-heading h2 {
    margin: 12px 0 8px;
    color: #2f3792;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.vr-form-heading p {
    max-width: 680px;
    margin: 0 auto;
    color: #52677c;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

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

.vr-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

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

.vr-form label,
.vr-form legend {
    min-width: 0;
    color: #08213b;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.vr-required {
    color: #b3261e;
}

.vr-form input,
.vr-form select,
.vr-form textarea {
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    padding: 13px 14px;
    border: 1px solid #c8d8e8;
    border-radius: 8px;
    background: #fbfdff;
    color: #10263e;
    font: inherit;
    line-height: 1.35;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
    min-width: 0;
}

.vr-form input[type="radio"],
.vr-form input[type="checkbox"] {
    appearance: auto;
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #2f3792;
}

.vr-form select {
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, #24435f 50%),
        linear-gradient(135deg, #24435f 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 15px) 50%;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

.vr-form textarea {
    min-height: 150px;
    resize: vertical;
}

.vr-form .vr-availability-input {
    min-height: 96px;
}

.vr-form input::placeholder,
.vr-form textarea::placeholder {
    color: #68798b;
    opacity: 1;
}

.vr-form input:focus,
.vr-form select:focus,
.vr-form textarea:focus {
    outline: 0;
    border-color: #11aee3;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(17, 174, 227, 0.16);
}

.vr-choice-field {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #dbe6f0;
    border-radius: 8px;
    background: #f8fbfe;
}

.vr-choice-field legend {
    float: left;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
}

.vr-choice-field legend + * {
    clear: both;
}

.vr-choice-group {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.vr-choice-group + .vr-choice-group {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dbe6f0;
}

.vr-choice-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2f3792;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.vr-choice-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #dbe6f0;
}

.vr-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    min-width: 0;
}

.vr-choice-grid-compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vr-choice {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid #d2dfeb;
    border-radius: 8px;
    background: #fff;
    color: #10263e;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.vr-choice:hover,
.vr-choice:focus-within {
    border-color: #11aee3;
    background: #fafdff;
    box-shadow: 0 0 0 3px rgba(17, 174, 227, 0.12);
}

.vr-choice span {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.vr-form button {
    max-width: 100%;
    justify-self: start;
    grid-column: 1 / -1;
    min-height: 54px;
    padding: 13px 22px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #333a99 0%, #252b7f 100%);
    box-shadow: 0 12px 26px rgba(47, 55, 146, 0.24);
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    white-space: normal;
    overflow-wrap: anywhere;
}

.vr-form button:hover,
.vr-form button:focus {
    background: linear-gradient(180deg, #28308d 0%, #1f246c 100%);
    box-shadow: 0 14px 30px rgba(47, 55, 146, 0.28);
    transform: translateY(-1px);
}

.vr-form button:focus {
    outline: 3px solid rgba(17, 174, 227, 0.28);
    outline-offset: 3px;
}

.vr-hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vr-notice {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-left: 4px solid;
    border-radius: 6px;
    background: #f7f9fb;
    color: #10263e;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.vr-notice-success {
    border-color: #11aee3;
}

.vr-notice-error {
    border-color: #b3261e;
}

@media (max-width: 820px) {
    .vr-form-wrap {
        padding: 0 20px 20px;
        border-radius: 7px;
    }

    .vr-form-heading {
        margin: 0 -20px 20px;
        padding: 22px 20px 20px;
    }

    .vr-brand-header {
        max-height: 72px;
    }

    .vr-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vr-choice-grid,
    .vr-choice-grid-compact {
        grid-template-columns: 1fr;
    }

    .vr-form button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .vr-form-wrap {
        padding: 0 14px 16px;
        border-radius: 6px;
    }

    .vr-form-heading {
        margin: 0 -14px 18px;
        padding: 18px 14px 18px;
    }

    .vr-brand-header {
        max-height: 58px;
    }

    .vr-brand-kicker {
        font-size: 0.7rem;
        letter-spacing: 0.05em;
    }

    .vr-form-heading h2 {
        font-size: 1.45rem;
    }

    .vr-choice-field {
        padding: 14px;
    }

    .vr-choice {
        gap: 9px;
        padding: 10px;
    }

    .vr-form input,
    .vr-form select,
    .vr-form textarea {
        padding: 12px;
    }
}
