/* ═══════════════════════════════════════════════════════════
   FORGE CASE STUDY — FRONTEND STYLES
   Design language: Industrial precision. Steel & fire.
═══════════════════════════════════════════════════════════ */

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

:root {
    --fcs-forge-navy:    #0d1b2a;
    --fcs-forge-steel:   #1e3a5f;
    --fcs-forge-orange:  #e85d04;
    --fcs-forge-amber:   #fb8500;
    --fcs-forge-white:   #f8f9fa;
    --fcs-forge-light:   #eef2f7;
    --fcs-forge-muted:   #6b7a90;
    --fcs-forge-border:  #d0dae8;
    --fcs-forge-success: #2ecc71;
    --fcs-forge-error:   #e74c3c;
    --fcs-radius:        8px;
    --fcs-radius-lg:     14px;
    --fcs-shadow:        0 4px 24px rgba(13,27,42,0.10);
    --fcs-shadow-lg:     0 12px 48px rgba(13,27,42,0.18);
    --fcs-font-display:  'Barlow Condensed', sans-serif;
    --fcs-font-body:     'DM Sans', sans-serif;
    --fcs-transition:    all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Wrapper ────────────────────────────────────────────── */
.fcs-wrapper {
    font-family: var(--fcs-font-body);
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--fcs-radius-lg);
    box-shadow: var(--fcs-shadow-lg);
    overflow: hidden;
    position: relative;
}

/* ── Progress Rail ──────────────────────────────────────── */
.fcs-progress-rail {
    background: var(--fcs-forge-navy);
    padding: 0 2rem;
    display: flex;
    align-items: stretch;
    gap: 0;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
}
.fcs-progress-rail::-webkit-scrollbar { display: none; }

.fcs-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fcs-forge-orange), var(--fcs-forge-amber));
    transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
    width: 11.11%;
}

.fcs-step-pip {
    flex: 1;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem 1.1rem;
    cursor: pointer;
    opacity: 0.4;
    transition: var(--fcs-transition);
    position: relative;
    border-bottom: 3px solid transparent;
}
.fcs-step-pip.active,
.fcs-step-pip.completed {
    opacity: 1;
}
.fcs-step-pip.active {
    border-bottom-color: var(--fcs-forge-orange);
}
.fcs-step-pip.completed {
    border-bottom-color: var(--fcs-forge-success);
}
.fcs-pip-icon {
    font-size: 1.25rem;
    line-height: 1;
    display: block;
}
.fcs-pip-label {
    font-family: var(--fcs-font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fcs-forge-white);
    margin-top: 0.3rem;
    white-space: nowrap;
}

/* ── Panels ─────────────────────────────────────────────── */
.fcs-panel {
    display: none;
    padding: 2.5rem 2.5rem 2rem;
    animation: fcsFadeIn 0.28s ease;
}
.fcs-panel.active {
    display: block;
}
@keyframes fcsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Panel Header ───────────────────────────────────────── */
.fcs-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--fcs-forge-light);
}
.fcs-panel-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.2rem;
}
.fcs-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fcs-forge-orange);
    margin: 0 0 0.25rem;
}
.fcs-panel-title {
    font-family: var(--fcs-font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--fcs-forge-navy);
    margin: 0 0 0.35rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
}
.fcs-panel-subtitle {
    font-size: 0.9rem;
    color: var(--fcs-forge-muted);
    margin: 0;
    line-height: 1.5;
}

/* ── Fields ─────────────────────────────────────────────── */
.fcs-fields { display: flex; flex-direction: column; gap: 1.25rem; }

.fcs-field-group {
    display: grid;
    gap: 1rem;
}
.fcs-col-2 { grid-template-columns: 1fr 1fr; }
.fcs-col-3 { grid-template-columns: 1fr 1fr 1fr; }

.fcs-field { display: flex; flex-direction: column; gap: 0.4rem; }
.fcs-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fcs-forge-navy);
    letter-spacing: 0.02em;
}
.fcs-req { color: var(--fcs-forge-orange); }

.fcs-field input[type="text"],
.fcs-field input[type="email"],
.fcs-field input[type="number"],
.fcs-field select,
.fcs-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--fcs-forge-border);
    border-radius: var(--fcs-radius);
    font-family: var(--fcs-font-body);
    font-size: 0.92rem;
    color: var(--fcs-forge-navy);
    background: var(--fcs-forge-white);
    transition: var(--fcs-transition);
    box-sizing: border-box;
    outline: none;
}
.fcs-field input:focus,
.fcs-field select:focus,
.fcs-field textarea:focus {
    border-color: var(--fcs-forge-orange);
    box-shadow: 0 0 0 3px rgba(232,93,4,0.12);
    background: #fff;
}
.fcs-field input.fcs-error,
.fcs-field select.fcs-error,
.fcs-field textarea.fcs-error {
    border-color: var(--fcs-forge-error);
    box-shadow: 0 0 0 3px rgba(231,76,60,0.10);
}
.fcs-field textarea { resize: vertical; min-height: 100px; }
.fcs-field-hint {
    font-size: 0.78rem;
    color: var(--fcs-forge-muted);
    margin: 0;
}

/* ── Section Divider ────────────────────────────────────── */
.fcs-section-divider {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fcs-forge-steel);
    margin: 0.5rem 0 0;
    padding: 0.5rem 0;
    border-top: 1px dashed var(--fcs-forge-border);
}

/* ── Before/After Hint ──────────────────────────────────── */
.fcs-before-after-hint {
    background: linear-gradient(135deg, #fff8f0, #fff3e6);
    border: 1.5px solid var(--fcs-forge-amber);
    border-radius: var(--fcs-radius);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--fcs-forge-navy);
    line-height: 1.5;
}
.fcs-hint-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── Chip Selects ───────────────────────────────────────── */
.fcs-chip-select { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.fcs-chip-label {
    width: 100%;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fcs-forge-muted);
    margin-bottom: 0;
}
.fcs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border: 1.5px solid var(--fcs-forge-border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--fcs-forge-navy);
    cursor: pointer;
    transition: var(--fcs-transition);
    background: #fff;
    user-select: none;
}
.fcs-chip:hover {
    border-color: var(--fcs-forge-orange);
    color: var(--fcs-forge-orange);
}
.fcs-chip input { display: none; }
.fcs-chip.selected,
.fcs-chip:has(input:checked) {
    background: var(--fcs-forge-orange);
    border-color: var(--fcs-forge-orange);
    color: #fff;
}

/* ── Service Cards ──────────────────────────────────────── */
.fcs-service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.fcs-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    border: 2px solid var(--fcs-forge-border);
    border-radius: var(--fcs-radius);
    cursor: pointer;
    transition: var(--fcs-transition);
    background: #fff;
    text-align: center;
}
.fcs-service-card:hover {
    border-color: var(--fcs-forge-orange);
    box-shadow: 0 4px 16px rgba(232,93,4,0.1);
    transform: translateY(-2px);
}
.fcs-service-card input { display: none; }
.fcs-service-card:has(input:checked) {
    background: linear-gradient(135deg, var(--fcs-forge-orange), var(--fcs-forge-amber));
    border-color: var(--fcs-forge-orange);
    color: #fff;
}
.fcs-service-icon { font-size: 1.75rem; }
.fcs-service-name { font-size: 0.78rem; font-weight: 600; line-height: 1.3; }

/* ── Result Metrics ─────────────────────────────────────── */
.fcs-result-metrics { display: flex; flex-direction: column; gap: 0.6rem; }
.fcs-metric-row {
    display: grid;
    grid-template-columns: 36px 100px 1fr;
    align-items: center;
    gap: 0.75rem;
}
.fcs-metric-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}
.fcs-metric-arrow.fcs-down { background: #fef2f2; color: #e74c3c; }
.fcs-metric-arrow.fcs-up   { background: #f0fdf4; color: #2ecc71; }
.fcs-metric-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fcs-forge-steel);
}
.fcs-metric-row input {
    padding: 0.55rem 0.8rem;
    border: 1.5px solid var(--fcs-forge-border);
    border-radius: var(--fcs-radius);
    font-family: var(--fcs-font-body);
    font-size: 0.88rem;
    color: var(--fcs-forge-navy);
    outline: none;
    transition: var(--fcs-transition);
}
.fcs-metric-row input:focus {
    border-color: var(--fcs-forge-orange);
    box-shadow: 0 0 0 3px rgba(232,93,4,0.1);
}

/* ── Upload Zone ────────────────────────────────────────── */
.fcs-upload-zone {
    border: 2px dashed var(--fcs-forge-border);
    border-radius: var(--fcs-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--fcs-transition);
    background: var(--fcs-forge-light);
}
.fcs-upload-zone.drag-over {
    border-color: var(--fcs-forge-orange);
    background: rgba(232,93,4,0.05);
}
.fcs-upload-inner { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.fcs-upload-icon  { font-size: 2.5rem; }
.fcs-upload-title { font-size: 1rem; font-weight: 600; color: var(--fcs-forge-navy); margin: 0; }
.fcs-upload-sub   { font-size: 0.85rem; color: var(--fcs-forge-muted); margin: 0; }
.fcs-upload-types { font-size: 0.75rem; color: var(--fcs-forge-muted); margin: 0 0 0.75rem; }

.fcs-upload-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: center;
}
.fcs-upload-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #fff;
    border: 1px solid var(--fcs-forge-border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--fcs-forge-navy);
}
.fcs-upload-item .fcs-remove-file {
    cursor: pointer;
    color: var(--fcs-forge-error);
    font-size: 1rem;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
}
.fcs-upload-item.uploading { opacity: 0.6; }
.fcs-upload-item.done { border-color: var(--fcs-forge-success); }
.fcs-upload-item.error { border-color: var(--fcs-forge-error); color: var(--fcs-forge-error); }

/* ── Consent Box ────────────────────────────────────────── */
.fcs-consent-box {
    background: var(--fcs-forge-light);
    border: 1.5px solid var(--fcs-forge-border);
    border-radius: var(--fcs-radius);
    padding: 1.25rem;
}
.fcs-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--fcs-forge-navy);
    line-height: 1.55;
    cursor: pointer;
}
.fcs-consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--fcs-forge-orange);
    cursor: pointer;
}

/* ── Review Summary ─────────────────────────────────────── */
.fcs-review-summary {
    background: linear-gradient(135deg, var(--fcs-forge-navy) 0%, var(--fcs-forge-steel) 100%);
    border-radius: var(--fcs-radius);
    padding: 1.5rem;
    color: #fff;
}
.fcs-review-summary h3 {
    font-family: var(--fcs-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fcs-forge-amber);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.fcs-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.fcs-summary-item { display: flex; flex-direction: column; gap: 0.15rem; }
.fcs-summary-item-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
}
.fcs-summary-item-value {
    font-size: 0.88rem;
    color: #fff;
    font-weight: 500;
}

/* ── Navigation ─────────────────────────────────────────── */
.fcs-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid var(--fcs-forge-light);
}

/* ── Buttons ────────────────────────────────────────────── */
.fcs-btn {
    font-family: var(--fcs-font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border-radius: var(--fcs-radius);
    border: none;
    cursor: pointer;
    transition: var(--fcs-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1;
}
.fcs-btn-next {
    background: linear-gradient(135deg, var(--fcs-forge-orange), var(--fcs-forge-amber));
    color: #fff;
    box-shadow: 0 4px 14px rgba(232,93,4,0.35);
}
.fcs-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,93,4,0.45);
}
.fcs-btn-back {
    background: transparent;
    color: var(--fcs-forge-muted);
    border: 1.5px solid var(--fcs-forge-border);
}
.fcs-btn-back:hover {
    border-color: var(--fcs-forge-steel);
    color: var(--fcs-forge-navy);
}
.fcs-btn-outline {
    background: transparent;
    border: 1.5px solid var(--fcs-forge-orange);
    color: var(--fcs-forge-orange);
    font-family: var(--fcs-font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: none;
    padding: 0.55rem 1.25rem;
}
.fcs-btn-outline:hover {
    background: var(--fcs-forge-orange);
    color: #fff;
}
.fcs-btn-submit {
    background: linear-gradient(135deg, var(--fcs-forge-navy), var(--fcs-forge-steel));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13,27,42,0.3);
    font-size: 1.05rem;
    padding: 0.85rem 2.25rem;
}
.fcs-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13,27,42,0.4);
}
.fcs-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Success State ──────────────────────────────────────── */
.fcs-success {
    padding: 4rem 2rem;
    text-align: center;
    animation: fcsFadeIn 0.4s ease;
}
.fcs-success-inner { max-width: 480px; margin: 0 auto; }
.fcs-success-icon  { font-size: 4rem; margin-bottom: 1rem; display: block; }
.fcs-success h2 {
    font-family: var(--fcs-font-display);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--fcs-forge-navy);
    margin: 0 0 1rem;
}
.fcs-success p {
    font-size: 1rem;
    color: var(--fcs-forge-muted);
    line-height: 1.6;
    margin: 0 0 2rem;
}
.fcs-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--fcs-forge-navy);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Error Banner ───────────────────────────────────────── */
.fcs-error-banner {
    position: sticky;
    bottom: 0;
    margin: 0;
    padding: 1rem 1.5rem;
    background: var(--fcs-forge-error);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}
.fcs-error-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
    .fcs-panel { padding: 1.5rem 1.25rem 1.25rem; }
    .fcs-col-2, .fcs-col-3 { grid-template-columns: 1fr; }
    .fcs-service-cards { grid-template-columns: 1fr 1fr; }
    .fcs-panel-title { font-size: 1.5rem; }
    .fcs-summary-grid { grid-template-columns: 1fr; }
    .fcs-metric-row { grid-template-columns: 36px 90px 1fr; }
    .fcs-pip-label { display: none; }
    .fcs-step-pip { min-width: 44px; padding: 0.75rem 0.25rem 0.9rem; }
}
