/* ============================================================
   Upgrade — shared form kit (provider/profile/auth forms).
   Loaded after theme-colors.css. Scoped under .ufm.
   Reuses brand purple tokens. Bootstrap 3 base.
   ============================================================ */

.ufm { max-width: 640px; margin: 0 auto; padding: 40px 15px 72px; }
@media (min-width: 768px) { .ufm { padding: 56px 24px 88px; } }
.ufm-wide { max-width: 760px; }

.ufm-head { margin-bottom: 24px; }
.ufm-head h1 { margin: 0 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; color: #1f1733; line-height: 1.15; }
.ufm-head-sub { margin: 0; color: #7a7290; font-size: 15px; line-height: 1.5; }

.ufm-card {
    background: #fff; border: 1px solid #ece5f6; border-radius: 16px;
    box-shadow: 0 4px 24px rgba(123, 94, 167, 0.08);
    padding: 26px 26px 28px; margin-bottom: 18px;
}
@media (max-width: 576px) { .ufm-card { padding: 20px 16px 24px; border-radius: 12px; } }

.ufm-section + .ufm-section { margin-top: 26px; }
.ufm-section-title {
    font-size: 16px; font-weight: 700; color: #2a2042;
    margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid #f1ecf8;
    display: flex; align-items: center; gap: 8px;
}
.ufm-section-title svg { width: 18px; height: 18px; color: #7b5ea7; flex-shrink: 0; }

/* Bootstrap field internals, restyled within the form scope */
.ufm .form-group { margin-bottom: 18px; }
.ufm .control-label { font-weight: 600; font-size: 13.5px; color: #4a4360; margin-bottom: 6px; padding: 0; }
.ufm .form-control {
    height: auto; min-height: 44px; padding: 10px 14px;
    border: 1px solid #ddd2ef; border-radius: 10px; box-shadow: none;
    font-size: 15px; color: #2a2042;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ufm .form-control:focus { border-color: var(--site-primary, #7b5ea7); box-shadow: 0 0 0 3px rgba(123, 94, 167, 0.14); }
.ufm select.form-control { cursor: pointer; }
.ufm textarea.form-control { min-height: 96px; resize: vertical; }
.ufm .help-block { font-size: 13px; color: #8a809f; margin-top: 6px; margin-bottom: 0; }
.ufm .has-error .form-control { border-color: #d9534f; }
.ufm .has-error .help-block { color: #d9534f; }

/* Prefill hint shown under autofilled fields */
.ufm-prefill-hint { font-size: 12.5px; color: #7b5ea7; margin: -10px 0 16px; display: inline-flex; align-items: center; gap: 5px; }
.ufm-prefill-hint svg { width: 14px; height: 14px; }

.ufm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 576px) { .ufm-row2 { grid-template-columns: 1fr; } }

.ufm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.ufm .btn { border-radius: 10px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 22px; }
.ufm .btn-sm, .ufm .btn-xs { min-height: 0; padding: 6px 14px; }

.ufm-note {
    display: flex; gap: 10px; align-items: flex-start;
    background: #f3eefb; border: 1px solid #e4d8f7; border-radius: 12px;
    padding: 14px 16px; color: #5d3f8f; font-size: 14px; margin: 0 0 18px;
}
.ufm-note.is-info { background: #eaf3fb; border-color: #cfe2f4; color: #2c6597; }
.ufm-note svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.ufm-note ul { margin: 6px 0 0; padding-left: 18px; }
.ufm-note a { font-weight: 600; }

/* Status pages (claim success / error / already-taken) */
.ufm-status { max-width: 600px; }
.ufm-status .ufm-card { text-align: center; }
.ufm-status-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ufm-status-icon svg { width: 32px; height: 32px; }
.ufm-status-icon.is-success { background: #dcf5e7; color: #1f8b53; }
.ufm-status-icon.is-error { background: #fbe3df; color: #c0392b; }
.ufm-status-icon.is-info { background: #ece2fb; color: #5d3f8f; }
.ufm-status h1, .ufm-status h2 { font-size: 24px; font-weight: 700; color: #241a3a; margin: 0 0 10px; }
.ufm-status-text { color: #6f6788; font-size: 15px; line-height: 1.5; margin: 0 0 22px; }
.ufm-status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Key/value data list (e.g. claimed lead details) */
.ufm-data { text-align: left; margin-top: 4px; }
.ufm-data-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f1edf8; }
.ufm-data-row:last-child { border-bottom: 0; }
.ufm-data-label { color: #9387ab; font-size: 13px; flex: 0 0 38%; }
.ufm-data-value { color: #2a2042; font-weight: 600; flex: 1 1 auto; word-break: break-word; }

/* Checkbox group (services) */
.ufm-checks { max-height: 220px; overflow-y: auto; border: 1px solid #ece5f6; border-radius: 10px; padding: 12px 14px; background: #faf8fd; }
.ufm-checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #3a3350; margin: 0 0 8px; cursor: pointer; }
.ufm-checks label:last-child { margin-bottom: 0; }
