/* Legalisation quote request (29 Oct 2026): the section from resources/views/partials/legalisation-quote-form.blade.php
   on /legalisation, its country pages, /notarised-translation, /apostille-translation-services and
   /tools/legalisation-checker. Site v2 tokens (with fallbacks) and the quote form's control rules: one selected look
   (tint, inset 2px orange edge, #9a3412 text), #8a877f control edge, grey hover for a mouse only, nothing under 12px,
   48px controls, iPhone-safe date and select fields (appearance none, border-box, min-width 0). */
.lq{--lq-ink:var(--ink,#122033);--lq-muted:var(--muted,#4c5966);--lq-line:var(--line,#e2e1da);--lq-orange:var(--orange,#c7420d);--lq-edge:#8a877f;--lq-tint:#fbf3ec;scroll-margin-top:var(--header,117px)}
.lq [hidden]{display:none!important}
.lq-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);gap:40px 72px;align-items:start}
.lq-intro :is(h1,h2)::before{content:"";display:block;width:36px;height:3px;border-radius:2px;background:var(--accent,#f86011);margin-bottom:22px}
/* The quote page (30 Oct 2026): the form is the first band under the menu and its title is the page's h1. */
.lq.lq-first{padding-block:56px 96px}
.lq-intro h1{font-size:clamp(34px,3.4vw,52px);line-height:1.1;letter-spacing:-.035em}
.lq-intro>p{margin-top:18px;max-width:440px;font-size:17px;line-height:1.7;color:var(--lq-muted)}
.lq-points{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:14px;max-width:440px}
.lq-points li{position:relative;padding-inline-start:30px;font-size:16px;line-height:1.55;color:var(--lq-ink)}
.lq-points li::before{content:"";position:absolute;inset-inline-start:2px;top:.42em;width:13px;height:7px;border-left:2px solid var(--lq-orange);border-bottom:2px solid var(--lq-orange);transform:rotate(-45deg)}
.lq-points a{color:inherit;font-weight:600;white-space:nowrap;text-decoration:underline;text-decoration-color:rgba(199,66,13,.55);text-decoration-thickness:1px;text-underline-offset:4px}
.lq-points a:hover{color:var(--lq-orange)}
.lq.sv2-navy .lq-intro h2{color:#fff}
.lq.sv2-navy .lq-intro>p,.lq.sv2-navy .lq-points li{color:var(--on-dark,#d3dbe4)}
.lq.sv2-navy .lq-points li::before{border-color:var(--warm,#ffa06b)}
.lq.sv2-navy .lq-points a{color:#fff;text-decoration-color:rgba(255,145,78,.6)}
.lq.sv2-navy .lq-points a:hover{color:#ffb489}
.lq.sv2-navy .lq-points a:focus-visible{outline:2px solid #ff914e;outline-offset:3px}

.lq-card{min-width:0;padding:40px;border:1px solid var(--lq-line);border-radius:16px;background:#fff;color:var(--lq-ink);box-shadow:0 1px 2px rgba(16,29,48,.04),0 24px 48px -32px rgba(16,29,48,.28)}
.lq.sv2-navy .lq-card{border-color:transparent}
.lq-form{display:grid;gap:34px}
.lq fieldset{margin:0;padding:0;border:0;min-width:0}
.lq legend{padding:0}
/* Legends float so a step's top rule sits above its title, not through it, and the spacing below is the margin. */
.lq-step>legend,.lq-sub>legend{float:left;width:100%}
.lq-step>legend+*,.lq-sub>legend+*{clear:both}
.lq-step+.lq-step{padding-top:34px;border-top:1px solid var(--lq-line)}
.lq-step>legend{margin-bottom:20px;font:600 21px/1.3 Poppins,"Poppins Fallback",Inter,sans-serif;letter-spacing:-.02em;color:var(--lq-ink)}
.lq-no{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-inline-end:12px;border-radius:50%;background:var(--lq-tint);color:#9a3412;font:600 14px/1 Inter,sans-serif;letter-spacing:0;vertical-align:2px}
.lq-stack{display:grid;gap:22px}
.lq-field{display:grid;gap:8px;min-width:0}
.lq-row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.lq-count{max-width:200px}
.lq-field>label,.lq-sub>legend{font:600 15px/1.45 Inter,"Noto Sans",Arial,sans-serif;color:var(--lq-ink)}
.lq-sub>legend{margin-bottom:10px}
.lq-opt{margin-inline-start:6px;font-weight:400;font-size:14px;color:var(--lq-muted)}

.lq :is(input[type=text],input[type=email],input[type=tel],input[type=number],input[type=date],select,textarea){-webkit-appearance:none;appearance:none;box-sizing:border-box;display:block;width:100%;min-width:0;max-width:100%;min-height:48px;margin:0;padding:11px 14px;border:1px solid var(--lq-edge);border-radius:12px;background-color:#fff;font:400 16px/1.4 Inter,"Noto Sans",Arial,sans-serif;color:var(--lq-ink)}
.lq textarea{min-height:104px;resize:vertical}
.lq select{padding-inline-end:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122033' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:18px;cursor:pointer}
.lq input[type=date]{text-align:start}
.lq input[type=date]::-webkit-date-and-time-value{text-align:start;min-height:1.4em}
.lq-date{max-width:260px}
.lq ::placeholder{color:#6b7280;opacity:1}
.lq :is(input,select,textarea):focus{outline:none;border-color:var(--lq-orange);box-shadow:0 0 0 3px rgba(199,66,13,.2)}
.lq :is(input,select,textarea)[aria-invalid=true]{border-color:#b42318}
.lq input[type=file]{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:56px;padding:9px;border:1px dashed var(--lq-edge);border-radius:12px;background:#fff;font:400 15px/1.4 Inter,"Noto Sans",Arial,sans-serif;color:var(--lq-muted);cursor:pointer}
.lq input[type=file]::file-selector-button{min-height:38px;margin-inline-end:14px;padding:0 16px;border:0;border-radius:8px;background:var(--lq-tint);color:#9a3412;font:600 15px/1 Inter,"Noto Sans",Arial,sans-serif;cursor:pointer}
.lq input[type=file]:focus-visible{outline:2px solid var(--lq-orange);outline-offset:2px}

.lq-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lq-tiles.is-one{grid-template-columns:minmax(0,1fr)}
.lq-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.lq-seg.is-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.lq-tile{display:flex;align-items:flex-start;gap:12px;min-width:0;min-height:48px;padding:13px 14px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px var(--lq-edge);font:500 15px/1.4 Inter,"Noto Sans",Arial,sans-serif;color:var(--lq-ink);cursor:pointer;transition:background-color .15s,box-shadow .15s}
.lq-tile input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--lq-orange);cursor:pointer}
.lq-tile>span{min-width:0;overflow-wrap:anywhere}
.lq-tile small{display:block;margin-top:3px;font-size:13px;font-weight:400;line-height:1.45;color:var(--lq-muted)}
.lq-tile:has(input:checked){background:var(--lq-tint);box-shadow:inset 0 0 0 2px var(--lq-orange);color:#9a3412}
.lq-tile:has(input:checked) small{color:#7c2d12}
.lq-tile:has(input:focus-visible){outline:2px solid var(--lq-orange);outline-offset:2px}
@media(hover:hover){.lq-tile:not(:has(input:checked)):hover{background:#f1efea;box-shadow:inset 0 0 0 1.5px #6f6b63}}

.lq-hint{font-size:14px;line-height:1.5;color:var(--lq-muted)}
.lq-sub>.lq-hint{margin-top:10px}
.lq-hint:empty{display:none}
.lq-filemsg{color:#b42318}
.lq-alert{padding:14px 18px;border-radius:12px;background:#fef3f2;box-shadow:inset 0 0 0 1px #fda29b;color:#912018;font-size:15px;line-height:1.5}
.lq-alert p{font-weight:600}
.lq-alert ul{margin:6px 0 0;padding-inline-start:20px}
.lq-hp{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

.lq-submit{display:grid;gap:14px;justify-items:start;padding-top:4px}
.lq-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 28px;border:0;border-radius:12px;background:var(--lq-orange);color:#fff;font:600 16px/1.2 Inter,"Noto Sans",Arial,sans-serif;letter-spacing:-.01em;cursor:pointer;box-shadow:0 12px 28px -12px rgba(199,66,13,.9);transition:background-color .18s}
.lq-btn:hover{background:var(--orange-hover,#b83a0a)}
.lq-btn:focus-visible{outline:2px solid var(--lq-orange);outline-offset:3px}
.lq-btn:disabled{opacity:.75;cursor:progress}
.lq-small{font-size:13px;line-height:1.5;color:var(--lq-muted)}
.lq-small a{color:inherit;text-decoration:underline;text-underline-offset:3px}

/* Live price (30 Oct 2026): the notary's cost plus our margin, from GET /legalisation-quote-price. */
.lq-price{display:grid;gap:4px;padding:20px 22px;border-radius:14px;background:var(--lq-tint);box-shadow:inset 0 0 0 1px #f1d5c0}
.lq-price-label{font:600 14px/1.4 Inter,"Noto Sans",Arial,sans-serif;color:#9a3412}
.lq-price-total{font:600 30px/1.2 Poppins,"Poppins Fallback",Inter,sans-serif;letter-spacing:-.02em;color:var(--lq-ink);font-variant-numeric:tabular-nums;transition:opacity .15s}
.lq-price-total.is-hint{font:500 16px/1.5 Inter,"Noto Sans",Arial,sans-serif;letter-spacing:0}
.lq-price.is-busy .lq-price-total{opacity:.55}
.lq-price-ex{font-size:14px;line-height:1.5;color:var(--lq-muted)}
.lq-price-what{margin-top:8px;font-size:15px;line-height:1.55;color:var(--lq-ink)}
.lq-price-notes{margin:6px 0 0;padding-inline-start:18px;display:grid;gap:4px;list-style:disc;font-size:14px;line-height:1.5;color:var(--lq-ink)}
.lq-price-notes li::marker{color:#9a3412}
.lq-price :is(.lq-price-ex,.lq-price-what,.lq-price-notes):empty{display:none}
.lq-price .lq-small{margin-top:8px}

.lq-done::before{content:"";display:block;width:52px;height:52px;margin-bottom:20px;border-radius:50%;background:var(--lq-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7420d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/26px no-repeat}
.lq-done h3{font-size:26px;line-height:1.25;color:var(--lq-ink)}
.lq-done p{margin-top:12px;font-size:17px;line-height:1.65;color:var(--lq-muted)}

@media(min-width:1024px){.lq-intro{position:sticky;top:calc(var(--header,133px) + 24px)}}
@media(max-width:1023px){.lq-grid{grid-template-columns:minmax(0,1fr)}.lq-intro>p,.lq-points{max-width:640px}}
@media(max-width:600px){
  .lq-card{padding:24px 18px;border-radius:14px}
  .lq-row2,.lq-tiles,.lq-seg,.lq-seg.is-two{grid-template-columns:minmax(0,1fr)}
  .lq-date{max-width:none}
  .lq-btn{width:100%}
  .lq-step>legend{font-size:19px}
  .lq-price{padding:18px}
  .lq-price-total{font-size:26px}
  .lq.lq-first{padding-block:32px 64px}
  .lq-intro h1{font-size:clamp(28px,7.6vw,34px);line-height:1.15}
  /* On a phone the quote page opens on the form: the three points would push it below the first screen. */
  .lq-first .lq-points{display:none}
}
