/* ============================================================
   reg-form module — scoped with .rf-* prefix
   All styles are self-contained, no dependency on template CSS
   ============================================================ */

.rf-box {
    width: 100%;
    max-width: 444px;
    border-radius: 16px;
    padding: 32px 28px 24px;
    box-sizing: border-box;
    background: var(--rf-box-bg, #1c1f3b);
}

.rf-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: var(--rf-title-color, #ffffff);
    margin: 0 0 20px;
    line-height: 1.3;
}

.rf-subtitle {
    font-size: 16px;
    text-align: center;
    color: var(--rf-title-color, #ffffff);
    opacity: 0.75;
    margin: -12px 0 16px;
    line-height: 1.4;
    font-weight: 500;
}

/* Reset legacy template wrappers when rf-box is inside them */
#req-form-section:has(.rf-box),
#hero-form:has(.rf-box) {
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

/* iti (intl-tel-input) full width inside box */
.rf-box .iti--allow-dropdown {
    width: 100%;
}

/* Override late _beacon defaults so the form matches the site UI */
.rf-box form.wpcf7-101 {
    width: 100%;
    margin: 0;
}

.rf-box form.wpcf7-101 > div:first-of-type {
    max-width: 100% !important;
    margin: 0 !important;
    gap: 14px !important;
}

.rf-box form.wpcf7-101 > div:first-of-type > div {
    width: 100%;
}

.rf-box form.wpcf7-101 > div:first-of-type > div > input:not([type="submit"]):not([type="hidden"]) {
    width: 100% !important;
    height: 54px !important;
    padding: 0 16px !important;
    border: 1px solid #d7dbe7 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    color: #1c1f3b !important;
    font-family: inherit !important;
}

.rf-box form.wpcf7-101 > div:first-of-type > div .iti input {
    width: 100% !important;
    height: 54px !important;
    border: 1px solid #d7dbe7 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    padding-right: 16px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    color: #1c1f3b !important;
    font-family: inherit !important;
}

.rf-box form.wpcf7-101 > div:first-of-type > div > input:not([type="submit"]):not([type="hidden"])::placeholder,
.rf-box form.wpcf7-101 > div:first-of-type > div .iti input::placeholder {
    color: #7d869a !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

.rf-box form.wpcf7-101 > div:first-of-type > div .iti {
    width: 100% !important;
}

.rf-box .iti--show-selected-dial-code .iti__selected-country,
.rf-box .iti--allow-dropdown .iti__selected-country {
    padding: 0 12px !important;
    border-radius: 10px 0 0 10px !important;
}

.rf-box .iti__selected-country-primary {
    height: 54px !important;
}

.rf-box .iti__country-container {
    border-right: 1px solid #d7dbe7 !important;
}

.rf-box form.wpcf7-101 > div:first-of-type > div > input[type="submit"] {
    width: 100% !important;
    height: 56px !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0 18px !important;
    background: var(--rf-btn-bg, #2f51c9) !important;
    color: var(--rf-btn-text, #ffffff) !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    font-family: inherit !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer;
}

.rf-box form.wpcf7-101 > div:first-of-type > div > input[type="submit"]:hover {
    filter: brightness(0.96);
}

/* Privacy text */
.rf-privacy {
    font-size: 11px !important;
    color: var(--rf-title-color, #9EA2B7) !important;
    line-height: 18px;
    margin-top: 16px;
    margin-bottom: 0;
    opacity: 0.5;
}

.rf-privacy a {
    color: var(--rf-title-color, #9EA2B7) !important;
    text-decoration: underline;
}

.iti__selected-dial-code {
    color: #000 !important;
}

@media (max-width: 767px) {
    .rf-box {
        max-width: 100%;
        padding: 24px 18px 20px;
    }

    .rf-box form.wpcf7-101 > div:first-of-type {
        gap: 12px !important;
    }

    .rf-box form.wpcf7-101 > div:first-of-type > div > input:not([type="submit"]):not([type="hidden"]),
    .rf-box form.wpcf7-101 > div:first-of-type > div .iti input,
    .rf-box .iti__selected-country-primary {
        height: 50px !important;
    }

    .rf-box form.wpcf7-101 > div:first-of-type > div > input[type="submit"] {
        height: 52px !important;
    }
}
