/* =========================================================================
   Sundal RFQ — quote page stylesheet.

   Extracted verbatim from mu-plugins/assets/sundal-custom.css (lines 220-377)
   so the feature ships with its own styles and can migrate on its own. That
   shared file is ~57KB of whole-site CSS (header, footer, shop, PDP, wishlist)
   and must never travel to production, where a different theme would collide
   with all of it.

   Everything is scoped under #sundal-rfq. The design tokens are redefined
   inside that scope rather than inherited, which is what makes the block
   self-contained — verified: no var() in here is defined elsewhere.

   Design source: design-mockups/get-a-quote.html
   ========================================================================= */

#sundal-rfq{
  --blue:#0481BB; --blue-deep:#045E86; --blue-light:#0E95D4;
  --navy:#0E2532; --ink:#243743; --gray:#5F6E79; --muted:#8A9AA6;
  --line:#E3EAEF; --line-soft:#EDF2F6;
  --bg:#F4F8FB; --tint:#EAF3F9; --tint-2:#F0F6FB;
  --radius:12px; --radius-sm:8px;
  --shadow:0 2px 10px rgba(14,37,50,.05); --shadow-md:0 8px 24px rgba(14,37,50,.08);
  --instrument:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%239DB6C6' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='34' cy='76' r='9'/%3E%3Ccircle cx='66' cy='76' r='9'/%3E%3Cpath d='M41 69 L71 20'/%3E%3Cpath d='M59 69 L29 20'/%3E%3C/g%3E%3Ccircle cx='50' cy='49' r='2.6' fill='%239DB6C6'/%3E%3C/svg%3E");
  font-family:'Ubuntu',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--ink); font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
#sundal-rfq *{box-sizing:border-box}
#sundal-rfq a{color:inherit;text-decoration:none}
/* force the approved Ubuntu family (site uses Ubuntu for headings; raw tags would fall back to the theme font) */
#sundal-rfq, #sundal-rfq h1, #sundal-rfq h2, #sundal-rfq h3, #sundal-rfq h4, #sundal-rfq h5, #sundal-rfq h6, #sundal-rfq p, #sundal-rfq a, #sundal-rfq span, #sundal-rfq b, #sundal-rfq label, #sundal-rfq input, #sundal-rfq select, #sundal-rfq textarea, #sundal-rfq button, #sundal-rfq li, #sundal-rfq small{font-family:'Ubuntu',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif !important}
#sundal-rfq .rfq-ic{flex:none;display:inline-flex;align-items:center;color:var(--blue)}
#sundal-rfq .wrap{max-width:1280px;margin:0 auto;padding:0 24px}
#sundal-rfq .mono-eyebrow{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--blue)}

/* buttons */
#sundal-rfq .btn{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:13px;letter-spacing:.7px;text-transform:uppercase;padding:13px 24px;border-radius:var(--radius-sm);border:2px solid transparent;cursor:pointer;transition:.2s;white-space:nowrap;text-decoration:none}
#sundal-rfq .btn svg{width:16px;height:16px}
#sundal-rfq .btn-primary{background:var(--blue);color:#fff}
#sundal-rfq .btn-primary:hover{background:var(--blue-deep);color:#fff}
#sundal-rfq .btn-outline{background:transparent;border-color:var(--line);color:var(--navy)}
#sundal-rfq .btn-outline:hover{border-color:var(--blue);color:var(--blue)}
#sundal-rfq .btn-block{width:100%;justify-content:center}

/* breadcrumb + hero bands: block-level, fill the full-width page body (no 100vw → no scrollbar overflow) */
#sundal-rfq .crumbs,#sundal-rfq .arch-head{width:auto}
#sundal-rfq .crumbs{background:var(--bg);border-bottom:1px solid var(--line)}
#sundal-rfq .crumbs .wrap{display:flex;align-items:center;gap:9px;height:52px;font-size:13.5px;color:var(--gray)}
#sundal-rfq .crumbs a:hover{color:var(--blue)}
#sundal-rfq .crumbs .sep{color:var(--muted)}
#sundal-rfq .crumbs .cur{color:var(--navy);font-weight:500}
#sundal-rfq .arch-head{background:linear-gradient(120deg,var(--tint) 0%,var(--tint-2) 60%,#fff 100%);border-bottom:1px solid var(--line)}
#sundal-rfq .arch-head .wrap{padding:34px 24px 28px}
#sundal-rfq .arch-head .mono-eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:12px}
#sundal-rfq .arch-head .mono-eyebrow:before{content:"";width:26px;height:2px;background:var(--blue)}
#sundal-rfq .arch-head h1{margin:0;font-size:38px;line-height:1.15;color:var(--navy);font-weight:700}
#sundal-rfq .arch-head p{margin:12px 0 0;max-width:660px;color:var(--gray);font-size:15.5px}
#sundal-rfq .arch-head .stat{margin-top:18px;display:inline-flex;gap:8px;align-items:center;font-size:14px;color:var(--navy);background:#fff;border:1px solid var(--line);padding:7px 16px;border-radius:100px;font-weight:500}
#sundal-rfq .arch-head .stat b{color:var(--blue)}
#sundal-rfq .arch-head .stat svg{width:16px;height:16px;color:var(--blue)}

/* certification badges */
#sundal-rfq .badges{display:flex;gap:12px;flex-wrap:wrap}
#sundal-rfq .badges .b{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 14px;font-size:12.5px;font-weight:500;color:var(--navy)}
#sundal-rfq .badges .b i{width:26px;height:26px;border-radius:50%;background:var(--tint);color:var(--blue);display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:700;font-size:11px}

/* two-column RFQ body */
#sundal-rfq .quote{display:grid;grid-template-columns:1fr 372px;gap:34px;padding:26px 0 20px;align-items:start}
#sundal-rfq .q-main{display:flex;flex-direction:column;gap:22px;min-width:0}
#sundal-rfq .q-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}
#sundal-rfq .q-phead{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line-soft)}
#sundal-rfq .q-phead h3{margin:0;font-size:15px;font-weight:700;color:var(--navy);display:flex;align-items:center;gap:9px}
#sundal-rfq .q-phead h3 .c{background:var(--tint);color:var(--blue);font-size:12px;font-weight:700;padding:2px 10px;border-radius:100px}
#sundal-rfq .q-phead .link{font-size:12.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--muted);cursor:pointer;background:none;border:none;font-family:inherit}
#sundal-rfq .q-phead .link:hover{color:var(--blue)}
#sundal-rfq .q-item{display:grid;grid-template-columns:78px 1fr auto;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line-soft);align-items:start}
#sundal-rfq .q-item:last-child{border-bottom:none}
#sundal-rfq .q-item .thumb{width:78px;height:78px;border-radius:var(--radius-sm);border:1px solid var(--line);background:var(--tint-2) var(--instrument) center/58% no-repeat}
#sundal-rfq .q-item .qi-spec{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);font-weight:500}
#sundal-rfq .q-item .qi-name{margin:3px 0 4px;font-size:15.5px;font-weight:700;color:var(--navy);line-height:1.3}
#sundal-rfq .q-item .qi-name a:hover{color:var(--blue)}
#sundal-rfq .q-item .qi-sku{font-size:12.5px;color:var(--gray)}
#sundal-rfq .q-opts{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
#sundal-rfq .q-opts select{font-family:inherit;font-size:12.5px;color:var(--navy);border:1.5px solid var(--line);border-radius:var(--radius-sm);padding:8px 12px;background:#fff;outline:none;cursor:pointer}
#sundal-rfq .qi-right{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
#sundal-rfq .qi-qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:var(--radius-sm);overflow:hidden}
#sundal-rfq .qi-qty button{width:34px;height:38px;border:none;background:#F6F9FB;color:var(--navy);font-size:17px;cursor:pointer;display:flex;align-items:center;justify-content:center}
#sundal-rfq .qi-qty button:hover{background:var(--tint);color:var(--blue)}
#sundal-rfq .qi-qty input{width:46px;height:38px;text-align:center;border:none;border-left:1.5px solid var(--line);border-right:1.5px solid var(--line);font-family:inherit;font-size:14px;font-weight:700;color:var(--navy);outline:none}
#sundal-rfq .qi-remove{display:flex;align-items:center;gap:6px;background:none;border:none;font-family:inherit;font-size:12.5px;color:var(--muted);cursor:pointer;padding:0}
#sundal-rfq .qi-remove:hover{color:#D64545}
#sundal-rfq .qi-remove svg{width:12px;height:12px}
#sundal-rfq .q-empty{padding:48px 24px;text-align:center}
#sundal-rfq .q-empty .ic{width:64px;height:64px;margin:0 auto 16px;border-radius:50%;background:var(--tint);color:var(--blue);display:flex;align-items:center;justify-content:center}
#sundal-rfq .q-empty .ic svg{width:30px;height:30px}
#sundal-rfq .q-empty h4{margin:0 0 6px;font-size:18px;color:var(--navy)}
#sundal-rfq .q-empty p{margin:0 0 18px;color:var(--gray);font-size:14px}

/* buyer form */
#sundal-rfq .q-form{padding:20px}
#sundal-rfq .q-note{display:flex;align-items:flex-start;gap:9px;background:var(--bg);border:1px solid var(--line-soft);border-radius:var(--radius-sm);padding:12px 14px;font-size:12.5px;color:var(--gray);margin:0 0 20px}
#sundal-rfq .q-note svg{width:15px;height:15px;flex:none;margin-top:1px;color:var(--blue)}
#sundal-rfq .q-grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#sundal-rfq .q-field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px}
#sundal-rfq .q-field label{font-size:12.5px;font-weight:700;color:var(--navy);letter-spacing:.3px}
#sundal-rfq .q-field label .req{color:#D64545}
#sundal-rfq .q-field input,#sundal-rfq .q-field select,#sundal-rfq .q-field textarea{font-family:inherit;font-size:14px;color:var(--ink);border:1.5px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px;background:#fff;outline:none;transition:.15s;width:100%}
#sundal-rfq .q-field input:focus,#sundal-rfq .q-field select:focus,#sundal-rfq .q-field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(4,129,187,.12)}
#sundal-rfq .q-field textarea{resize:vertical;min-height:104px}
#sundal-rfq .q-check{display:flex;align-items:flex-start;gap:11px;font-size:13.5px;color:var(--ink);cursor:pointer;margin-top:4px}
#sundal-rfq .q-check input{width:18px;height:18px;margin-top:1px;accent-color:var(--blue);flex:none}

/* sticky summary rail */
#sundal-rfq .q-side{position:sticky;top:18px;display:flex;flex-direction:column;gap:16px}
#sundal-rfq .q-sum{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-md);overflow:hidden}
#sundal-rfq .q-sum-head{background:linear-gradient(140deg,var(--blue-deep),var(--blue));color:#fff;padding:20px}
#sundal-rfq .q-sum-head h4{margin:0 0 2px;font-size:17px;color:#fff}
#sundal-rfq .q-sum-head p{margin:0;font-size:12.5px;color:rgba(255,255,255,.85)}
#sundal-rfq .q-sum-body{padding:18px 20px}
#sundal-rfq .q-row{display:flex;align-items:center;justify-content:space-between;font-size:14px;padding:9px 0;border-bottom:1px solid var(--line-soft)}
#sundal-rfq .q-row:last-of-type{border-bottom:none}
#sundal-rfq .q-row span{color:var(--gray)}
#sundal-rfq .q-row b{color:var(--navy)}
#sundal-rfq .q-sum .btn-block{margin-top:14px;padding:15px}
#sundal-rfq .q-reassure{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:12px;font-size:12px;color:var(--gray)}
#sundal-rfq .q-reassure .dot{width:7px;height:7px;border-radius:50%;background:#4FB477}
#sundal-rfq .q-steps{list-style:none;margin:0;padding:0;counter-reset:s}
#sundal-rfq .q-steps li{position:relative;padding:0 0 16px 40px;counter-increment:s;font-size:13px;color:var(--gray);line-height:1.5}
#sundal-rfq .q-steps li:last-child{padding-bottom:0}
#sundal-rfq .q-steps li:before{content:counter(s);position:absolute;left:0;top:-2px;width:26px;height:26px;border-radius:50%;background:var(--tint);color:var(--blue);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center}
#sundal-rfq .q-steps li:not(:last-child):after{content:"";position:absolute;left:12.5px;top:26px;bottom:2px;width:1.5px;background:var(--line)}
#sundal-rfq .q-steps li b{display:block;color:var(--navy);font-size:13.5px;margin-bottom:1px}
#sundal-rfq .q-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}
#sundal-rfq .q-card>h5{margin:0 0 14px;font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--navy)}
#sundal-rfq .q-alt{display:flex;flex-direction:column;gap:10px}
#sundal-rfq .q-alt a{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:var(--radius-sm);padding:11px 14px;font-size:13.5px;color:var(--navy);font-weight:500;transition:.15s}
#sundal-rfq .q-alt a:hover{border-color:var(--blue);color:var(--blue);background:var(--tint-2)}
#sundal-rfq .q-alt a .em{width:20px;height:20px;flex:none;color:var(--blue)}
#sundal-rfq .q-alt a:hover .em{color:var(--blue)}
#sundal-rfq .q-alt a small{display:block;font-size:11px;color:var(--muted);font-weight:400}
#sundal-rfq .q-card .badges{margin:0}

/* thank-you state */
#sundal-rfq #quote-thanks{display:none}
#sundal-rfq .thanks{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-md);padding:52px 40px;text-align:center;max-width:720px;margin:14px auto 40px}
#sundal-rfq .thanks .tick-lg{width:76px;height:76px;margin:0 auto 22px;border-radius:50%;background:#E9F6EE;color:#3C9A5B;display:flex;align-items:center;justify-content:center}
#sundal-rfq .thanks .tick-lg svg{width:38px;height:38px}
#sundal-rfq .thanks h2{margin:0 0 10px;font-size:28px;color:var(--navy)}
#sundal-rfq .thanks p{margin:0 auto 8px;max-width:520px;color:var(--gray);font-size:15px;line-height:1.7}
#sundal-rfq .thanks .ref{display:inline-block;margin:16px 0 24px;background:var(--bg);border:1px solid var(--line);border-radius:100px;padding:8px 18px;font-size:13.5px;color:var(--navy)}
#sundal-rfq .thanks .ref b{color:var(--blue)}
#sundal-rfq .thanks .tbtns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:8px}

/* responsive */
@media(max-width:980px){
  #sundal-rfq .quote{grid-template-columns:1fr;gap:24px}
  #sundal-rfq .q-side{position:static;order:-1}
  /* Submit button pinned to the bottom of the screen (mobile/tablet only) */
  #sundal-rfq .q-sum .btn-block{position:fixed;left:0;right:0;bottom:0;width:100%;border-radius:0;padding:16px;z-index:9990;box-shadow:0 -4px 16px rgba(14,37,50,.16);margin-top:0}
  #sundal-rfq{padding-bottom:78px}
}
@media(max-width:600px){
  #sundal-rfq .arch-head h1{font-size:29px}
  #sundal-rfq .q-item{grid-template-columns:64px 1fr;gap:14px;padding-right:20px}
  #sundal-rfq .q-item .thumb{width:64px;height:64px}
  #sundal-rfq .qi-right{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;margin-top:4px}
  #sundal-rfq .q-grid2{grid-template-columns:1fr}
  #sundal-rfq .thanks{padding:40px 22px}
}

/* -------------------------------------------------------------------------
   Additions for the dynamic build. The rows now arrive over AJAX, so there is
   a loading state the static demo never needed.
   ------------------------------------------------------------------------- */
#sundal-rfq .q-skeleton{display:flex;flex-direction:column;gap:12px;padding:4px 0}
#sundal-rfq .q-sk-row{display:block;height:92px;border-radius:var(--radius-sm);
  background:linear-gradient(90deg,var(--tint-2) 25%,var(--line-soft) 37%,var(--tint-2) 63%);
  background-size:400% 100%;animation:sq-shimmer 1.3s ease-in-out infinite}
@keyframes sq-shimmer{0%{background-position:100% 50%}100%{background-position:0 50%}}
@media (prefers-reduced-motion: reduce){
  #sundal-rfq .q-sk-row{animation:none}
}

/* a busy control must not look clickable while its request is in flight */
#sundal-rfq .is-busy{opacity:.55;pointer-events:none}

/* the submit button is disabled while the list is empty */
#sundal-rfq .q-sum .btn-block[disabled]{opacity:.5;cursor:not-allowed}

/* screen-reader-only text for the loading announcement */
#sundal-rfq .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* -------------------------------------------------------------------------
   ELEMENTOR ROUTE ONLY

   When the page is built from native widgets, the "Your details" panel is an
   Elementor Pro form. Its markup differs from the plain-PHP template's, so it
   is restyled here to land on the same design rather than duplicating the
   design in two places.

   The form's own submit button is hidden: the approved design puts the submit
   in the sidebar summary card, and an Elementor form cannot be split across
   the layout, so the sidebar button forwards the click (see sundal-rfq.js).
   ------------------------------------------------------------------------- */

/* the panel shell sits directly above the form widget — join them visually */
#sundal-rfq .rfq-details-shell{background:#fff;border:1px solid var(--line);border-radius:var(--radius) var(--radius) 0 0;
  border-bottom:none;box-shadow:var(--shadow);padding:22px 24px 0;margin-bottom:0}
#sundal-rfq .rfq-details-shell .q-phead{border:none;padding:0 0 4px;margin:0}
#sundal-rfq .elementor-widget-form{background:#fff;border:1px solid var(--line);border-top:none;
  border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow);padding:4px 24px 24px}

#sundal-rfq .elementor-field-group > label{display:block;margin-bottom:6px;font-size:13px;font-weight:500;color:var(--navy)}
#sundal-rfq .elementor-field-group .elementor-field{width:100%;box-sizing:border-box;padding:11px 13px;
  border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;color:var(--ink);
  font-family:'Ubuntu',sans-serif;font-size:14.5px;line-height:1.4;transition:border-color .15s ease,box-shadow .15s ease}
#sundal-rfq .elementor-field-group .elementor-field:focus{outline:none;border-color:var(--blue);
  box-shadow:0 0 0 3px rgba(4,129,187,.12)}
#sundal-rfq .elementor-field-group .elementor-field::placeholder{color:var(--muted)}
#sundal-rfq .elementor-field-type-textarea .elementor-field{min-height:118px;resize:vertical}
#sundal-rfq .elementor-field-required .elementor-field-label:after{content:' *';color:#C6303F}

/* acceptance rows read as the design's checkbox lines */
#sundal-rfq .elementor-field-type-acceptance .elementor-field-option{display:flex;gap:10px;align-items:flex-start;
  font-size:13.5px;color:var(--gray);line-height:1.5}
#sundal-rfq .elementor-field-type-acceptance input{margin-top:3px;accent-color:var(--blue);flex:none}

/* the real submit is driven by the sidebar proxy */
#sundal-rfq .elementor-widget-form .elementor-field-type-submit{position:absolute;width:1px;height:1px;
  overflow:hidden;clip:rect(0,0,0,0);margin:-1px;padding:0;border:0}

/* the sidebar submit card butts onto the summary card above it */
#sundal-rfq .q-sum-submit{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}

/* Elementor's own success/error banners are redundant — the plugin swaps in the
   thank-you panel, and errors are surfaced inline plus by the toast. */
#sundal-rfq .elementor-message-success{display:none}

/* the plugin's own form: the real submit is driven by the sidebar proxy, but stays in the DOM
   so the form still works when the script does not run */
#sundal-rfq .sq-real-submit{position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0,0,0,0);margin:-1px;padding:0;border:0;white-space:nowrap}
