:root{
  --bd:#dcdbe8;
  --red:#e0362c;
}
[hidden]{display:none!important}

/* ---------- QUOTE MODAL ---------- */
.qm{position:fixed;inset:0;z-index:2000;display:flex;padding:32px 16px;overflow-y:auto;overscroll-behavior:contain;
  opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s}
.qm.open{opacity:1;visibility:visible}
.qm-backdrop{position:fixed;inset:0;background:rgba(15,12,60,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.qm-dialog{position:relative;width:100%;max-width:860px;margin:auto;background:#fff;border-radius:20px;
  box-shadow:0 30px 80px rgba(15,12,60,.35);opacity:0;transform:translateY(40px) scale(.94);
  transition:transform .45s cubic-bezier(.2,.9,.3,1.15),opacity .3s ease}
.qm.open .qm-dialog{opacity:1;transform:none}
.qm-close{position:sticky;top:14px;z-index:2;display:grid;place-items:center;width:40px;height:40px;margin:14px 14px -54px auto;
  border-radius:50%;background:var(--soft);color:var(--navy);transition:background .2s,color .2s,transform .3s}
.qm-close:hover{background:var(--navy);color:#fff;transform:rotate(90deg)}
.qm-close svg{width:16px;height:16px}

/* Sections rise in one after another when the modal opens */
.qm.open .qh,.qm.open .quote-card form > :not(.cblock){animation:qFadeUp .5s ease backwards}
.qm.open .qh{animation-delay:.1s}
.qm.open .quote-card form > :nth-child(1),.qm.open .quote-card form > :nth-child(2){animation-delay:.16s}
.qm.open .quote-card form > :nth-child(3),.qm.open .quote-card form > :nth-child(4){animation-delay:.22s}
.qm.open .quote-card form > :nth-child(6),.qm.open .quote-card form > :nth-child(7){animation-delay:.28s}
.qm.open .quote-card form > :nth-child(8){animation-delay:.34s}

/* ---------- QUOTE FORM ---------- */
.quote-card{padding:36px}
.quote-card .qh{margin-bottom:24px;padding-right:48px}
.quote-card .qh h2{font-size:28px;color:var(--navy);display:inline-block;position:relative;padding-bottom:10px}
.quote-card .qh h2::after{content:"";position:absolute;left:0;bottom:0;width:56px;height:4px;border-radius:4px;background:var(--yellow)}
.quote-card .qh p{color:var(--muted);margin-top:8px;font-size:14px}
.quote-card .lbl{font-size:12.5px;font-weight:700;color:var(--navy);text-transform:uppercase;letter-spacing:.07em;margin:24px 0 12px}
.quote-card .lbl:first-child{margin-top:0}
.quote-card .lbl i,.quote-card .f label i{color:var(--red);font-style:normal}
.quote-card .g2{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;align-items:start}
.quote-card .full{grid-column:1/-1}

/* customer / company cards */
.quote-card .who{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.quote-card .who-card{position:relative;display:flex;align-items:center;gap:14px;padding:16px;border:1.5px solid var(--bd);border-radius:14px;cursor:pointer;transition:.2s}
.quote-card .who-card input{position:absolute;opacity:0;pointer-events:none}
.quote-card .who-card .ic{width:44px;height:44px;border-radius:12px;background:var(--soft);display:grid;place-items:center;color:var(--navy);flex-shrink:0;transition:.2s}
.quote-card .who-card .ic svg{width:22px;height:22px}
.quote-card .who-card b{display:block;font-size:15px;color:var(--navy)}
.quote-card .who-card small{color:var(--muted);font-size:12.5px}
.quote-card .who-card .radio{margin-left:auto;width:20px;height:20px;border-radius:50%;border:2px solid var(--bd);flex-shrink:0;transition:.2s}
.quote-card .who-card:hover{border-color:#c4c1ea}
.quote-card .who-card:has(input:checked){border-color:var(--navy);background:#f8f7ff;box-shadow:0 0 0 4px rgba(34,28,134,.07)}
.quote-card .who-card:has(input:checked) .ic{background:var(--navy);color:var(--yellow)}
.quote-card .who-card:has(input:checked) .radio{border:6px solid var(--navy)}
.quote-card .who-card:has(input:focus-visible){outline:2px solid var(--navy);outline-offset:2px}

.quote-card .cblock{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .35s ease,opacity .3s}
.quote-card .cblock.open{grid-template-rows:1fr;opacity:1}
.quote-card .cblock > div{overflow:hidden}
.quote-card .cblock .g2{padding-top:14px}

/* floating-label fields */
.quote-card .f{position:relative}
.quote-card .f input,.quote-card .f textarea{width:100%;height:54px;border:1.5px solid var(--bd);border-radius:12px;padding:22px 40px 6px 14px;
  font:inherit;font-size:15px;color:var(--text);background:#fff;outline:none;transition:border-color .2s,box-shadow .2s,background .2s}
.quote-card .f textarea{height:120px;resize:vertical;padding-top:26px;line-height:1.5}
.quote-card .f label{position:absolute;left:14px;top:17px;font-size:15px;color:var(--muted);pointer-events:none;transition:.18s ease}
.quote-card .f input:focus ~ label,.quote-card .f input:not(:placeholder-shown) ~ label,
.quote-card .f textarea:focus ~ label,.quote-card .f textarea:not(:placeholder-shown) ~ label{top:7px;font-size:11px;font-weight:700;color:var(--navy);letter-spacing:.02em}
.quote-card .f input:focus,.quote-card .f textarea:focus{border-color:var(--navy);box-shadow:0 0 0 4px rgba(34,28,134,.1)}
/* +91 country-code box, joined to the left edge of the mobile field */
.quote-card .f.pre input{padding-left:88px}
.quote-card .f.pre label{left:88px}
.quote-card .f .px{position:absolute;left:1.5px;top:1.5px;width:74px;height:51px;display:flex;align-items:center;justify-content:center;gap:7px;
  border-right:1.5px solid var(--bd);border-radius:10.5px 0 0 10.5px;background:var(--soft);font-size:15px;font-weight:700;color:var(--navy);
  transition:border-color .2s,background .2s}
.quote-card .f .px::before{content:"";width:18px;height:12px;border-radius:2px;box-shadow:0 0 0 1px rgba(15,12,60,.1);
  background:linear-gradient(#ff9933 33.3%,#fff 33.3% 66.6%,#138808 66.6%)}
.quote-card .f.pre:focus-within .px{border-color:var(--navy);background:#ecebfb}
.quote-card .f.bad .px{border-color:var(--red);background:#fdeeed}
.quote-card .f.ok .px{border-color:var(--green)}
/* Error text takes no room until there is an error, then slides open */
.quote-card .f small{display:block;max-height:0;opacity:0;overflow:hidden;font-size:12px;line-height:16px;color:var(--red);padding:0 4px;
  transform:translateY(-4px);transition:max-height .25s ease,opacity .2s,transform .25s ease,padding .25s ease}
.quote-card .f.bad small{max-height:36px;opacity:1;padding-top:5px;transform:none}
.quote-card .f .cnt{position:absolute;right:12px;bottom:10px;font-size:11px;color:var(--muted)}
.quote-card .f.bad input,.quote-card .f.bad textarea{border-color:var(--red);background:#fffafa}
.quote-card .f.ok input{border-color:var(--green)}
.quote-card .f.ok::after{content:"";position:absolute;right:14px;top:19px;width:16px;height:16px;animation:qPop .35s cubic-bezier(.2,.9,.3,1.6);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%231fa855'/%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.7' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")}

/* product dropdown */
.quote-card .f select{width:100%;height:54px;border:1.5px solid var(--bd);border-radius:12px;padding:22px 40px 6px 14px;
  font:inherit;font-size:15px;color:var(--text);outline:none;appearance:none;cursor:pointer;transition:border-color .2s,box-shadow .2s;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23221c86' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center}
.quote-card .f select:focus{border-color:var(--navy);box-shadow:0 0 0 4px rgba(34,28,134,.1)}
.quote-card .f.sel.filled label,.quote-card .f select:focus ~ label{top:7px;font-size:11px;font-weight:700;color:var(--navy);letter-spacing:.02em}
.quote-card .f.bad select{border-color:var(--red);background-color:#fffafa}
.quote-card .f.ok select{border-color:var(--green)}
.quote-card .f.sel.ok::after{right:36px}

/* quantity stepper */
.quote-card .qty{display:flex;align-items:center;height:54px;border:1.5px solid var(--bd);border-radius:12px;padding:0 6px 0 14px;background:#fff;transition:.2s}
.quote-card .qty:focus-within{border-color:var(--navy);box-shadow:0 0 0 4px rgba(34,28,134,.1)}
.quote-card .qty span{font-size:15px;color:var(--muted);margin-right:auto}
.quote-card .qty span i{color:var(--red);font-style:normal}
.quote-card .stp{display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:var(--soft)}
.quote-card .qty button{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;background:#fff;color:var(--navy);
  box-shadow:0 1px 3px rgba(15,12,60,.14);transition:background .2s,color .2s,transform .15s,opacity .2s,box-shadow .2s}
.quote-card .qty button svg{width:14px;height:14px}
.quote-card .qty button:hover{background:var(--navy);color:#fff;box-shadow:0 4px 10px rgba(34,28,134,.3)}
.quote-card .qty button:active{transform:scale(.88)}
.quote-card .qty button:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.quote-card .qty button:disabled{opacity:.45;box-shadow:none;background:transparent;color:var(--muted);cursor:not-allowed;transform:none}
.quote-card .qty input{width:46px;height:32px;border:0;padding:0;outline:none;text-align:center;font:inherit;font-weight:800;font-size:16px;color:var(--navy);-moz-appearance:textfield;background:transparent;box-shadow:none}
.quote-card .qty input:focus{box-shadow:none}
.quote-card .qty input::-webkit-outer-spin-button,.quote-card .qty input::-webkit-inner-spin-button{-webkit-appearance:none}
/* The number rolls up or down each time it changes */
.quote-card .qty input.up{animation:qRollUp .25s cubic-bezier(.2,.8,.2,1)}
.quote-card .qty input.down{animation:qRollDown .25s cubic-bezier(.2,.8,.2,1)}
@keyframes qRollUp{from{opacity:0;transform:translateY(9px)}}
@keyframes qRollDown{from{opacity:0;transform:translateY(-9px)}}
@keyframes qPop{from{opacity:0;transform:scale(0)}}

/* button + states */
.quote-card .actions{margin-top:20px}
.quote-card .btn{display:inline-flex;align-items:center;gap:10px;height:52px;padding:0 30px;border-radius:999px;background:var(--navy);color:#fff;font-weight:700;font-size:15px;transition:.2s}
.quote-card .btn:hover{background:#2e27a8;transform:translateY(-1px);box-shadow:0 10px 22px rgba(34,28,134,.25)}
.quote-card .btn svg{width:16px;height:16px;transition:transform .2s}
.quote-card .btn:hover svg{transform:translateX(3px)}
.quote-card .btn.ghost{background:#fff;color:var(--navy);border:1.5px solid var(--bd)}
.quote-card .btn.ghost:hover{border-color:var(--navy);box-shadow:none}
.quote-card .btn .spin{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:qSpin .7s linear infinite}
.quote-card .btn.loading{pointer-events:none;opacity:.85}
.quote-card .btn.loading .spin{display:inline-block}
.quote-card .btn.loading svg{display:none}
.quote-card .shake{animation:qShake .4s}
@keyframes qSpin{to{transform:rotate(360deg)}}
@keyframes qShake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@keyframes qFadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

.quote-card .done{text-align:center;padding:40px 10px;animation:qFadeUp .4s}
.quote-card .done svg{width:86px;height:86px}
.quote-card .done circle{fill:#e8f7ee}
.quote-card .done path{stroke:var(--green);stroke-width:4;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:qDraw .5s .2s forwards}
@keyframes qDraw{to{stroke-dashoffset:0}}
.quote-card .done h3{color:var(--navy);font-size:24px;margin:16px 0 6px}
.quote-card .done p{color:var(--muted);margin-bottom:22px}

@media (prefers-reduced-motion:reduce){
  .qm,.qm-dialog{transition-duration:.01s}
  .qm.open .qh,.qm.open .quote-card form > :not(.cblock){animation:none}
  .quote-card .qty input,.quote-card .f.ok::after{animation:none}
  .quote-card .f small{transition:none}
}
