/* ── BrokerPage Solutions Form — Styles ──────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

.bpsf-wrapper {
    font-family: 'DM Sans', sans-serif;
    width: 100%;
}

.bpsf-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: 100%;
}

/* ── Alert ───────────────────────────────────────────────────────────────── */
.bpsf-alert {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}
.bpsf-alert.bpsf-success { background:#edfaf3; color:#1a7a4a; border:1px solid #a3e6c5; }
.bpsf-alert.bpsf-error   { background:#fff2f2; color:#c0392b; border:1px solid #f5c6c6; }

/* ── Form layout ─────────────────────────────────────────────────────────── */
#bpsf-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Two-column row ──────────────────────────────────────────────────────── */
.bpsf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */
.bpsf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bpsf-field label {
    font-size: 15px;
    font-weight: 600;
    color: currentColor;
}

.bpsf-req      { color: #e74c3c; margin-left: 2px; }
.bpsf-optional { font-weight: 400; opacity: 0.7; font-size: 15px; }

.bpsf-field input,
.bpsf-field textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: inherit;
    background: #000000;
    border: 1.5px solid #1d1b16;
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    resize: vertical;
}

.bpsf-field input::placeholder,
.bpsf-field textarea::placeholder {
    color: rgba(255,255,255,0.55);
    font-size: 15px;
}

.bpsf-field input:focus,
.bpsf-field textarea:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.8);
}

/* ── Toggle Buttons ──────────────────────────────────────────────────────── */
.bpsf-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bpsf-toggle {
    padding: 9px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: #031d51;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    white-space: nowrap;
}

.bpsf-toggle:hover { color: #074fda; }
.bpsf-toggle.active { color: #074fda; }

/* ── Privacy text ────────────────────────────────────────────────────────── */
.bpsf-privacy {
    font-size: 15px;
    opacity: 0.75;
    margin: 0;
    line-height: 1.6;
}

.bpsf-privacy a {
    color: #4a90e2;
    text-decoration: underline;
}

/* ── Submit Button ───────────────────────────────────────────────────────── */
.bpsf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #0d47c7;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    align-self: flex-start;
}

.bpsf-btn:hover:not(:disabled) {
    background: #063FB1;
    transform: translateY(-1px);
}

.bpsf-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.bpsf-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: bpsf-spin 0.7s linear infinite;
}
.bpsf-btn.loading .bpsf-spinner  { display: block; }
.bpsf-btn.loading .bpsf-btn-text { opacity: 0.7; }
@keyframes bpsf-spin { to { transform: rotate(360deg); } }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .bpsf-row { grid-template-columns: 1fr; }
    .bpsf-toggle-group { gap: 8px; }
    .bpsf-toggle { font-size: 13px; padding: 8px 14px; }
}
