/* ============================================================
   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%;
}

/* Privacy text */
.rf-privacy {
    font-size: 11px;
    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;
    }
}
