/* ==========================================================================
   BOSFL Signup Form — bosfl-signup.css
   Mobile-first · BEM · CSS custom properties
   ========================================================================== */

.bosfl-signup {
    font-family: var(--bcrm-font, 'Roboto', system-ui, sans-serif);
    background: var(--bcrm-surface, #ffffff);
    border-radius: var(--bcrm-radius, 10px);
    box-shadow: var(--bcrm-shadow, 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.07));
    padding: 40px;
    max-width: 640px;
    margin: 0 auto;
    color: var(--bcrm-text, #1A1A1A);
    line-height: 1.6;
}

.bosfl-signup__title {
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}

.bosfl-signup__subtitle {
    font-size: 0.9em;
    color: var(--bcrm-text-3, #6B6A72);
    margin: 0 0 28px;
}

/* --- Fields --- */
.bosfl-signup__row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.bosfl-signup__field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bosfl-signup__field--full {
    margin-bottom: 20px;
}

.bosfl-signup__label {
    font-size: 0.88em;
    font-weight: 500;
    color: var(--bcrm-text-2, #4C4C4C);
    margin-bottom: 6px;
}

.bosfl-signup__label .required {
    color: var(--bcrm-red, #F34230);
    margin-left: 2px;
}

.bosfl-signup__input {
    font-family: inherit !important;
    font-size: 0.95em !important;
    padding: 8px 10px !important;
    border: 1px solid var(--bcrm-border-strong, #c4c2cc) !important;
    border-radius: var(--bcrm-radius-sm, 6px) !important;
    background: var(--bcrm-surface, #ffffff) !important;
    color: var(--bcrm-text, #1A1A1A) !important;
    transition: border-color 0.17s ease, box-shadow 0.17s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.bosfl-signup__input:focus {
    border-color: var(--bcrm-accent, #3A53A4);
    box-shadow: 0 0 0 3px rgba(58, 83, 164, 0.12);
}

.bosfl-signup__input::placeholder {
    color: var(--bcrm-text-3, #6B6A72);
}

.bosfl-signup__input--error {
    border-color: var(--bcrm-red, #F34230);
}

.bosfl-signup__input--error:focus {
    box-shadow: 0 0 0 3px rgba(243, 66, 48, 0.12);
}

.bosfl-signup__error {
    font-size: 0.8em;
    color: var(--bcrm-red, #F34230);
    margin-top: 4px;
    display: none;
}

.bosfl-signup__error--visible {
    display: block;
}

.bosfl-signup__hint {
    font-size: 0.8em;
    color: var(--bcrm-text-3, #6B6A72);
    margin-top: 4px;
}

/* --- SMS section --- */
.bosfl-signup__sms-section {
    background: var(--bcrm-accent-light, #edf0f8);
    border: 1px solid var(--bcrm-border, #DDDCE2);
    border-radius: var(--bcrm-radius-sm, 6px);
    padding: 16px 18px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

.bosfl-signup__sms-section--hidden {
    display: none;
}

.bosfl-signup__checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bosfl-signup__checkbox-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bcrm-accent, #3A53A4);
    cursor: pointer;
    flex-shrink: 0;
}

.bosfl-signup__checkbox-label {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--bcrm-text, #1A1A1A);
    cursor: pointer;
}

.bosfl-signup__tcpa {
    font-size: 0.78em;
    color: var(--bcrm-text-3, #6B6A72);
    line-height: 1.5;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--bcrm-border, #DDDCE2);
    display: none;
}

.bosfl-signup__tcpa--visible {
    display: block;
}

.bosfl-signup__tcpa a {
    color: var(--bcrm-accent, #3A53A4);
    text-decoration: none;
}

.bosfl-signup__tcpa a:hover {
    text-decoration: underline;
}

/* --- Preferred contact --- */
.bosfl-signup__preferred {
    margin-bottom: 20px;
    display: none;
}

.bosfl-signup__preferred--visible {
    display: block;
}

.bosfl-signup__preferred .bosfl-signup__label {
    margin-bottom: 10px;
}

.bosfl-signup__radio-group {
    display: flex;
    gap: 24px;
}

.bosfl-signup__radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.bosfl-signup__radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--bcrm-accent, #3A53A4);
    cursor: pointer;
}

.bosfl-signup__radio-option label {
    font-size: 0.9em;
    color: var(--bcrm-text, #1A1A1A);
    cursor: pointer;
}

/* --- Email consent --- */
.bosfl-signup__email-consent {
    font-size: 0.8em;
    color: var(--bcrm-text-3, #6B6A72);
    line-height: 1.5;
    margin-bottom: 24px;
    padding-top: 8px;
}

/* --- Submit --- */
.bosfl-signup__submit {
    font-family: inherit;
    width: 100%;
    padding: 13px 20px;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background: var(--bcrm-accent, #3A53A4);
    border: none;
    border-radius: var(--bcrm-radius-sm, 6px);
    cursor: pointer;
    transition: background 0.17s ease, transform 0.1s ease;
}

.bosfl-signup__submit:hover {
    background: var(--bcrm-accent-dark, #2d4293);
}

.bosfl-signup__submit:active {
    transform: scale(0.98);
}

.bosfl-signup__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Success --- */
.bosfl-signup__success {
    text-align: center;
    padding: 40px 20px;
}

.bosfl-signup__success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.bosfl-signup__success h3 {
    font-size: 1.2em;
    font-weight: 700;
    margin: 0 0 8px;
}

.bosfl-signup__success p {
    font-size: 0.95em;
    color: var(--bcrm-text-2, #4C4C4C);
    margin: 0 0 6px;
}

.bosfl-signup__success-email {
    font-weight: 600;
    color: var(--bcrm-accent, #3A53A4);
}

.bosfl-signup__success .hint {
    font-size: 0.82em;
    color: var(--bcrm-text-3, #6B6A72);
    margin-top: 12px;
}

/* --- Duplicate notices --- */
.bosfl-signup__duplicate {
    background: var(--bcrm-accent-light, #edf0f8);
    border: 1px solid var(--bcrm-accent, #3A53A4);
    border-radius: var(--bcrm-radius-sm, 6px);
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.9em;
}

.bosfl-signup__duplicate a {
    color: var(--bcrm-accent, #3A53A4);
    font-weight: 600;
    text-decoration: none;
}

.bosfl-signup__duplicate a:hover {
    text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 520px) {
    .bosfl-signup {
        padding: 28px 22px;
    }
    .bosfl-signup__row {
        flex-direction: column;
        gap: 0;
    }
    .bosfl-signup__row .bosfl-signup__field {
        margin-bottom: 20px;
    }
}
