/* ============================================================
   Bathroom Modification Cost Calculator — Stylesheet v1.0
   Color palette: Warm clay/terracotta + soft aqua — evokes a
   warm, spa-like bathroom feeling. Differentiates from green
   (Tools 1-4), blue/teal (Tool 5), purple (Tool 6).
   THEME RESET at top. All rules scoped to .bmc-wrap.
   ============================================================ */

/* ── THEME RESET ─────────────────────────────────────────── */
.bmc-wrap p               { max-width:none!important;margin-bottom:0!important;font-size:inherit!important;line-height:inherit!important;color:inherit!important; }
.bmc-wrap h2,.bmc-wrap h3,.bmc-wrap h4,.bmc-wrap h5,.bmc-wrap h6 { font-size:inherit!important;line-height:inherit!important;letter-spacing:normal!important;margin:0!important;color:inherit!important; }
.bmc-wrap ul,.bmc-wrap ol { padding-left:0!important;margin:0!important;list-style:none!important; }
.bmc-wrap li              { margin:0!important;padding:0!important; }
.bmc-wrap button          { font-family:inherit!important;cursor:pointer!important; }
.bmc-wrap input           { font-family:inherit!important; }
.bmc-wrap a               { text-decoration:none!important; }
.bmc-wrap img             { display:inline!important; }
.bmc-wrap table           { border-collapse:collapse;width:100%; }
/* ── End theme reset ─────────────────────────────────────── */

.bmc-wrap {
    --bmc-clay:        #c2410c;
    --bmc-clay-dark:   #9a3412;
    --bmc-clay-light:  #fff7ed;
    --bmc-aqua:        #0d9488;
    --bmc-aqua-light:  #f0fdfa;
    --bmc-amber:       #F4A835;
    --bmc-amber-dark:  #d4922b;
    --bmc-text:        #1c1917;
    --bmc-muted:       #78716c;
    --bmc-border:      #e7e5e4;
    --bmc-white:       #ffffff;
    --bmc-radius:      12px;
    --bmc-radius-sm:   8px;
    --bmc-shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
    --bmc-font:        'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
    --bmc-font-h:      'Lora',Georgia,serif;
}

.bmc-wrap,.bmc-wrap *,.bmc-wrap *::before,.bmc-wrap *::after { box-sizing:border-box; }

.bmc-wrap {
    font-family: var(--bmc-font);
    color: var(--bmc-text);
    font-size: 15px;
    line-height: 1.6;
    width: 100%;
    max-width: 860px;
    margin: 0 auto 48px;
    background: var(--bmc-white);
    border-radius: var(--bmc-radius);
    box-shadow: var(--bmc-shadow-lg);
    overflow: hidden;
}

/* ── Hero — warm clay/terracotta with subtle steam texture ── */
.bmc-hero {
    background: linear-gradient(135deg, #9a3412 0%, #6c2410 100%);
    padding: 48px 40px 40px;
    text-align: center;
    color: #fff;
    position: relative;
}

.bmc-hero::before {
    content:'';position:absolute;inset:0;
    background-image: radial-gradient(circle at 25% 75%, rgba(255,255,255,0.07) 0%, transparent 55%),
                      radial-gradient(circle at 75% 25%, rgba(255,255,255,0.05) 0%, transparent 55%);
    pointer-events:none;
}

.bmc-hero-badge {
    display:inline-block;background:rgba(255,255,255,0.18);border:1px solid rgba(255,255,255,0.28);
    color:#fff;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;
    padding:5px 16px;border-radius:20px;margin-bottom:14px;position:relative;z-index:1;
}

.bmc-hero-title {
    font-family:var(--bmc-font-h)!important;font-size:clamp(20px,4vw,28px)!important;
    font-weight:700!important;line-height:1.3!important;margin-bottom:12px!important;
    color:#fff!important;position:relative;z-index:1;
}

.bmc-hero-sub {
    font-size:14px;color:rgba(255,255,255,0.86);max-width:600px;
    margin:0 auto 22px;line-height:1.75;position:relative;z-index:1;
}

.bmc-hero-stats {
    display:inline-flex;align-items:center;background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.2);border-radius:var(--bmc-radius);
    padding:12px 24px;margin-bottom:28px;position:relative;z-index:1;
}

.bmc-stat      { display:flex;flex-direction:column;align-items:center;padding:0 18px; }
.bmc-stat-num  { font-family:var(--bmc-font-h);font-size:22px;font-weight:700;color:#fff;line-height:1; }
.bmc-stat-lbl  { font-size:11px;color:rgba(255,255,255,0.75);margin-top:3px;white-space:nowrap; }
.bmc-stat-div  { width:1px;height:30px;background:rgba(255,255,255,0.22);flex-shrink:0; }

.bmc-start-btn { position:relative;z-index:1;font-size:16px;padding:14px 36px; }

/* ── Progress ─────────────────────────────────────────────── */
.bmc-progress-wrap {
    display:flex;align-items:center;gap:14px;padding:16px 36px;
    background:var(--bmc-clay-light);border-bottom:1px solid var(--bmc-border);
}
.bmc-progress-track { flex:1;height:8px;background:var(--bmc-border);border-radius:99px;overflow:hidden; }
.bmc-progress-fill  { height:100%;background:var(--bmc-clay);border-radius:99px;transition:width .35s ease; }
.bmc-progress-text  { font-size:12px;font-weight:700;color:var(--bmc-clay);white-space:nowrap;min-width:80px;text-align:right; }

/* ── Step ─────────────────────────────────────────────────── */
.bmc-step { padding:36px 40px 28px;min-height:340px;display:flex;flex-direction:column; }
.bmc-step-icon  { font-size:36px;margin-bottom:10px;line-height:1;display:block; }

.bmc-step-q {
    font-family:var(--bmc-font-h)!important;font-size:clamp(18px,3.5vw,23px)!important;
    font-weight:700!important;color:var(--bmc-text)!important;
    line-height:1.3!important;margin-bottom:10px!important;
}

.bmc-step-sub {
    font-size:14px;color:var(--bmc-muted);line-height:1.75;
    margin-bottom:24px;max-width:680px;
}

/* ── Options ──────────────────────────────────────────────── */
.bmc-options {
    display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:24px;flex:1;
}

.bmc-option {
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:14px 18px;border:2px solid var(--bmc-border);border-radius:var(--bmc-radius-sm);
    background:var(--bmc-white);cursor:pointer;font-family:var(--bmc-font);
    font-size:14px;font-weight:500;color:var(--bmc-text);text-align:left;line-height:1.4;
    transition:border-color .18s,background .18s,color .18s;
    -webkit-appearance:none;appearance:none;outline:none;
}

.bmc-option:hover { border-color:var(--bmc-clay);background:var(--bmc-clay-light); }

.bmc-option.bmc-option-selected {
    border-color:var(--bmc-clay);background:var(--bmc-clay-light);
    color:var(--bmc-clay-dark);font-weight:600;
}

.bmc-option:focus-visible { outline:2px solid var(--bmc-clay);outline-offset:2px; }

.bmc-option-label { flex:1; }

.bmc-option-check {
    width:22px;height:22px;border-radius:50%;border:2px solid var(--bmc-border);
    background:var(--bmc-white);flex-shrink:0;display:flex;align-items:center;
    justify-content:center;color:transparent;transition:background .18s,border-color .18s,color .18s;
}

.bmc-option.bmc-option-selected .bmc-option-check {
    background:var(--bmc-clay);border-color:var(--bmc-clay);color:#fff;
}

/* ── Step nav ─────────────────────────────────────────────── */
.bmc-step-nav {
    display:flex;align-items:center;gap:12px;padding-top:4px;
    border-top:1px solid var(--bmc-border);margin-top:auto;
}

/* ── Buttons ──────────────────────────────────────────────── */
.bmc-btn {
    display:inline-flex;align-items:center;justify-content:center;gap:7px;
    padding:11px 22px;font-family:var(--bmc-font);font-size:14px;font-weight:600;
    border-radius:var(--bmc-radius-sm);border:2px solid transparent;cursor:pointer;
    transition:background .18s,color .18s,border-color .18s,transform .12s;
    text-decoration:none!important;line-height:1;-webkit-appearance:none;appearance:none;white-space:nowrap;
}
.bmc-btn:disabled { opacity:.4;cursor:not-allowed; }
.bmc-btn:active:not(:disabled) { transform:scale(.97); }

.bmc-btn-amber   { background:var(--bmc-amber);color:#fff;border-color:var(--bmc-amber); }
.bmc-btn-amber:hover:not(:disabled) { background:var(--bmc-amber-dark);border-color:var(--bmc-amber-dark);color:#fff; }
.bmc-btn-outline { background:transparent;color:var(--bmc-clay);border-color:var(--bmc-clay); }
.bmc-btn-outline:hover:not(:disabled) { background:var(--bmc-clay-light); }
.bmc-btn-ghost   { background:transparent;color:var(--bmc-muted);border-color:var(--bmc-border); }
.bmc-btn-ghost:hover:not(:disabled) { background:#f9fafb; }

/* ── Lead gate ────────────────────────────────────────────── */
.bmc-lead-gate { padding:36px 40px; }
.bmc-lead-inner {
    background:linear-gradient(135deg,#fff7ed 0%,#f0fdfa 100%);
    border:2px solid var(--bmc-clay);border-radius:var(--bmc-radius);padding:40px 36px;text-align:center;
}
.bmc-lead-badge { display:inline-block;background:var(--bmc-clay);color:#fff;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:4px 14px;border-radius:20px;margin-bottom:14px; }
.bmc-lead-icon  { font-size:44px;display:block;margin-bottom:12px;line-height:1; }
.bmc-lead-title { font-family:var(--bmc-font-h)!important;font-size:clamp(18px,3.5vw,22px)!important;font-weight:700!important;color:var(--bmc-text)!important;margin-bottom:10px!important; }
.bmc-lead-sub   { font-size:14px;color:var(--bmc-muted);max-width:500px;margin:0 auto 26px;line-height:1.7; }
.bmc-lead-fields { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px;text-align:left; }
.bmc-lead-field  { display:flex;flex-direction:column;gap:5px; }
.bmc-lead-label  { font-size:13px;font-weight:600;color:var(--bmc-text); }
.bmc-lead-input  {
    width:100%;padding:11px 13px;border:1.5px solid var(--bmc-border);border-radius:var(--bmc-radius-sm);
    font-family:var(--bmc-font);font-size:14px;color:var(--bmc-text);background:var(--bmc-white);
    outline:none;transition:border-color .2s,box-shadow .2s;-webkit-appearance:none;appearance:none;
}
.bmc-lead-input:focus { border-color:var(--bmc-clay);box-shadow:0 0 0 3px rgba(194,65,12,.14); }
.bmc-lead-submit { width:100%;padding:15px;font-size:15px;border-radius:var(--bmc-radius-sm);margin-bottom:12px; }
.bmc-lead-privacy { display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--bmc-muted); }
.bmc-lead-error  { margin-top:12px;padding:10px 14px;background:#FEF2F2;border:1px solid #FECACA;border-radius:var(--bmc-radius-sm);color:#B91C1C;font-size:13px;text-align:left; }

/* ── Results ──────────────────────────────────────────────── */
.bmc-results { padding:0 40px 40px; }
.bmc-results-inner { animation:bmcFadeUp .4s ease; }
@keyframes bmcFadeUp { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }

.bmc-results-header {
    display:flex;align-items:flex-start;gap:16px;padding:32px 0 22px;
    border-bottom:1px solid var(--bmc-border);margin-bottom:28px;
}
.bmc-results-emoji { font-size:40px;flex-shrink:0; }
.bmc-results-title { font-family:var(--bmc-font-h)!important;font-size:clamp(18px,3.5vw,23px)!important;font-weight:700!important;color:var(--bmc-text)!important;margin-bottom:6px!important; }
.bmc-results-sub   { font-size:14px;color:var(--bmc-muted);line-height:1.6; }

.bmc-section-heading { font-size:17px!important;font-weight:700!important;color:var(--bmc-text)!important;margin-bottom:8px!important;padding-top:28px!important; }
.bmc-section-lead    { font-size:14px;color:var(--bmc-muted);line-height:1.65;margin-bottom:16px; }

/* ── Total banner ─────────────────────────────────────────── */
.bmc-total-banner {
    display:flex;gap:20px;background:linear-gradient(135deg,var(--bmc-clay),var(--bmc-clay-dark));
    border-radius:var(--bmc-radius);padding:24px 28px;margin-bottom:28px;flex-wrap:wrap;align-items:flex-start;
}
.bmc-total-main { display:flex;flex-direction:column;gap:4px; }
.bmc-total-label { font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:rgba(255,255,255,0.8); }
.bmc-total-amount { font-family:var(--bmc-font-h);font-size:clamp(22px,4vw,32px);font-weight:700;color:#fff;line-height:1.1; }
.bmc-total-note { font-size:12px;color:rgba(255,255,255,0.7); }
.bmc-total-tips { display:flex;flex-direction:column;gap:6px;background:rgba(255,255,255,0.14);border-radius:var(--bmc-radius-sm);padding:14px 16px;flex:1;min-width:200px; }
.bmc-tip { font-size:13px;color:rgba(255,255,255,0.92);line-height:1.5; }

/* ── Item list ────────────────────────────────────────────── */
.bmc-item-list {
    display:flex;flex-direction:column;border:1px solid var(--bmc-border);
    border-radius:var(--bmc-radius-sm);overflow:hidden;margin-bottom:24px;
}

.bmc-item-row {
    display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
    padding:16px 18px;border-bottom:1px solid var(--bmc-border);
}
.bmc-item-row:nth-child(odd) { background:#fafaf9; }
.bmc-item-row:last-child { border-bottom:none; }

.bmc-item-info { flex:1; min-width:0; }
.bmc-item-info h5 { font-size:14.5px!important;font-weight:700!important;color:var(--bmc-text)!important;margin-bottom:4px!important;line-height:1.4!important; }
.bmc-item-info p  { font-size:13px!important;color:var(--bmc-muted)!important;line-height:1.65!important; }

.bmc-item-cost { font-family:var(--bmc-font-h);font-size:14px;font-weight:700;color:var(--bmc-clay);white-space:nowrap;flex-shrink:0;padding-top:2px; }

.bmc-item-total-row { background:var(--bmc-aqua-light)!important; }
.bmc-item-cost-total { font-size:17px; color:var(--bmc-aqua); }
.bmc-item-total-row h5 { color:var(--bmc-aqua)!important; }

/* ── Assistance ───────────────────────────────────────────── */
.bmc-assistance { margin-bottom:24px; }
.bmc-assistance-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.bmc-assist-card { border:1.5px solid var(--bmc-border);border-radius:var(--bmc-radius-sm);padding:16px;background:var(--bmc-white);display:flex;flex-direction:column;gap:6px; }
.bmc-assist-type { display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:2px 8px;border-radius:4px;width:fit-content; }
.bmc-assist-state     { background:#F3E8FF; color:#7c3aed; }
.bmc-assist-veterans  { background:#DBEAFE; color:#1d4ed8; }
.bmc-assist-federal   { background:#FEF3C7; color:#92400e; }
.bmc-assist-insurance { background:#DCFCE7; color:#15803d; }
.bmc-assist-tax       { background:#CCFBF1; color:#0f766e; }
.bmc-assist-name { font-size:13px!important;font-weight:700!important;color:var(--bmc-text)!important;line-height:1.35!important; }
.bmc-assist-desc { font-size:12px;color:var(--bmc-muted);line-height:1.55;flex:1; }
.bmc-assist-link { font-size:12px;font-weight:600;color:var(--bmc-clay)!important;text-decoration:underline!important; }

/* ── Next steps ───────────────────────────────────────────── */
.bmc-next-steps { margin-bottom:20px; }
.bmc-next-grid  { display:grid;grid-template-columns:repeat(3,1fr);gap:12px; }
.bmc-next-card  { display:flex;flex-direction:column;background:var(--bmc-white);border:1.5px solid var(--bmc-border);border-radius:var(--bmc-radius-sm);padding:18px;transition:border-color .2s,box-shadow .2s; }
.bmc-next-card-link:hover { border-color:var(--bmc-clay);box-shadow:0 2px 8px rgba(0,0,0,.07); }
.bmc-next-icon  { font-size:26px;display:block;margin-bottom:8px;line-height:1; }
.bmc-next-card h5 { font-size:13px!important;font-weight:700!important;color:var(--bmc-text)!important;margin-bottom:5px!important;line-height:1.35!important; }
.bmc-next-card p  { font-size:12px!important;color:var(--bmc-muted)!important;line-height:1.6!important;flex:1;margin-bottom:8px!important; }
.bmc-next-link    { font-size:12px;font-weight:700;color:var(--bmc-clay); }

/* ── Recalc / disclaimer ──────────────────────────────────── */
.bmc-recalc-row { display:flex;gap:12px;justify-content:center;margin-bottom:16px;flex-wrap:wrap; }
.bmc-disclaimer { font-size:11px;color:var(--bmc-muted);line-height:1.6;padding:14px 0;border-top:1px solid var(--bmc-border);text-align:center; }

/* ── Utility ──────────────────────────────────────────────── */
.bmc-hidden { display:none!important; }

/* ── Print ────────────────────────────────────────────────── */
@media print {
    .bmc-intro,.bmc-quiz,.bmc-lead-gate,.bmc-recalc-row { display:none!important; }
    .bmc-results { padding:0; }
    .bmc-wrap { box-shadow:none;border:1px solid #ccc; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width:680px) {
    .bmc-hero    { padding:32px 20px 28px; }
    .bmc-step    { padding:24px 20px 20px;min-height:auto; }
    .bmc-options { grid-template-columns:1fr; }
    .bmc-progress-wrap { padding:12px 20px; }
    .bmc-lead-gate  { padding:20px; }
    .bmc-lead-inner { padding:28px 18px; }
    .bmc-lead-fields{ grid-template-columns:1fr; }
    .bmc-results    { padding:0 20px 28px; }
    .bmc-total-banner { flex-direction:column; padding:20px; }
    .bmc-item-row   { flex-direction:column; gap:6px; }
    .bmc-assistance-grid { grid-template-columns:1fr; }
    .bmc-next-grid  { grid-template-columns:1fr; }
    .bmc-hero-stats { flex-direction:column;gap:10px;padding:14px; }
    .bmc-stat-div   { width:40px;height:1px; }
}
