/* ================================================================
   Workers' Compensation Calculator — workers-comp.css
   Mobile-first. Scoped to .wc-wrap
   ================================================================ */

.wc-wrap *, .wc-wrap *::before, .wc-wrap *::after {
    box-sizing: border-box; margin: 0; padding: 0;
}
.wc-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px; color: #1e293b;
    max-width: 960px; margin: 0 auto;
    background: #fff; border-radius: 16px;
    border: 1px solid #e2e8f0; overflow: hidden;
}

/* ── Header ───────────────────────────────────────────────── */
.wc-header {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 24px; background: #064e3b;
}
.wc-header-icon {
    width: 44px; height: 44px; background: rgba(255,255,255,.12);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; color: #6ee7b7; flex-shrink: 0;
}
.wc-title    { font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.wc-subtitle { font-size: 12.5px; color: #6ee7b7; }

/* ── Layout ───────────────────────────────────────────────── */
.wc-body { display: flex; flex-direction: column; }
@media (min-width: 720px) {
    .wc-body    { flex-direction: row; align-items: flex-start; }
    .wc-form    { width: 52%; border-right: 1px solid #e2e8f0; }
    .wc-results { width: 48%; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; }
}

/* ── Form ─────────────────────────────────────────────────── */
.wc-form { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.wc-field { display: flex; flex-direction: column; gap: 6px; }
.wc-label { font-size: 12px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .05em; }
.wc-hint  { font-size: 11.5px; color: #94a3b8; }
.wc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 400px) { .wc-row-2 { grid-template-columns: 1fr; } }

/* Select */
.wc-select {
    width: 100%; padding: 10px 32px 10px 14px; height: 46px;
    border: 1.5px solid #cbd5e1; border-radius: 10px;
    font-size: 14px; color: #1e293b; background: #f8fafc;
    appearance: none; outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    transition: border-color .18s;
}
.wc-select:focus { border-color: #059669; background-color: #fff; }

/* Button groups */
.wc-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.wc-choice {
    flex: 1; min-width: 80px; padding: 10px 12px; text-align: center;
    border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: #f8fafc; font-size: 13px; font-weight: 600;
    color: #475569; cursor: pointer; transition: all .15s;
}
.wc-choice:hover  { border-color: #059669; color: #059669; }
.wc-choice.active { background: #064e3b; border-color: #064e3b; color: #fff; }

/* Disability grid */
.wc-disability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wc-dis-btn {
    display: flex; flex-direction: column; gap: 3px;
    padding: 11px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    background: #f8fafc; text-align: left; cursor: pointer;
    transition: all .15s;
}
.wc-dis-btn:hover  { border-color: #059669; background: #f0fdf4; }
.wc-dis-btn.active { border-color: #059669; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(5,150,105,.1); }
.wc-dis-name { font-size: 12.5px; font-weight: 700; color: #1e293b; }
.wc-dis-desc { font-size: 11px; color: #64748b; line-height: 1.4; }

/* Inputs */
.wc-prefix-wrap, .wc-suffix-wrap {
    display: flex; align-items: center;
    border: 1.5px solid #cbd5e1; border-radius: 10px;
    overflow: hidden; background: #f8fafc; transition: border-color .18s;
}
.wc-prefix-wrap:focus-within,
.wc-suffix-wrap:focus-within { border-color: #059669; background: #fff; }
.wc-prefix, .wc-suffix {
    padding: 0 12px; font-size: 14px; font-weight: 600; color: #64748b;
    background: #f1f5f9; height: 46px; display: flex; align-items: center; flex-shrink: 0;
}
.wc-prefix { border-right: 1px solid #e2e8f0; }
.wc-suffix { border-left: 1px solid #e2e8f0; }
.wc-input {
    flex: 1; border: none; background: transparent; padding: 0 14px;
    height: 46px; font-size: 14px; color: #1e293b; outline: none;
    -moz-appearance: textfield; min-width: 0;
}
.wc-input::-webkit-outer-spin-button,
.wc-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Disclaimer */
.wc-disclaimer {
    display: flex; align-items: flex-start; gap: 8px;
    background: #fefce8; border: 1px solid #fde047;
    border-radius: 9px; padding: 10px 14px;
    font-size: 12.5px; color: #854d0e; line-height: 1.5;
}
.wc-disclaimer svg { flex-shrink: 0; margin-top: 1px; color: #ca8a04; }

/* ── Results ──────────────────────────────────────────────── */
.wc-results { background: #f8fafc; padding: 20px; }

.wc-placeholder {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 280px; gap: 14px;
    color: #94a3b8; text-align: center;
}
.wc-placeholder p { font-size: 13.5px; line-height: 1.6; max-width: 220px; }

/* Hero */
.wc-hero {
    background: #064e3b; border-radius: 14px;
    padding: 22px; text-align: center; margin-bottom: 14px;
}
.wc-hero-label  { font-size: 11px; font-weight: 700; color: #6ee7b7; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.wc-hero-amount { font-size: 52px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.wc-hero-sub    { font-size: 12px; color: #6ee7b7; margin-top: 6px; }

/* Numbers grid */
.wc-numbers {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px;
}
.wc-num-card {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 10px; padding: 12px;
}
.wc-num-label { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.wc-num-val   { font-size: 18px; font-weight: 700; color: #1e293b; }
.wc-num-highlight { border-color: #6ee7b7; background: #f0fdf4; }
.wc-num-highlight .wc-num-val { color: #064e3b; }

/* Settlement */
.wc-settlement {
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; padding: 16px; margin-bottom: 12px;
}
.wc-settlement-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-bottom: 12px; }
.wc-set-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.wc-set-row:last-of-type { border-bottom: none; }
.wc-set-lump { background: #f0fdf4; margin: 0 -16px; padding: 10px 16px; border-radius: 0 0 12px 12px; }
.wc-set-label { font-size: 13px; color: #475569; flex: 1; }
.wc-set-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.wc-set-sub   { font-size: 11px; color: #94a3b8; }
.wc-set-val   { font-size: 15px; font-weight: 700; color: #1e293b; }
.wc-set-highlight { color: #064e3b; font-size: 17px; }
.wc-set-note  { font-size: 11.5px; color: #94a3b8; margin-top: 10px; line-height: 1.6; border-top: 1px solid #f1f5f9; padding-top: 10px; }

/* Capped notice */
.wc-capped {
    display: flex; gap: 8px; align-items: flex-start;
    background: #fff7ed; border: 1px solid #fdba74;
    border-radius: 9px; padding: 10px 14px;
    font-size: 12.5px; color: #9a3412;
}
.wc-capped svg { flex-shrink: 0; margin-top: 1px; color: #ea580c; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 480px) {
    .wc-header  { padding: 16px; }
    .wc-form, .wc-results { padding: 16px; }
    .wc-title   { font-size: 16px; }
    .wc-hero-amount { font-size: 42px; }
    .wc-disability-grid { grid-template-columns: 1fr 1fr; }
    .wc-numbers { grid-template-columns: 1fr 1fr; }
}
