/* Bondap — "Request a quote" page, shared by /en/ and /pl/.
   Builds on bondap.css (variables, .wrap, .btn, .phero). Form controls match the "Book a demo" modal in demo.js. */

/* hero: left-aligned, a little air between eyebrow and headline */
.quote-hero h1{margin-top:14px;}

/* page layout: sticky "On this page" column + form */
.quote-section{padding:56px 0 88px;background:var(--paper-2);border-bottom:1px solid var(--line);}
.quote-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:52px;align-items:start;}
.quote-layout.is-done{grid-template-columns:minmax(0,780px);}
.quote-layout.is-done .quote-side{display:none;}
.quote-side{position:sticky;top:94px;}
.quote-main{min-width:0;}
#quote-form{scroll-margin-top:92px;}
.quote-section [hidden]{display:none !important;}

.quote-toc-h{font-family:var(--disp);font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2);margin:0 0 10px;}
.quote-toc ol{list-style:none;margin:0;padding:0;}
.quote-toc a{display:flex;gap:8px;padding:7px 12px;border-left:2px solid var(--line);font-family:var(--disp);font-size:14.5px;line-height:1.35;color:var(--ink-2);transition:.14s;}
.quote-toc a:hover{border-left-color:var(--accent);background:var(--paper);color:var(--ink);}
.quote-toc .n{min-width:1.3em;color:var(--muted-2);font-weight:600;font-variant-numeric:tabular-nums;}

/* form sections */
.qf-required-note{font-size:14px;color:var(--muted);margin:0 0 14px;}
.qf-section{min-width:0;margin:0 0 20px;padding:30px 32px 32px;border:1px solid var(--line);border-radius:20px;background:var(--paper);scroll-margin-top:92px;}
.qf-section > legend{float:left;width:100%;padding:0;margin:0 0 22px;font-family:var(--disp);font-size:23px;font-weight:600;line-height:1.2;letter-spacing:-.015em;color:var(--ink);}
.qf-section > legend .n{color:var(--accent-deep);}
.qf-section > legend + *{clear:both;}
.qf-section > legend:has(+ .qf-intro){margin-bottom:10px;}
.qf-intro{font-size:15px;color:var(--muted);margin:0 0 20px;max-width:62ch;}

.qf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 22px;align-items:end;}
.qf-full{grid-column:1 / -1;}

.qf-field{display:flex;flex-direction:column;gap:6px;min-width:0;}
.qf-field > label,.qf-group > legend{font-family:var(--disp);font-size:12.5px;font-weight:500;line-height:1.35;color:var(--ink);}
.qf-req{color:var(--orange);margin-left:1px;}
.qf-hint{font-size:13px;line-height:1.45;color:var(--muted);margin:-2px 0 0;}

/* controls — same look as the "Book a demo" modal */
.quote-section input:not([type="checkbox"]):not([type="radio"]),
.quote-section select,
.quote-section textarea{font-family:var(--body);font-size:15px;line-height:1.4;padding:10px 12px;border:1.5px solid #e2e8e6;border-radius:10px;background-color:#fbfcfc;color:var(--ink);width:100%;max-width:100%;box-sizing:border-box;margin:0;transition:border-color .15s,box-shadow .15s;}
.quote-section input:not([type="checkbox"]):not([type="radio"]):focus,
.quote-section select:focus,
.quote-section textarea:focus{outline:none;border-color:#1cb4d1;box-shadow:0 0 0 3px rgba(28,180,209,.16);}
.quote-section input:user-invalid,
.quote-section select:user-invalid,
.quote-section textarea:user-invalid{border-color:var(--orange);}
.quote-section select{-webkit-appearance:none;appearance:none;padding-right:38px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235d6c6b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px;}
.quote-section textarea{min-height:120px;resize:vertical;line-height:1.5;}
.quote-section ::placeholder{color:#9aa6a4;opacity:1;}

/* checkbox and radio groups: wrapping grid of pills */
.qf-group{min-width:0;margin:0;padding:0;border:0;}
.qf-group > legend{float:left;width:100%;padding:0;margin:0 0 10px;}
.qf-group > legend + *{clear:both;}
.qf-pills{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:8px;}
.qf-pills.is-compact{grid-template-columns:repeat(auto-fill,minmax(min(150px,100%),1fr));}
.qf-pills.is-inline{display:flex;flex-wrap:wrap;}
.qf-pill{display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 16px 8px 13px;border:1.5px solid var(--line);border-radius:22px;background:#fbfcfc;font-size:14.5px;line-height:1.3;color:var(--ink-2);cursor:pointer;transition:border-color .15s,background-color .15s,box-shadow .15s;}
.qf-pill:hover{border-color:#c5d0ce;}
.qf-pill input{flex:none;width:16px;height:16px;margin:0;accent-color:var(--accent-deep);cursor:pointer;}
.qf-pill:has(input:checked){border-color:var(--accent);background:rgba(28,180,209,.09);color:var(--ink);}
.qf-pill:has(input:focus-visible){box-shadow:0 0 0 3px rgba(28,180,209,.24);}
.qf-sub{color:var(--muted);}

/* follow-up questions that depend on an earlier answer */
.qf-nested{padding:18px 20px 20px;border:1px solid var(--line);border-radius:16px;background:var(--paper-2);}
.qf-nested .qf-pill{background:var(--paper);}

/* submit */
.qf-actions{display:flex;flex-direction:column;align-items:flex-start;gap:18px;margin-top:6px;}
.qf-note{font-size:14.5px;line-height:1.55;color:var(--muted);max-width:64ch;}
.qf-actions .btn{white-space:normal;}

/* "one more step" panel shown after submit */
.quote-next{padding:40px 38px 36px;border:1px solid var(--line);border-radius:20px;background:var(--paper);scroll-margin-top:92px;}
.qn-icon{width:54px;height:54px;border-radius:50%;background:var(--accent);color:#04282f;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;margin-bottom:18px;}
.quote-next h2{font-size:30px;letter-spacing:-.02em;}
.quote-next h2:focus{outline:none;}
.quote-next > p{font-size:16.5px;color:var(--muted);margin-top:10px;}
.qn-steps{margin:18px 0 0;padding-left:22px;font-size:15.5px;line-height:1.6;color:var(--ink);}
.qn-steps li{margin:7px 0;}
.qn-fallback{margin-top:26px;padding-top:22px;border-top:1px solid var(--line);}
.qn-fallback p{font-size:14.5px;color:var(--muted);}
.qn-fallback a:not(.btn){color:var(--accent-deep);text-decoration:underline;text-underline-offset:2px;}
.quote-next textarea{margin-top:12px;min-height:230px;font-size:14px;}
.qn-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.quote-next .btn{white-space:normal;}
.quote-next > .qn-back{margin-top:26px;}
.qn-link{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;font-family:var(--disp);font-size:15px;font-weight:500;color:var(--accent-deep);cursor:pointer;}
.qn-link:hover{color:var(--ink);}

.quote-vh{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

@media(max-width:980px){
  .quote-layout{grid-template-columns:minmax(0,1fr);gap:26px;}
  .quote-side{position:static;}
  .quote-toc ol{display:flex;flex-wrap:wrap;gap:6px;}
  .quote-toc a{border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:13px;background:var(--paper);}
  .quote-toc a:hover{border-color:var(--accent);}
  .quote-toc .n{min-width:0;}
  .quote-toc .n:empty{display:none;}
}
@media(max-width:620px){
  .quote-section{padding:34px 0 60px;}
  .qf-section{padding:22px 18px 24px;border-radius:16px;}
  .qf-section > legend{font-size:20px;margin-bottom:18px;}
  .qf-grid{grid-template-columns:minmax(0,1fr);gap:18px;}
  .qf-nested{padding:14px 14px 16px;}
  .quote-next{padding:28px 20px;border-radius:16px;}
  .quote-next h2{font-size:24px;}
}

/* long-request notice in the next-step panel */
.qn-long{margin:0 0 14px;padding:12px 16px;background:rgba(234,90,43,.08);border-left:3px solid var(--orange);border-radius:0 12px 12px 0;font-size:14.5px;line-height:1.5;color:var(--ink-2);}
/* iOS Safari zooms into controls smaller than 16px */
@media(max-width:640px){
  .quote-section input:not([type="checkbox"]):not([type="radio"]),
  .quote-section select,
  .quote-section textarea{font-size:16px;}
}
