/* Native inquiry input and review, shared by all consultation entry points. */
html:has(.contact-refined) { scroll-behavior: auto; }
body.contact-page .mobile-contact { display: none !important; }
.contact-refined .contact-entry-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.contact-refined #contact.contact-form-section { background: #f3f6fa; }
.contact-form-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 6vw, 96px); align-items: start; padding-block: 54px 64px; }
.contact-form-intro { position: sticky; top: 114px; }
.contact-refined #contact .contact-form-intro h2 { font-size: clamp(27px, 2.8vw, 40px); line-height: 1.6; }
.contact-form-intro > p:not(.section-label) { color: #526171; font-size: 14px; line-height: 1.95; margin-top: 18px; }
.form-phone { border-top: 1px solid #bdc9d4; margin-top: 28px; padding-top: 22px; }
.form-phone p { font-size: 12px; line-height: 1.8; color: #526171; }
.form-phone a { display: inline-block; font: 30px/1.8 var(--latin); color: #174ea0; }
.form-phone span { display: block; font-size: 12px; line-height: 1.8; color: #526171; }
.contact-form-intro > .text-link { margin-top: 20px; font-size: 12px; }
.form-help-details { margin-top: 24px; }
.form-help-details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; padding-block: 12px; border-block: 1px solid #bdc9d4; font-size: 13px; color: #174ea0; cursor: pointer; list-style: none; }
.form-help-details > summary::-webkit-details-marker { display: none; }
.form-help-details > summary svg { width: 17px; height: 17px; transition: transform .15s; }
.form-help-details[open] > summary svg { transform: rotate(180deg); }
.form-help-content .form-phone { margin-top: 18px; padding-top: 0; border-top: 0; }
.form-help-content > .text-link { margin-top: 16px; font-size: 12px; }
.form-product-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-bottom: 20px; border-left: 3px solid #174bff; background: #e8efff; }
.form-product-context > div { display: grid; min-width: 0; gap: 5px; }
.form-product-context span { font-size: 11px; line-height: 1.7; color: #435366; }
.form-product-context strong { font-size: 16px; line-height: 1.7; color: #173f7f; overflow-wrap: anywhere; }
.form-product-context a { flex-shrink: 0; min-height: 44px; display: inline-flex; align-items: center; color: #174ea0; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.contact-form-main { min-width: 0; }
.form-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0 0 24px; }
.form-progress li { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 6px; border-bottom: 2px solid #b7c5d3; color: #526171; font-size: 13px; }
.form-progress li > span { font: 12px var(--latin); }
.form-progress li[aria-current="step"] { border-color: #154bfa; color: #174ea0; font-weight: 700; background: #e8efff; }
.form-availability { margin: 0 0 16px; color: #526171; font-size: 12px; line-height: 1.9; }
.form-availability a { color: #174ea0; text-decoration: underline; text-underline-offset: 3px; }
#inquiry-form { padding: clamp(22px, 3vw, 40px); background: #fff; border: 1px solid #dce5ef; }
.form-panel-heading { font-size: 23px; line-height: 1.6; scroll-margin-top: 112px; }
.form-required-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 24px; font-size: 12px; color: #526171; }
.form-required, .form-optional { display: inline-block; flex-shrink: 0; font-size: 10px; line-height: 1.7; padding: 1px 6px; font-weight: 500; letter-spacing: .03em; vertical-align: middle; }
.form-required { color: #174ea0; background: #e8efff; border: 1px solid #cad8f5; }
.form-optional { color: #526171; background: #f1f4f7; border: 1px solid #e0e5eb; }
.form-field { border: 0; padding: 0; margin: 0 0 25px; min-width: 0; }
.form-field > label, .form-field > legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 700; line-height: 1.8; margin-bottom: 10px; padding: 0; }
.form-context-fields { padding: 0; margin: 0; border: 0; min-width: 0; }
#inquiry-form :is(input:not([type=radio]):not([type=checkbox]), select, textarea) { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid #a5b5c7; border-radius: 0; background: #fff; color: #182c40; font-family: inherit; font-size: 16px; line-height: 1.6; box-shadow: none; }
#inquiry-form textarea { resize: vertical; min-height: 164px; }
#inquiry-form input::placeholder, #inquiry-form textarea::placeholder { color: #6c7a89; opacity: 1; }
#inquiry-form select { padding-right: 28px; }
#inquiry-form :is(input,select,textarea,button,a):focus-visible { outline: 2px solid #174bff; outline-offset: 3px; }
#inquiry-form [aria-invalid=true] { border-color: #ac263b; }
#inquiry-form :is(input[type=radio],input[type=checkbox]) { accent-color: #174bff; width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.form-purpose-options { display: flex; flex-direction: column; gap: 8px; }
.form-purpose-options label { display: flex; align-items: center; gap: 12px; padding: 13px 15px; min-height: 50px; border: 1px solid #c8d3df; font-size: 14px; line-height: 1.7; cursor: pointer; }
.form-purpose-options label:has(input:checked) { background: #eef3ff; border-color: #174bff; color: #174ea0; }
.field-help { margin-top: 7px; color: #526171; font-size: 12px; line-height: 1.8; }
.field-error { color: #a31f35; font-size: 12px; line-height: 1.8; margin-top: 7px; }
.form-error-summary { padding: 18px; margin: 22px 0; border: 1px solid #ad3347; background: #fff5f5; color: #922538; font-size: 13px; line-height: 1.9; scroll-margin-top: 112px; }
.form-error-summary ul { padding-left: 20px; margin: 8px 0 0; }
.form-error-summary a { text-decoration: underline; text-underline-offset: 3px; }
.message-help { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.message-help > span { margin-left: auto; color: #526171; font-size: 11px; white-space: nowrap; }
.form-consent { border-top: 1px solid #dce5ef; padding-top: 23px; }
.form-field.form-consent > label { flex-wrap: nowrap; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 13px; line-height: 2; }
.form-consent input { margin-top: 4px !important; }
.form-consent a { color: #174ea0; text-decoration: underline; text-underline-offset: 4px; }
.form-consent .form-required { margin-left: 6px; }
.form-button { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; min-height: 56px; padding: 14px 18px; border: 1px solid transparent; border-radius: 0; font: 700 14px/1.8 var(--heading); transition: background-color .15s; }
.form-button svg { width: 19px; }
.form-button-primary { background: #154bfa; color: #fff; }
.form-button-primary:hover:not(:disabled) { background: #123ecb; }
.form-button:disabled { cursor: not-allowed; background: #e3e9f0; border-color: #c7d2de; color: #526171; }
.form-button-secondary { color: #174ea0; background: #fff; border-color: #a5b5c7; }
.form-button-secondary:hover { background: #edf3fa; }
.form-not-sent { color: #526171; text-align: center; font-size: 11px; line-height: 1.9; margin-top: 11px; }
.form-review-lead { font-size: 13px; line-height: 1.9; color: #526171; margin-top: 12px; }
.form-review-list { margin: 24px 0; border-top: 1px solid #bcc9d7; }
.form-review-list > div { padding-block: 18px; border-bottom: 1px solid #dce5ef; }
.form-review-list dt { font-size: 12px; line-height: 1.8; color: #526171; margin-bottom: 5px; }
.form-review-list dd { margin: 0; font-size: 15px; line-height: 1.9; color: #182c40; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-review-consent { color: #526171; font-size: 12px; line-height: 1.9; margin-bottom: 22px; }
.form-review-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-bot-check { margin-block: 24px; min-width: 0; }
.form-bot-check > p { margin-top: 10px; color: #435366; font-size: 13px; line-height: 1.8; }
.form-bot-check > button { width: auto; min-height: 44px; margin-top: 12px; }
#inquiry-form .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.contact-form-main [hidden], .contact-form-intro [hidden] { display: none !important; }
@media (max-width: 1000px) {
  .contact-form-layout { grid-template-columns: minmax(200px,.7fr) minmax(0,1.3fr); gap: 32px; }
  .form-review-actions { grid-template-columns: minmax(0,1fr); }
  .contact-refined .contact-entry-links { gap: 20px; }
  .contact-purpose-link strong { font-size: 16px; }
}
@media (max-width: 767px) {
  .contact-refined .contact-entry-links { grid-template-columns: minmax(0,1fr); gap: 0; }
  .contact-form-layout { grid-template-columns: minmax(0,1fr); padding-block: 30px 38px; gap: 28px; }
  .contact-form-intro { position: static; }
  .contact-refined #contact .contact-form-intro h2 { font-size: 28px; }
  .contact-form-intro > p:not(.section-label) { font-size: 13px; margin-top: 12px; }
  .form-phone { margin-top: 20px; padding-top: 16px; }
  .form-phone a { font-size: 28px; }
  .contact-form-intro > .text-link { margin-top: 12px; }
  .contact-form-intro > .section-label { display: none; }
  .contact-refined #contact .contact-form-intro h2 { font-size: 25px; }
  .contact-form-intro > p:not(.section-label) { margin-top: 8px; }
  .form-help-details { margin-top: 14px; }
  .form-product-context { padding: 12px 16px; gap: 12px; }
  .form-product-context strong { font-size: 14px; }
  .form-progress { margin-bottom: 20px; }
  .form-progress li { gap: 6px; padding-inline: 2px; font-size: 12px; }
  .form-progress li > span { font-size: 10px; }
  #inquiry-form { padding: 22px 18px; }
  .form-panel-heading { font-size: clamp(18px, 5vw, 21px); scroll-margin-top: 98px; text-wrap: balance; }
  .form-field { margin-bottom: 23px; }
  .form-purpose-options label { padding: 12px; font-size: 13px; }
  .form-field > label, .form-field > legend { font-size: 13px; }
  .form-review-actions { gap: 10px; }
  .form-error-summary { padding: 14px; scroll-margin-top: 98px; }
}
@media (prefers-reduced-motion: reduce) { .form-button { transition: none; } }

/* Out of the visual and keyboard flow; this trap is also checked server-side. */
.contact-reference-trap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; pointer-events: none; }

.form-complete > p { margin-top: 16px; color: #435366; font-size: 14px; line-height: 1.9; }
.form-complete .form-receipt { padding: 14px 16px; background: #edf4fc; color: #102d47; font-weight: 700; overflow-wrap: anywhere; }
.form-complete > .text-link { margin-top: 22px; min-height: 44px; color: #174ea0; font-size: 14px; }
