/* ── OVERLAY ── */
.fc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--neutral);
    display: none;
}
.fc-modal-overlay.fc-modal-open {
    display: block;
}

/* ── MODAL ── */
.fc-modal {
    width: 100vw;
    height: 100vh;
    background: var(--neutral);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── CLOSE BUTTON ── */
.fc-modal-close {
    background: none;
    border: none;
    color: var(--bricks-text-medium);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: var(--text-m);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: var(--font-mono);
    line-height: 1;
}
.fc-modal-close:hover {
    color: var(--base);
}

/* ── PROGRESS ── */
.fc-progress-wrap {
    flex-shrink: 0;
    border-bottom: 2px solid var(--base);
}
.fc-progress-bar {
    height: 4px;
    background: var(--bricks-border-color);
}
.fc-progress-fill {
    height: 100%;
    background: var(--brand);
    transition: width 0.35s ease;
    width: 0%;
}
.fc-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
}
.fc-prog-step {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bricks-text-medium);
}
.fc-prog-step b {
    color: var(--base);
}
.fc-prog-dots {
    display: flex;
    gap: 4px;
}
.fc-prog-dot {
    width: 10px;
    height: 10px;
    background: var(--bricks-border-color);
    border: 1px solid var(--base-l-9);
    transition: all 0.2s;
}
.fc-prog-dot.done {
    background: var(--brand);
    border-color: var(--brand);
}
.fc-prog-dot.active {
    background: var(--base);
    border-color: var(--base);
}

/* ── BODY ── */
.fc-modal-body {
    display: flex;
    flex: 1;
    min-height: 420px;
    overflow: hidden;
}

/* ── LEFT: Q&A PANEL ── */
.fc-q-panel {
    flex: 1;
    padding: 32px 28px;
    border-right: 2px solid var(--base);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-y: auto;
}
.fc-q-eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fc-q-eyebrow::before {
    content: "";
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--brand);
}
.fc-q-title {
    font-family: var(--font-mono);
    font-size: var(--text-l);
    font-weight: 700;
    color: var(--base);
    line-height: 1.35;
    margin-bottom: 6px;
}
.fc-q-hint {
    font-size: var(--text-s);
    color: var(--bricks-text-medium);
    margin-bottom: 20px;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ── OPTIONS (single) ── */
.fc-opts {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}
.fc-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border: 1.5px solid var(--bricks-border-color);
    border-bottom: none;
    cursor: pointer;
    transition:
        background 0.12s,
        border-color 0.12s;
    user-select: none;
}
.fc-opt:last-child {
    border-bottom: 1.5px solid var(--bricks-border-color);
}
.fc-opt:hover {
    background: var(--brand-t-1);
    border-color: var(--brand-t-3);
}
.fc-opt.sel {
    background: var(--brand);
    border-color: var(--brand);
}
.fc-opt.sel + .fc-opt {
    border-top-color: var(--brand);
}
.fc-opts.grid .fc-opt.sel + .fc-opt {
    border-top-color: var(--bricks-border-color);
}
.fc-opt-indicator {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--bricks-border-color);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s;
}
.fc-opt.sel .fc-opt-indicator {
    background: var(--neutral);
    border-color: var(--neutral);
}
.fc-opt-check {
    display: none;
    font-size: var(--text-2xs);
    color: var(--brand);
    line-height: 1;
}
.fc-opt.sel .fc-opt-check {
    display: block;
}
.fc-opt-body {
    flex: 1;
    min-width: 0;
}
.fc-opt-label {
    font-size: var(--text-m);
    color: var(--base);
    font-weight: 500;
    line-height: 1.3;
}
.fc-opt.sel .fc-opt-label {
    color: var(--neutral);
}
.fc-opt-sub {
    font-size: var(--text-s);
    color: var(--bricks-text-medium);
    margin-top: 2px;
    line-height: 1.4;
}
.fc-opt.sel .fc-opt-sub {
    color: var(--neutral-t-8);
}
.fc-opt-badge {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--tertiary);
    color: var(--base);
    padding: 2px 7px;
    margin-left: auto;
    align-self: flex-start;
    flex-shrink: 0;
}

/* ── OPTIONS (multi grid) ── */
.fc-opts.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    flex: none;
}
.fc-opts.grid .fc-opt {
    border-right: none;
    border-bottom: none;
}
.fc-opts.grid .fc-opt:nth-child(odd) {
    border-right: 1.5px solid var(--bricks-border-color);
}
.fc-opts.grid .fc-opt:nth-last-child(-n + 2) {
    border-bottom: 1.5px solid var(--bricks-border-color);
}
.fc-opts.grid .fc-opt:last-child {
    border-bottom: 1.5px solid var(--bricks-border-color);
}

/* ── TEXTAREA ── */
.fc-q-textarea {
    width: 100%;
    border: 1.5px solid var(--bricks-border-color);
    background: transparent;
    padding: 10px 12px;
    font-family: var(--bricks-body-font-family, inherit);
    font-size: var(--text-s);
    color: var(--base);
    resize: none;
    height: 72px;
    outline: none;
    margin-top: 8px;
    transition: border-color 0.15s;
}
.fc-q-textarea:focus {
    border-color: var(--brand);
}
.fc-q-textarea::placeholder {
    color: var(--base-l-9);
}

/* ── FOLLOW-UP (gateway) ── */
.fc-followup {
    margin-top: 8px;
    border: 1.5px solid var(--brand);
    padding: 12px 14px;
    background: var(--brand-t-1);
    display: none;
}
.fc-followup.vis {
    display: block;
}
.fc-followup-label {
    font-family: var(--font-mono);
    font-size: var(--text-s);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 8px;
}
.fc-followup-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.fc-fu-opt {
    font-family: var(--font-mono);
    font-size: var(--text-s);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1.5px solid var(--bricks-border-color);
    padding: 5px 12px;
    cursor: pointer;
    color: var(--bricks-text-medium);
    transition: all 0.12s;
    user-select: none;
}
.fc-fu-opt:hover {
    border-color: var(--brand);
    color: var(--brand);
}
.fc-fu-opt.sel {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--neutral);
}

/* ── SUMMARY RAIL ── */
.fc-summary-rail {
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: var(--base);
}
.fc-rail-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--base-l-2);
}
.fc-rail-head-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bricks-text-medium);
}
.fc-rail-head-title {
    font-family: var(--font-mono);
    font-size: var(--text-l);
    color: var(--neutral);
    line-height: 1.1;
    margin-top: 4px;
    font-weight: 700;
}
.fc-rail-items {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}
.fc-rail-item {
    padding: 10px 18px;
    border-bottom: 1px solid var(--base-l-1);
    display: flex;
    flex-direction: column;
    gap: 3px;
    opacity: 0.3;
    transition: opacity 0.3s;
}
.fc-rail-item.filled {
    opacity: 1;
}
.fc-rail-item.active-item {
    opacity: 1;
}
.fc-ri-key {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bricks-text-medium);
}
.fc-ri-val {
    font-size: var(--text-s);
    color: var(--neutral);
    line-height: 1.3;
}
.fc-ri-val.empty-val {
    color: var(--base-l-3);
    font-style: italic;
}

/* ── BOTTOM BAR ── */
.fc-bottombar {
    border-top: 2px solid var(--base);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
	gap:1rem;
}
.fc-btn-back {
    font-family: var(--font-mono);
    font-size: var(--text-s);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: var(--bricks-text-medium);
    border: 1.5px solid var(--bricks-border-color);
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.fc-btn-back:hover:not(:disabled) {
    border-color: var(--base);
    color: var(--base);
}
.fc-btn-back:disabled {
    opacity: 0.3;
    cursor: default;
}
.fc-btn-next {
    font-family: var(--font-mono);
    font-size: var(--text-s);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--base);
    color: var(--neutral);
    border: 2px solid var(--base);
    padding: 11px 24px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fc-btn-next:hover:not(:disabled) {
    background: var(--brand);
    border-color: var(--brand);
}
.fc-btn-next:disabled {
    opacity: 0.35;
    cursor: default;
}
.fc-bottom-note {
	@media(width < 475px) {
		display:none;
	}
    font-family: var(--font-mono);
    font-size: var(--text-s);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bricks-text-medium);
}

/* ── STEP VISIBILITY ── */
.step-content {
    display: none;
}
.step-content.active {
    display: flex;
    flex-direction: column;
/*     flex: 1; */
}

/* ── RAIL FOOT (PRICE) ── */
.fc-rail-foot {
    padding: 14px 18px;
    border-top: 2px solid var(--neutral);
	background-color:var(--secondary);
	color:var(--neutral);
}
.fc-rail-price-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
/*     color: var(--bricks-text-medium); */
    margin-bottom: 4px;
}
.fc-rail-price {
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    color: var(--neutral);
    line-height: 1.1;
    font-weight: 700;
}
.fc-rail-price-note {
    font-size: var(--text-s);
/*     color: var(--bricks-text-medium); */
    margin-top: 3px;
}

/* ── STEP 12 — ESTIMATE ── */
.fc-est-price {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    color: var(--brand);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 4px;
}
.fc-est-price-note {
    font-family: var(--font-mono);
    font-size: var(--text-s);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bricks-text-medium);
    margin-bottom: 20px;
}
.fc-est-config {
    margin-bottom: 20px;
}
.fc-est-config-label {
    font-family: var(--font-mono);
    font-size: var(--text-s);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bricks-text-medium);
    margin-bottom: 8px;
}
.fc-est-config-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.fc-eci {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--bricks-border-color);
}
.fc-eci:last-child {
    border-bottom: none;
}
.fc-eci-key {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bricks-text-medium);
    min-width: 90px;
    flex-shrink: 0;
}
.fc-eci-val {
    font-size: var(--text-s);
    color: var(--base);
}
.fc-est-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(30rem,1fr));
    gap: 2px;
    border: 2px solid var(--base);
    margin-top: auto;
	background-color:var(--base);
}
.fc-est-action {
	background-color:var(--neutral);
    padding: 20px;
/*     border-right: 2px solid var(--base); */
}
.fc-est-action:last-child {
/*     border-right: none; */
}
.fc-ea-label {
    font-family: var(--font-mono);
    font-size: var(--text-s);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bricks-text-medium);
    margin-bottom: 6px;
}
.fc-ea-title {
    font-family: var(--font-mono);
    font-size: var(--text-m);
    font-weight: 700;
    color: var(--base);
    margin-bottom: 6px;
}
.fc-ea-note {
    font-size: var(--text-s);
    color: var(--bricks-text-medium);
    line-height: 1.55;
    margin-bottom: 14px;
}
.fc-ea-note b {
    color: var(--base);
    font-weight: 500;
}
.fc-ea-sub {
    font-size: var(--text-s);
    color: var(--bricks-text-medium);
    margin-top: 6px;
    line-height: 1.5;
}
.fc-btn {
    display: block;
    width: 100%;
    font-family: var(--font-mono);
    font-size: var(--text-s);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid var(--base);
    padding: 11px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}
.fc-btn-primary {
    background: var(--base);
    color: var(--neutral);
}
.fc-btn-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
}
.fc-btn-secondary {
    background: transparent;
    color: var(--base);
}
.fc-btn-secondary:hover {
    background: var(--base);
    color: var(--neutral);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .fc-modal-body {
        flex-direction: column;
    }
    .fc-summary-rail {
        display: none;
    }
    .fc-q-panel {
        border-right: none;
        padding: 24px 20px;
    }
    .fc-progress-meta {
        padding: 8px 20px;
    }
    .fc-bottombar {
        padding: 14px 20px;
    }
}
