/* =========================================================
   SILENT KILLER — QUOTATION PAGE
   MODIFIED CSS
========================================================= */

:root{
    --green:#20a85c;
    --green-dark:#168447;
    --dark:#101513;
    --text:#151b18;
    --muted:#6d7771;
    --line:#e3e8e5;
    --soft:#f5f7f6;
    --white:#ffffff;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    color:var(--text);
    background:#f7f9f8;
}

.site-header{
    background:#101513;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-wrap{
    width:min(1180px,92%);
    margin:auto;
    min-height:72px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

.logo{
    color:#fff;
    text-decoration:none;
    font-weight:900;
    letter-spacing:1.5px;
}

.logo span{
    color:var(--green);
}

nav{
    display:flex;
    align-items:center;
    gap:22px;
}

nav a{
    color:#d9dfdc;
    text-decoration:none;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.7px;
}

nav a:hover,
nav a.active{
    color:var(--green);
}

main{
    width:min(1240px,94%);
    margin:auto;
}

.quote-hero{
    min-height:280px;
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:30px;
    padding:70px 0 42px;
}

.eyebrow,
.section-label{
    margin:0 0 12px;
    color:var(--green);
    font-size:9px;
    font-weight:900;
    letter-spacing:1.5px;
}

.quote-hero h1{
    margin:0;
    font-size:clamp(38px,6vw,72px);
    line-height:.95;
    letter-spacing:-3px;
}

.quote-hero h1 span,
.section-head h2 span,
.price-head h2 span{
    color:var(--green);
}

.hero-copy{
    max-width:590px;
    margin:22px 0 0;
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
}

.hero-status{
    white-space:nowrap;
    display:flex;
    align-items:center;
    gap:9px;
    color:#526058;
    font-size:9px;
    font-weight:900;
    letter-spacing:1px;
}

.hero-status i,
.live-dot{
    width:8px;
    height:8px;
    display:inline-block;
    border-radius:50%;
    background:var(--green);
    box-shadow:0 0 0 5px rgba(32,168,92,.10);
}

.quote-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:28px;
    align-items:start;
}

.quote-form{
    min-width:0;
}

.quote-section{
    background:#fff;
    border:1px solid var(--line);
    padding:27px;
    margin-bottom:18px;
    box-shadow:0 10px 35px rgba(16,21,19,.035);
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    padding-bottom:22px;
    margin-bottom:4px;
    border-bottom:1px solid var(--line);
}

.section-head h2{
    margin:0;
    font-size:23px;
    line-height:1.05;
    letter-spacing:-1px;
}

.step{
    padding:7px 10px;
    border:1px solid #dfe5e1;
    color:#7b857f;
    font-size:8px;
    font-weight:900;
    letter-spacing:1px;
}

.compact-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.field > span{
    color:#4c5751;
    font-size:9px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.7px;
}

.field small{
    color:#87918b;
    font-size:9px;
}

input,
select,
textarea{
    width:100%;
    border:1px solid #dce3df;
    outline:none;
    background:#fafcfb;
    color:var(--text);
    font:inherit;
}

input[type="text"],
input[type="number"],
select,
textarea{
    min-height:45px;
    padding:12px 13px;
    border-radius:4px;
}

textarea{
    min-height:105px;
    resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(32,168,92,.08);
}

.option-row{
    display:grid;
    grid-template-columns:175px minmax(0,1fr);
    gap:20px;
    align-items:center;
    padding:17px 0;
    border-bottom:1px solid #edf0ee;
}

.option-row:last-child{
    border-bottom:0;
}

.option-title{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.option-title strong,
.sub-title strong{
    font-size:11px;
}

.option-title small,
.sub-title small{
    color:#8a948e;
    font-size:9px;
    line-height:1.4;
}

.option-list{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.option-card{
    position:relative;
    cursor:pointer;
}

.option-card input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.option-card span{
    min-height:40px;
    min-width:82px;
    padding:10px 13px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid #dce3df;
    background:#fafcfb;
    color:#4e5953;
    border-radius:4px;
    font-size:9px;
    font-weight:850;
    text-align:center;
    transition:.2s ease;
}

.option-card:hover span{
    border-color:rgba(32,168,92,.5);
    transform:translateY(-1px);
}

.option-card input:checked + span{
    color:#fff;
    background:var(--dark);
    border-color:var(--dark);
    box-shadow:0 8px 20px rgba(16,21,19,.12);
}

.option-card input:checked + span::after{
    content:"✓";
    position:absolute;
    top:-6px;
    right:-6px;
    width:16px;
    height:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--green);
    color:#fff;
    font-size:8px;
    font-weight:900;
}

.sub-option-row{
    display:grid;
    grid-template-columns:175px 1fr;
    gap:20px;
    align-items:center;
    padding:19px 0 5px;
}

.dimension-controls{
    display:flex;
    align-items:flex-end;
    flex-wrap:wrap;
    gap:9px;
}

.dimension-controls > label{
    display:flex;
    flex-direction:column;
    gap:6px;
    color:#68736c;
    font-size:9px;
    font-weight:800;
}

.dimension-controls input{
    width:110px;
}

.dimension-controls > span{
    padding-bottom:13px;
    color:#89938d;
    font-weight:900;
}

.dimension-preset{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}

.dimension-preset button{
    min-height:45px;
    padding:0 12px;
    border:1px solid #dce3df;
    background:#fff;
    color:#526058;
    cursor:pointer;
    border-radius:4px;
    font-size:9px;
    font-weight:900;
}

.dimension-preset button:hover{
    color:var(--green);
    border-color:var(--green);
}

.assembly-box{
    margin-top:18px;
    border:1px solid #dfe6e1;
    background:#fafcfb;
}

.assembly-toggle{
    display:flex;
    gap:12px;
    padding:17px;
    cursor:pointer;
}

.assembly-toggle input{
    width:auto;
    accent-color:var(--green);
}

.assembly-toggle span{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.assembly-toggle b{
    font-size:10px;
    letter-spacing:.5px;
}

.assembly-toggle small{
    color:#87918b;
    font-size:9px;
}

.assembly-options{
    padding:0 17px 17px;
}

.advanced-intro{
    display:flex;
    flex-direction:column;
    gap:5px;
    margin:18px 0;
    padding:14px 16px;
    border-left:3px solid var(--green);
    background:var(--soft);
}

.advanced-intro strong{
    font-size:10px;
    letter-spacing:.4px;
    text-transform:uppercase;
}

.advanced-intro small{
    color:var(--muted);
    font-size:9px;
}

.advanced-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
    margin-bottom:18px;
}

.assembly-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.assembly-grid label,
.component-categories label{
    display:flex;
    flex-direction:column;
    gap:7px;
    color:#58635d;
    font-size:9px;
    font-weight:850;
}

.netlist-upload,
.upload-box{
    margin-top:15px;
    padding:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    border:1px dashed #cbd5cf;
    background:#fff;
}

.netlist-upload > div,
.upload-box > div{
    display:flex;
    flex-direction:column;
    gap:5px;
}

.netlist-upload strong,
.upload-box strong{
    font-size:9px;
}

.netlist-upload small,
.upload-box small{
    color:#87918b;
    font-size:8px;
}

.upload-btn{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 14px;
    color:#fff;
    background:var(--dark);
    border:1px solid var(--dark);
    border-radius:4px;
    cursor:pointer;
    font-size:8px;
    font-weight:900;
    letter-spacing:.7px;
    transition:background .2s ease, border-color .2s ease, transform .2s ease;
}

.upload-btn:hover{
    background:var(--green);
    border-color:var(--green);
    transform:translateY(-1px);
}

.upload-btn input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}

.component-categories{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-top:15px;
}

.form-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding:4px 0 35px;
}

.premium-btn{
    min-height:44px;
    padding:0 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    border-radius:6px;
    cursor:pointer;
    font-size:9px;
    font-weight:950;
    letter-spacing:.8px;
    box-shadow:0 5px 14px rgba(16,21,19,.08);
    transition:.2s ease;
}

.premium-btn span{
    font-size:14px;
}

.premium-btn.primary{
    color:#fff;
    background:var(--dark);
    border:1px solid var(--dark);
}

.premium-btn.primary:hover{
    background:var(--green);
    border-color:var(--green);
    transform:translateY(-2px);
}

.premium-btn:focus-visible,
.dimension-preset button:focus-visible,
.upload-btn:focus-within{
    outline:3px solid rgba(32,168,92,.25);
    outline-offset:2px;
}

.premium-btn.secondary{
    color:var(--dark);
    background:#fff;
    border:1px solid #d9e0dc;
}

.premium-btn.secondary:hover{
    color:var(--green);
    border-color:var(--green);
    transform:translateY(-2px);
}

.premium-btn.full{
    width:100%;
}

.price-panel{
    position:sticky;
    top:20px;
}

.price-panel-inner{
    overflow:hidden;
    color:#eaf0ec;
    background:#101513;
    border:1px solid #202a25;
    box-shadow:0 18px 50px rgba(16,21,19,.13);
}

.price-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    padding:23px 20px;
    border-bottom:1px solid #26302b;
}

.price-head h2{
    margin:0;
    color:#fff;
    font-size:22px;
    letter-spacing:-.8px;
}

.price-main{
    padding:26px 20px;
    border-bottom:1px solid #26302b;
}

.price-main small{
    display:block;
    color:#7e8b84;
    font-size:8px;
    font-weight:900;
    letter-spacing:1px;
}

.price-main strong{
    display:block;
    margin:8px 0;
    color:#fff;
    font-size:38px;
    line-height:1;
    letter-spacing:-1.5px;
}

.price-main span{
    color:#77837c;
    font-size:8px;
}

.price-summary{
    padding:6px 20px;
}

.price-row{
    min-height:45px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid rgba(255,255,255,.06);
    transition:.2s ease;
}

.price-row:hover{
    padding-left:4px;
    padding-right:4px;
    background:rgba(255,255,255,.025);
}

.price-row span{
    color:#89958e;
    font-size:9px;
}

.price-row b{
    max-width:60%;
    color:#e5ebe7;
    font-size:10px;
    text-align:right;
}

#priceBoardType,
#priceFpt,
#priceBbt{
    color:var(--green);
}

#priceFpt,
#priceBbt{
    font-weight:950;
    text-transform:uppercase;
}

.price-total{
    margin:10px 16px;
    padding:17px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    background:linear-gradient(135deg,rgba(32,168,92,.18),rgba(32,168,92,.04));
    border:1px solid rgba(32,168,92,.35);
}

.price-total > div{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.price-total span{
    color:#aab5ae;
    font-size:8px;
    font-weight:900;
    letter-spacing:.8px;
}

.price-total small{
    color:#68756d;
    font-size:7px;
}

.price-total strong{
    color:#fff;
    font-size:22px;
    letter-spacing:-.7px;
}

.tier-box{
    position:relative;
    margin:0 16px 16px;
    padding:14px 16px;
    overflow:hidden;
    background:#151c19;
    border:1px solid #27322d;
}

.tier-box::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:2px;
    background:var(--green);
}

.tier-box p{
    margin:0 0 7px;
    color:#718078;
    font-size:7px;
    font-weight:900;
    letter-spacing:1px;
}

.tier-box strong{
    display:block;
    color:#f0f4f1;
    font-size:10px;
}

.tier-box small{
    display:block;
    margin-top:7px;
    color:#6f7b74;
    font-size:8px;
    line-height:1.5;
}

.price-panel .premium-btn{
    margin:0 16px;
    width:calc(100% - 32px);
}

.panel-note{
    margin:14px 20px 20px;
    color:#69756e;
    font-size:8px;
    line-height:1.6;
}

.final-grid{
    margin-top:17px;
}

.notes-field{
    align-items:start;
}


/* =========================================================
   FOOTER
========================================================= */

.footer{
    margin-top:42px;
    color:#b6c0ba;
    background:var(--dark);
}

.footer-grid{
    width:min(1240px,94%);
    margin:auto;
    display:grid;
    grid-template-columns:minmax(220px,1.8fr) repeat(3,1fr);
    gap:34px;
    padding:48px 0 38px;
}

.footer-brand .logo{
    display:inline-block;
    margin-bottom:13px;
    font-size:14px;
}

.footer-brand p{
    max-width:230px;
    margin:0;
    color:#77837c;
    font-size:11px;
    line-height:1.65;
}

.footer-column{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}

.footer-column h4{
    margin:0 0 5px;
    color:#fff;
    font-size:10px;
    font-weight:900;
    letter-spacing:1px;
    text-transform:uppercase;
}

.footer-column a,
.footer-column p{
    margin:0;
    color:#89958e;
    font-size:10px;
    line-height:1.5;
    text-decoration:none;
    transition:color .2s ease, transform .2s ease;
}

.footer-column a:hover{
    color:var(--green);
    transform:translateX(3px);
}

.footer-contact a::before{
    content:"✉";
    margin-right:7px;
    color:var(--green);
}

.footer-contact p::before{
    content:"•";
    margin-right:7px;
    color:var(--green);
}

.footer-bottom{
    width:min(1240px,94%);
    margin:auto;
    padding:17px 0;
    color:#66736b;
    border-top:1px solid #26302b;
    font-size:9px;
    font-weight:800;
    letter-spacing:.4px;
}


/* =========================================================
   NEW STEP 02 OPTIONS
========================================================= */

.option-row:has(input[name="soldermask"]),
.option-row:has(input[name="silkscreen"]),
.option-row:has(input[name="fpt"]),
.option-row:has(input[name="bbt"]),
.option-row:has(input[name="surfaceFinish"]){
    background:linear-gradient(
        90deg,
        rgba(32,168,92,.018),
        transparent
    );
}

.option-row:has(input[name="surfaceFinish"]) .option-list{
    gap:7px;
}

.option-row:has(input[name="surfaceFinish"]) .option-card span{
    min-width:105px;
}


/* =========================================================
   DELIVERY
========================================================= */

#delivery{
    cursor:pointer;
    font-size:10px;
    font-weight:750;
}

#delivery option{
    color:var(--text);
    background:#fff;
    font-size:11px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1050px){
    .quote-layout{
        grid-template-columns:1fr;
    }

    .price-panel{
        position:relative;
        top:auto;
    }

    .price-panel-inner{
        max-width:600px;
        margin:auto;
    }
}

@media(max-width:760px){
    .nav-wrap{
        min-height:auto;
        padding:18px 0;
        flex-direction:column;
        align-items:flex-start;
    }

    nav{
        width:100%;
        overflow-x:auto;
        padding-bottom:3px;
        gap:16px;
    }

    .quote-hero{
        min-height:auto;
        padding:48px 0 30px;
        flex-direction:column;
        align-items:flex-start;
    }

    .quote-hero h1{
        letter-spacing:-2px;
    }

    .quote-section{
        padding:20px 16px;
    }

    .compact-grid,
    .assembly-grid,
    .advanced-grid{
        grid-template-columns:1fr;
    }

    .option-row,
    .sub-option-row{
        grid-template-columns:1fr;
        gap:12px;
    }

    .option-title small,
    .sub-title small{
        max-width:none;
    }

    .component-categories{
        grid-template-columns:1fr 1fr;
    }

    .netlist-upload,
    .upload-box{
        align-items:flex-start;
        flex-direction:column;
    }

    .form-actions{
        flex-direction:column-reverse;
    }

    .form-actions .premium-btn{
        width:100%;
    }

    .footer-grid{
        grid-template-columns:1fr 1fr;
        gap:30px 20px;
        padding:38px 0 30px;
    }

    .footer-brand{
        grid-column:1 / -1;
    }
}

@media(max-width:480px){
    main{
        width:94%;
    }

    .quote-hero h1{
        font-size:42px;
    }

    .section-head h2{
        font-size:20px;
    }

    .step{
        font-size:7px;
    }

    .option-list{
        gap:6px;
    }

    .option-card span{
        min-width:72px;
        min-height:38px;
        padding:8px 9px;
        font-size:8px;
    }

    .option-row:has(input[name="surfaceFinish"]) .option-card span{
        min-width:88px;
        font-size:7.5px;
    }

    .dimension-controls{
        align-items:stretch;
    }

    .dimension-controls input{
        width:100%;
    }

    .dimension-controls > label{
        flex:1;
    }

    .dimension-preset{
        width:100%;
    }

    .dimension-preset button{
        flex:1;
    }

    .component-categories{
        grid-template-columns:1fr;
    }

    .price-row{
        min-height:43px;
    }

    .price-row b{
        max-width:55%;
        font-size:9px;
    }

    .price-total strong{
        font-size:19px;
    }

    .footer-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

    .footer-brand{
        grid-column:auto;
    }
}
