/* ===================================================
   FormMyBiz Wizard — Public Styles
   Colors: #FF7A27 (orange), #1a1a1a (black), #fff (white)
=================================================== */

:root {
    --fmb-orange:     #FF7A27;
    --fmb-orange-d:   #e56b1f;
    --fmb-orange-lt:  #fff5ef;
    --fmb-black:      #1a1a1a;
    --fmb-gray:       #6b7280;
    --fmb-lgray:      #9ca3af;
    --fmb-border:     #e5e7eb;
    --fmb-bg:         #f9fafb;
    --fmb-white:      #ffffff;
    --fmb-success:    #10b981;
    --fmb-error:      #ef4444;
    --fmb-radius:     12px;
    --fmb-shadow:     0 4px 20px rgba(0,0,0,.08);
    --fmb-font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Container ─────────────────────────────────────── */
.fmb-wizard {
    font-family: var(--fmb-font);
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 60px;
    color: var(--fmb-black);
    background: var(--fmb-white);
    -webkit-font-smoothing: antialiased;
}

/* ── Progress Bar ──────────────────────────────────── */
.fmb-progress-wrap {
    padding: 32px 0 40px;
}
.fmb-progress-bar {
    height: 4px;
    background: var(--fmb-border);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}
.fmb-progress-fill {
    height: 100%;
    background: var(--fmb-orange);
    border-radius: 4px;
    transition: width .4s ease;
    width: 25%;
}
.fmb-steps-nav {
    display: flex;
    justify-content: space-between;
}
.fmb-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    cursor: default;
}
.fmb-dot-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--fmb-border);
    background: var(--fmb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--fmb-lgray);
    transition: all .3s;
}
.fmb-step-dot.active .fmb-dot-circle,
.fmb-step-dot.completed .fmb-dot-circle {
    background: var(--fmb-orange);
    border-color: var(--fmb-orange);
    color: var(--fmb-white);
}
.fmb-step-dot span {
    font-size: 11px;
    font-weight: 600;
    color: var(--fmb-lgray);
    text-align: center;
    transition: color .3s;
}
.fmb-step-dot.active span { color: var(--fmb-orange); }
.fmb-step-dot.completed span { color: var(--fmb-gray); }

/* ── Step Container ────────────────────────────────── */
.fmb-step { animation: fmbFadeIn .35s ease; }

@keyframes fmbFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fmb-step-inner { max-width: 760px; margin: 0 auto; }

/* ── Step Header ───────────────────────────────────── */
.fmb-step-header { margin-bottom: 36px; }
.fmb-step-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--fmb-orange);
    margin-bottom: 8px;
}
.fmb-step-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--fmb-black);
    margin: 0 0 10px;
    line-height: 1.2;
}
.fmb-step-header p {
    font-size: 16px;
    color: var(--fmb-gray);
    margin: 0;
    line-height: 1.6;
}

/* ── Form Grid ─────────────────────────────────────── */
.fmb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}
.fmb-form-group { display: flex; flex-direction: column; gap: 6px; }
.fmb-form-group.fmb-full { grid-column: 1 / -1; }

.fmb-form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--fmb-black);
}
.fmb-form-group small {
    font-size: 12px;
    color: var(--fmb-lgray);
    margin-top: 2px;
}

.fmb-form-group input[type="text"],
.fmb-form-group input[type="email"],
.fmb-form-group input[type="tel"],
.fmb-form-group select {
    padding: 12px 14px;
    border: 2px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    font-size: 15px;
    color: var(--fmb-black);
    background: var(--fmb-white);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: var(--fmb-font);
    -webkit-appearance: none;
    appearance: none;
}
.fmb-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
    cursor: pointer;
}
.fmb-form-group input:focus,
.fmb-form-group select:focus {
    border-color: var(--fmb-orange);
    box-shadow: 0 0 0 3px rgba(255,122,39,.12);
}
.fmb-form-group input.fmb-error { border-color: var(--fmb-error); }

.fmb-no-address { margin-top: 8px; }
.fmb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fmb-gray);
    cursor: pointer;
}
.fmb-checkbox-label input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--fmb-orange);
    cursor: pointer;
}
.fmb-checkbox-label strong { color: var(--fmb-orange); }

/* ── Entity Cards ──────────────────────────────────── */
.fmb-entity-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}
.fmb-entity-card {
    flex: 1;
    min-width: 160px;
    padding: 16px;
    border: 2px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    cursor: pointer;
    transition: all .2s;
    background: var(--fmb-white);
}
.fmb-entity-card:hover { border-color: var(--fmb-orange); background: var(--fmb-orange-lt); }
.fmb-entity-card.selected {
    border-color: var(--fmb-orange);
    background: var(--fmb-orange-lt);
    box-shadow: 0 0 0 3px rgba(255,122,39,.15);
}
.fmb-entity-label { font-size: 15px; font-weight: 800; color: var(--fmb-black); margin-bottom: 4px; }
.fmb-entity-desc  { font-size: 12px; color: var(--fmb-gray); line-height: 1.5; }

/* ── Search Action & Result ────────────────────────── */
.fmb-search-action { margin-bottom: 24px; }

.fmb-search-result {
    padding: 20px 24px;
    border-radius: var(--fmb-radius);
    margin-bottom: 20px;
    animation: fmbFadeIn .3s ease;
}
.fmb-result-available {
    background: #f0fdf4;
    border: 2px solid #86efac;
}
.fmb-result-taken {
    background: #fef2f2;
    border: 2px solid #fca5a5;
}
.fmb-result-unknown {
    background: #fffbeb;
    border: 2px solid #fcd34d;
}
.fmb-result-icon { font-size: 28px; margin-bottom: 8px; }
.fmb-result-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.fmb-result-available .fmb-result-title { color: #15803d; }
.fmb-result-taken .fmb-result-title { color: #b91c1c; }
.fmb-result-msg { font-size: 14px; color: var(--fmb-gray); line-height: 1.6; }

/* ── Disclaimer ────────────────────────────────────── */
.fmb-disclaimer {
    display: flex;
    gap: 10px;
    background: var(--fmb-bg);
    border: 1px solid var(--fmb-border);
    border-left: 3px solid var(--fmb-orange);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--fmb-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}
.fmb-disclaimer-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Buttons ───────────────────────────────────────── */
.fmb-btn-primary,
.fmb-wizard button.fmb-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--fmb-orange);
    color: var(--fmb-white);
    border: none;
    border-radius: var(--fmb-radius);
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    font-family: var(--fmb-font);
    text-decoration: none;
}
.fmb-btn-primary:hover  { background: var(--fmb-orange-d); }
.fmb-btn-primary:active { transform: scale(.98); }
.fmb-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.fmb-btn-lg { padding: 16px 32px; font-size: 16px; }

.fmb-btn-ghost {
    background: none;
    border: 2px solid var(--fmb-border);
    color: var(--fmb-gray);
    border-radius: var(--fmb-radius);
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--fmb-font);
}
.fmb-btn-ghost:hover { border-color: var(--fmb-gray); color: var(--fmb-black); }

.fmb-step-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--fmb-border);
}

/* ── Add-ons Grid ──────────────────────────────────── */
.fmb-addons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}
.fmb-addon-card {
    border: 2px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    padding: 16px;
    cursor: pointer;
    transition: all .2s;
    background: var(--fmb-white);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}
.fmb-addon-card:hover { border-color: var(--fmb-orange); background: var(--fmb-orange-lt); }
.fmb-addon-card.selected {
    border-color: var(--fmb-orange);
    background: var(--fmb-orange-lt);
    box-shadow: 0 0 0 3px rgba(255,122,39,.12);
}
.fmb-addon-card.fmb-preselected { border-color: #d1fae5; background: #f0fdf4; cursor: default; }

.fmb-addon-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--fmb-border);
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: all .2s;
}
.fmb-addon-card.selected .fmb-addon-check {
    background: var(--fmb-orange);
    border-color: var(--fmb-orange);
    color: #fff;
}
.fmb-addon-card.selected .fmb-addon-check::after { content: '✓'; font-size: 13px; font-weight: 800; }

.fmb-addon-icon { font-size: 22px; flex-shrink: 0; }
.fmb-addon-body { flex: 1; }
.fmb-addon-label { font-size: 14px; font-weight: 800; color: var(--fmb-black); margin-bottom: 3px; }
.fmb-addon-desc  { font-size: 12px; color: var(--fmb-gray); line-height: 1.5; }
.fmb-addon-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--fmb-orange);
    margin-top: 6px;
}
.fmb-addon-price.fmb-free { color: var(--fmb-success); }

/* ── Review Layout ─────────────────────────────────── */
.fmb-review-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.fmb-review-card {
    border: 1px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    overflow: hidden;
    margin-bottom: 16px;
}
.fmb-review-card-header {
    background: var(--fmb-bg);
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fmb-gray);
    border-bottom: 1px solid var(--fmb-border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.fmb-review-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 1px solid var(--fmb-border);
}
.fmb-review-row:last-child { border-bottom: none; }
.fmb-review-row-label { color: var(--fmb-gray); }
.fmb-review-row-value { font-weight: 600; color: var(--fmb-black); text-align: right; }

/* ── Order Total Card ──────────────────────────────── */
.fmb-order-total-card {
    background: var(--fmb-white);
    border: 2px solid var(--fmb-border);
    border-radius: var(--fmb-radius);
    padding: 24px;
    box-shadow: var(--fmb-shadow);
    position: sticky;
    top: 20px;
}
.fmb-total-header {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--fmb-black);
}
.fmb-total-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--fmb-gray);
}
.fmb-total-line span:last-child { font-weight: 600; color: var(--fmb-black); }
.fmb-total-divider {
    height: 1px;
    background: var(--fmb-border);
    margin: 14px 0;
}
.fmb-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}
.fmb-grand-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--fmb-black);
    margin-bottom: 0;
}
.fmb-grand-total span:last-child { color: var(--fmb-orange); }
.fmb-recurring-note {
    font-size: 12px;
    color: var(--fmb-gray);
    margin-top: 8px;
    padding: 8px 10px;
    background: var(--fmb-bg);
    border-radius: 6px;
}

.fmb-btn-checkout {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    padding: 16px;
    font-size: 16px;
}
.fmb-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--fmb-lgray);
    margin-top: 12px;
}
.fmb-secure-note svg { color: var(--fmb-lgray); }

/* ── Success Screen ────────────────────────────────── */
.fmb-success-screen {
    text-align: center;
    padding: 60px 20px;
}
.fmb-success-icon { font-size: 64px; margin-bottom: 16px; }
.fmb-success-screen h2 { font-size: 32px; font-weight: 800; color: var(--fmb-black); margin-bottom: 12px; }
.fmb-success-screen p  { font-size: 16px; color: var(--fmb-gray); max-width: 480px; margin: 0 auto 24px; line-height: 1.7; }
.fmb-success-order {
    display: inline-block;
    background: var(--fmb-orange-lt);
    border: 2px solid var(--fmb-orange);
    border-radius: var(--fmb-radius);
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    color: var(--fmb-orange);
}

/* ── Field Errors ──────────────────────────────────── */
.fmb-field-error {
    font-size: 12px;
    color: var(--fmb-error);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.fmb-field-error::before { content: '⚠ '; }
input.fmb-error { border-color: var(--fmb-error) !important; }
input.fmb-field-disabled {
    background: var(--fmb-bg);
    color: var(--fmb-lgray);
    cursor: not-allowed;
    border-color: var(--fmb-border) !important;
    opacity: 0.6;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
    .fmb-form-grid     { grid-template-columns: 1fr; }
    .fmb-addons-grid   { grid-template-columns: 1fr; }
    .fmb-review-layout { grid-template-columns: 1fr; }
    .fmb-entity-cards  { flex-direction: column; }
    .fmb-steps-nav span { display: none; }
    .fmb-step-header h2 { font-size: 22px; }
    .fmb-btn-lg { padding: 14px 22px; font-size: 15px; }
}
