.vfu-wrap,
.vfu-wrap * {
    box-sizing: border-box;
}

.vfu-wrap {
    --vfu-primary: #237ff5;
    --vfu-primary-hover: #1268d4;
    --vfu-text: #5f6368;
    --vfu-border: #d9dde4;
    --vfu-bg: #fff;
    width: 100%;
    max-width: 100%;
    color: var(--vfu-text);
}

.vfu-form {
    display: block;
    width: 100%;
    margin: 0;
}

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

.vfu-field,
.vfu-consent,
.vfu-quiz,
.vfu-submit,
.vfu-required {
    float: none !important;
    clear: both !important;
    position: relative !important;
}

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

.vfu-field label,
.vfu-quiz label {
    display: block;
    margin: 0 0 7px;
    color: var(--vfu-text);
    font: inherit;
    line-height: 1.35;
}

.vfu-wrap input[type="text"],
.vfu-wrap input[type="email"],
.vfu-wrap input[type="tel"],
.vfu-wrap input[type="date"],
.vfu-wrap input[type="number"],
.vfu-wrap select,
.vfu-wrap textarea {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 1px solid var(--vfu-border) !important;
    border-radius: 3px !important;
    outline: 0;
    background: var(--vfu-bg) !important;
    color: #333 !important;
    font: inherit !important;
    line-height: 1.4 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06) inset !important;
    appearance: auto;
}

.vfu-wrap textarea {
    height: 140px !important;
    min-height: 140px !important;
    resize: vertical;
}

.vfu-wrap input:focus,
.vfu-wrap select:focus,
.vfu-wrap textarea:focus {
    border-color: var(--vfu-primary) !important;
    box-shadow: 0 0 0 3px rgba(35, 127, 245, .14) !important;
}

.vfu-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 20px 0 !important;
    cursor: pointer;
}

.vfu-consent input[type="checkbox"] {
    flex: 0 0 19px;
    width: 19px !important;
    height: 19px !important;
    margin: 2px 0 0 !important;
}

.vfu-consent a {
    color: inherit;
    text-decoration: underline;
}

.vfu-quiz {
    width: 190px;
    max-width: 100%;
    margin: 0 0 22px;
}

.vfu-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 14px 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--vfu-primary) !important;
    color: #fff !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    box-shadow: 0 8px 20px rgba(35, 127, 245, .22) !important;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.vfu-submit:hover,
.vfu-submit:focus {
    background: var(--vfu-primary-hover) !important;
    transform: translateY(-1px);
}

.vfu-required {
    margin: 12px 0 0 !important;
    font-size: 13px;
    opacity: .8;
}

.vfu-notice {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 4px;
}

.vfu-notice--success {
    border-color: #78b98a;
    background: #edf8f0;
    color: #1e6131;
}

.vfu-notice--error {
    border-color: #dc8b8b;
    background: #fff1f1;
    color: #852424;
}

.vfu-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 700px) {
    .vfu-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .vfu-submit {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vfu-submit {
        transition: none;
    }
}
