.rq-hero { background: var(--blue-deep); color: #fff; padding-block: 36px 56px; }
.rq-hero .eyebrow { color: #D4E6FB; margin-top: 18px; }
.rq-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-top: 12px; }
.rq-hero p { margin-top: 14px; max-width: 58ch; color: #E6F1FE; font-size: 18px; }
.rq-hero .crumbs, .rq-hero .crumbs a { color: #D4E6FB; font-size: 14px; }
.rq-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; font-size: 15px; }
.rq-points li::before { content: "\2713"; margin-right: 8px; }
.rq-main { padding-block: 48px 84px; }
.rq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.rq-form, .rq-done { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: grid; gap: 34px; }
.rq-form { scroll-margin-top: 96px; }
.rq-step { display: grid; gap: 18px; }
.rq-step h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rq-step h2 span { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 15px; }
.rq-step h2 em { font-size: 14px; font-weight: 400; color: var(--muted); font-style: normal; }
.rq-step .two-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.rq-form [hidden] { display: none !important; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid #B5C9E3; border-radius: 10px; padding: 11px 14px; cursor: pointer; background: #fff; font-size: 15px; min-height: 44px; }
.opt:has(input:checked) { border-color: var(--blue-deep); background: var(--blue-soft); }
.opt input { width: 18px; height: 18px; accent-color: var(--blue-deep); flex: none; }
.opt:focus-within { outline: 3px solid var(--blue-mid); }
.req { color: #B42318; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.err { color: #B42318; font-size: 13.5px; margin: 0; min-height: 0; }
.err:empty { display: none; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #B42318; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-submit { display: grid; gap: 12px; justify-items: start; }
.opt.consent { align-items: flex-start; border-style: dashed; }
.rq-submit .btn { min-height: 48px; }
.rq-submit .btn[disabled] { opacity: .6; cursor: progress; }
.rq-side { display: grid; gap: 16px; position: sticky; top: 90px; }
.card-s { background: var(--blue-soft); border-radius: 14px; padding: 22px; display: grid; gap: 10px; font-size: 15px; }
.card-s ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.card-s p { margin: 0; }
.rq-done { gap: 16px; }
.rq-done h2 { font-size: 28px; }
.rq-done .ref { font-family: "IBM Plex Mono", monospace; background: var(--blue-soft); padding: 10px 14px; border-radius: 8px; display: inline-block; font-size: 20px; }
.rq-done .row { display: flex; gap: 10px; flex-wrap: wrap; }
.rq-done pre { white-space: pre-wrap; background: #F4F8FD; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: 13px/1.5 "IBM Plex Mono", monospace; max-height: 260px; overflow: auto; }
@media (max-width: 900px) { .rq-grid { grid-template-columns: minmax(0, 1fr); } .rq-side { position: static; } }
@media (max-width: 640px) { .rq-step .two-f { grid-template-columns: minmax(0, 1fr); } .rq-form, .rq-done { padding: 20px; } }

.upl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.upl { border: 1.5px dashed #B5C9E3; border-radius: 12px; padding: 14px; display: grid; gap: 8px; background: #fff; min-width: 0; }
.upl-l { font-size: 14px; font-weight: 600; }
.upl-i { font: inherit; font-size: 14px; max-width: 100%; }
.upl-i::file-selector-button { font: inherit; font-weight: 600; border: 0; border-radius: 8px; background: var(--blue-soft); color: var(--blue-ink); padding: 9px 14px; margin-right: 10px; cursor: pointer; min-height: 40px; }
.upl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.upl-list:empty { display: none; }
.upl.bad { border-color: #B42318; }
@media (max-width: 640px) { .upl-grid { grid-template-columns: minmax(0, 1fr); } }

/* The thank-you panel must stay out of the grid until it is used */
.rq-done[hidden] { display: none; }

/* Audit questionnaire: collapsible sections */
.qsecs { display: grid; gap: 10px; }
.qsec { border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.qsec[open] { border-color: var(--blue); }
.qsec summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; min-height: 52px; }
.qsec summary::-webkit-details-marker { display: none; }
.qsec summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s ease; flex: none; }
.qsec[open] summary::after { transform: rotate(-135deg); }
.qsec summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 12px; }
.qsec .ql { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.qsec .qt { font-weight: 600; }
.qsec small { color: var(--muted); font-size: 13px; }
.qbody { display: grid; gap: 22px; padding: 6px 16px 20px; }
.qbody textarea { min-height: 84px; }
.qbody input[type=date] { max-width: 220px; }
@media (max-width: 640px) { .qsec small { display: none; } .qsec summary { padding: 12px; } .qbody { padding-inline: 12px; } }
@media (prefers-reduced-motion: reduce) { .qsec summary::after { transition: none; } }

/* Success pop-up */
body.sx-lock { overflow: hidden; }
.sx-ov { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(8, 22, 40, .62); backdrop-filter: blur(3px); animation: sxf .18s ease-out; }
.sx-card { background: #fff; border-radius: 20px; max-width: 460px; width: 100%; padding: 32px 28px 26px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); outline: none; animation: sxu .22s ease-out; max-height: calc(100dvh - 36px); overflow: auto; }
.sx-card h2 { font-size: 26px; margin: 10px 0 12px; }
.sx-card p { color: var(--muted, #5A6B7D); margin: 0 0 14px; line-height: 1.55; }
.sx-ic { width: 60px; height: 60px; border-radius: 50%; background: #DDF3E7; color: #177245; display: grid; place-items: center; margin: 0 auto; }
.sx-ref { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.sx-id { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 19px; font-weight: 600; background: var(--blue-soft, #EAF2FC); color: #10202F; padding: 8px 12px; border-radius: 9px; user-select: all; }
.sx-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #fff; background: #0E7A6B; padding: 5px 9px; border-radius: 6px; }
.sx-tag.sx-audit { background: #6A3FB5; }
.sx-row { display: grid; gap: 10px; margin-top: 18px; }
.sx-wa { display: inline-flex; gap: 9px; align-items: center; justify-content: center; background: #1FAD5A; color: #fff; font-weight: 700; padding: 13px 18px; border-radius: 11px; text-decoration: none; }
.sx-wa:hover { background: #178F49; }
.sx-close { font: inherit; font-weight: 600; background: transparent; border: 1px solid #c6d4e5; color: #10202F; padding: 11px 18px; border-radius: 11px; cursor: pointer; }
.sx-close:hover { background: #F4F8FD; }
.form-err a { color: inherit; font-weight: 700; }
@keyframes sxf { from { opacity: 0; } to { opacity: 1; } }
@keyframes sxu { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx-ov, .sx-card { animation: none; } }

.ura-panel { border: 1.5px solid #B5C9E3; border-left: 4px solid var(--blue-deep); border-radius: 10px; padding: 14px 16px 4px; margin: 4px 0 14px; background: var(--blue-soft); }
.ura-panel h3 { margin: 0 0 10px; font-size: 15px; }
.ura-panel .field input { background: #fff; }

/* Quotation page (quote.html) */
#q-loading[hidden], #q-form[hidden] { display: none; }
.q-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.q-switch:empty { display: none; }
.q-sw-l { font-size: 13px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.q-switch a { font-size: 14px; text-decoration: none; color: var(--blue-ink, #10202F); border: 1.5px solid #B5C9E3; background: #fff; border-radius: 99px; padding: 7px 13px; }
.q-switch a:hover { border-color: var(--blue-deep); }
.q-switch a.on { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; font-weight: 600; }
.q-items { display: grid; gap: 8px; margin-top: 4px; }
.q-irow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 84px 40px; gap: 8px; align-items: center; }
.q-ihead { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.q-irow input { width: 100%; min-width: 0; }
.q-del { font: inherit; font-size: 20px; line-height: 1; width: 40px; height: 40px; border-radius: 9px; border: 1.5px solid #B5C9E3; background: #fff; color: #7A8796; cursor: pointer; }
.q-del:hover { color: #B42318; border-color: #B42318; }
.q-add { font: inherit; font-weight: 600; margin-top: 10px; background: var(--blue-soft); color: var(--blue-ink, #10202F); border: 0; border-radius: 9px; padding: 10px 14px; cursor: pointer; }
.q-add:hover { filter: brightness(.97); }
fieldset.field.bad .q-irow input { border-color: #B42318; }
@media (max-width: 640px) {
  .q-ihead { display: none; }
  .q-irow { grid-template-columns: minmax(0, 1fr) 76px 40px; padding: 10px; border: 1px solid #DCE6F2; border-radius: 12px; background: #fff; }
  .q-irow .q-c-spec { grid-column: 1 / -1; grid-row: 2; }
}
.q-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.q-pick a { display: block; text-decoration: none; color: var(--fg); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.q-pick a:hover { border-color: var(--blue-deep); background: var(--blue-soft); }
.q-pick b { display: block; color: var(--blue-ink); }
.q-pick span { font-size: 14px; color: var(--muted); }
/* Tax period picker */
.fy-quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.fy-quick span { font-size: 14px; color: var(--muted); margin-right: 2px; }
.fy-quick button { font: inherit; font-size: 14px; font-weight: 600; color: var(--blue-ink); background: #fff; border: 1.5px solid #B5C9E3; border-radius: 99px; padding: 7px 13px; cursor: pointer; }
.fy-quick button:hover { border-color: var(--blue-deep); }
.fy-quick button.on { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.period { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp { position: relative; display: grid; gap: 6px; }
.mp .pl { font-weight: 600; font-size: 14px; }
.mp-btn { display: flex; align-items: center; gap: 10px; width: 100%; font: inherit; font-size: 16px; text-align: left; color: var(--muted); background: #fff; border: 1.5px solid #B5C9E3; border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.mp-btn svg { color: var(--blue-deep); flex: none; }
.mp-btn:hover, .mp-btn[aria-expanded="true"] { border-color: var(--blue-deep); }
.mp.set .mp-btn { color: var(--fg); font-weight: 600; }
.mp-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 290px; max-width: calc(100vw - 40px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(6, 30, 66, .2); padding: 12px; }
.mp[data-mp="to"] .mp-pop { left: auto; right: 0; }
.mp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mp-head b { font-family: var(--font-display); font-size: 18px; }
.mp-head button { font: inherit; font-size: 22px; line-height: 1; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--blue-ink); cursor: pointer; }
.mp-head button:hover:not(:disabled) { border-color: var(--blue-deep); background: var(--blue-soft); }
.mp-head button:disabled { opacity: .35; cursor: default; }
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mp-m { font: inherit; font-size: 15px; padding: 11px 0; border-radius: 10px; border: 0; background: var(--bg); color: var(--fg); cursor: pointer; }
.mp-m:hover, .mp-m:focus-visible { background: var(--blue-soft); color: var(--blue-ink); outline: 2px solid var(--blue-mid); outline-offset: 0; }
.mp-m.in { background: var(--blue-soft); color: var(--blue-ink); }
.mp-m.edge { box-shadow: inset 0 0 0 2px var(--blue-mid); }
.mp-m.on { background: var(--blue-deep); color: #fff; font-weight: 700; }
.mp-m.off { opacity: .3; cursor: default; }
.period-sum { margin: 10px 0 0; font-size: 14px; font-weight: 600; }
.period-sum.ok { color: var(--ok, #0E7A43); }
.period-sum.bad { color: #B42318; }
@media (max-width: 640px) { .period { grid-template-columns: 1fr; } }

/* ---- Request and quotation forms: one tidy look on every form (tax, audit, all quotation forms) ---- */
.tags span { font-family: inherit; font-size: 13.5px; font-weight: 500; letter-spacing: 0; }
.rq-form { box-shadow: 0 1px 2px rgba(10,42,85,.04), 0 12px 32px -16px rgba(10,42,85,.18); }
.rq-step h2 { font-family: inherit; font-weight: 700; letter-spacing: -.01em; }
.field label, fieldset.field legend { font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: .005em; }
.field .req, fieldset.field legend .req { color: #B42318; }
.field input, .field select, .field textarea { font-family: inherit; font-size: 16px; line-height: 1.35; min-height: 50px; border: 1.5px solid #C3D3E8; border-radius: 10px; background-color: #fff; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.field textarea { min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8FB0D8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue-deep); box-shadow: 0 0 0 4px rgba(11,95,217,.16); }
.field input::placeholder, .field textarea::placeholder { color: #7A8CA3; opacity: 1; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%230B5FD9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }
.field select:invalid, .field select.empty { color: #5E7189; }
.field select option { font-family: inherit; color: var(--fg); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #B42318; box-shadow: 0 0 0 4px rgba(180,35,24,.10); }
.opt { font-family: inherit; font-weight: 500; border-color: #C3D3E8; border-radius: 10px; transition: border-color .15s, background-color .15s; }
.opt:hover { border-color: #8FB0D8; }
.opt:focus-within { outline: 0; box-shadow: 0 0 0 4px rgba(11,95,217,.16); }
@media (max-width: 640px) { .rq-form { padding: 20px 16px; gap: 28px; } .rq-step .two-f { grid-template-columns: minmax(0, 1fr); } }
.field input[type=radio], .field input[type=checkbox], .field input[type=file] { min-height: 0; box-shadow: none !important; }

/* "Other services" chooser on quote.html */
.q-other { display: grid; gap: 12px; max-width: 560px; }
.q-other select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--fg); }
.q-other select:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.q-other-guide { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; background: var(--blue-soft); color: var(--fg); }
.q-other-guide b { display: block; color: var(--blue-ink); margin-bottom: 4px; }
.q-other-guide p { margin: 0; }
.q-other .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.q-change { display: inline-block; margin-top: 8px; font-size: 14px; }
