/* Consultation controls shared by the inline and modal forms on every page. */
/* Buttons ("Button states" board): 4 types; hover only with a mouse; focus = 3px gap + 2px ring; no size change. */
/* inline-block, not flex: a flex container would drop the space between a localized label and the <bdi> number. */
.slc-btn { box-sizing: border-box; display: inline-block; padding: 16px 26px; font-family: var(--font-body); font-size: 14px; font-weight: 700;
  line-height: normal; letter-spacing: .08em; text-transform: uppercase; text-align: center; text-decoration: none; border: 0; border-radius: 4px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background 240ms cubic-bezier(.2,.7,.2,1), color 240ms cubic-bezier(.2,.7,.2,1), border-color 240ms cubic-bezier(.2,.7,.2,1); }
.slc-btn:focus { outline: none; }
.slc-btn--accent { background: #B8955A; color: #071A33; }
.slc-btn--accent:active { background: #7E6430; color: #FFFFFF; }
.slc-btn--accent:focus-visible { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px #0C2340; }
.slc-btn--primary { background: #0C2340; color: #FFFFFF; }
.slc-btn--primary:active { background: #071A33; color: #FFFFFF; }
.slc-btn--primary:focus-visible { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px #B8955A; }
.slc-btn--outline { padding-top: 15px; padding-bottom: 15px; background: transparent; color: #0C2340; border: 1px solid #0C2340; }
.slc-btn--outline:active { background: #071A33; border-color: #071A33; color: #FFFFFF; }
.slc-btn--outline:focus-visible { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px #B8955A; }
.slc-btn--inverse { padding-top: 15px; padding-bottom: 15px; background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.5); }
.slc-btn--inverse:active { background: #DCE6F3; border-color: #DCE6F3; color: #0C2340; }
.slc-btn--inverse:focus-visible { box-shadow: 0 0 0 3px #0C2340, 0 0 0 5px #CDAE73; }
@media (hover: hover) {
  .slc-btn--accent:hover { background: #9A7B3C; color: #FFFFFF; }
  .slc-btn--primary:hover { background: #24549A; color: #FFFFFF; }
  .slc-btn--outline:hover { background: #0C2340; color: #FFFFFF; }
  .slc-btn--inverse:hover { background: #FFFFFF; border-color: #FFFFFF; color: #0C2340; }
  .slc-btn--accent:active { background: #7E6430; }
  .slc-btn--primary:active { background: #071A33; }
  .slc-btn--outline:active { background: #071A33; border-color: #071A33; }
  .slc-btn--inverse:active { background: #DCE6F3; border-color: #DCE6F3; }
}

.slc-form-card { box-sizing: border-box; padding: 44px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; scroll-margin-top: 112px; }
.slc-fields { display: grid; gap: 20px; }
.slc-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.slc-field { min-width: 0; }
.slc-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; line-height: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-200); }
.slc-field input, .slc-field select, .slc-field textarea { box-sizing: border-box; display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; font-family: var(--font-body); font-size: 16px;
  color: #FFFFFF; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.3); border-radius: 4px; outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
/* Board inputs and textarea are content-box (48 + border, 110 + padding + border); the select is border-box 48. */
.slc-field input { height: 50px; }
.slc-field textarea { height: 136px; padding: 12px 14px; line-height: 1.5; resize: none; }
.slc-field select { appearance: none; padding-inline: 18px 36px; cursor: pointer;
  background: #0C2340 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; }
[dir="rtl"] .slc-field select { background-position: left 8px center; }
.slc-field select option { color: var(--ink); background: #FFFFFF; }
.slc-field input::placeholder, .slc-field textarea::placeholder { color: #FFFFFF; opacity: 1; }
[dir="rtl"] .slc-field input[dir="ltr"] { text-align: right; }
.slc-submit { width: 100%; height: 52px; padding-top: 0; padding-bottom: 0; }
.slc-submit[aria-busy="true"] { cursor: wait; }
/* The call note belongs to the popup ("Consultation popup" boards); on the page it stays for screen readers only. */
.slc-form-card .slc-form-note { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sl-modal .slc-form-card .slc-form-note, .sl-modal .slc-form-note { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.slc-call-compact { display: none; }
@media (max-width: 600px) {
  .sl-modal-dialog:has(.slc-fields) { grid-template-rows: auto minmax(min-content, 1fr); align-content: stretch; }
  .sl-modal-body:has(.slc-fields), .sl-modal [data-consult-form]:has(> .slc-fields) { display: grid; }
  .sl-modal [data-consult-form] > .slc-fields { display: flex; flex-direction: column; }
  .sl-modal .slc-fields > button.slc-submit { margin-top: auto !important; }
  .sl-modal #consult-status.slc-form-note { margin-block-start: -14px !important; line-height: 20px !important; }
  .sl-modal .slc-form-note:has(> .slc-call-compact) > :first-child { display: none; }
  .sl-modal .slc-call-compact { display: inline; }
}

.slc-disclaimer { font-size: 13px; line-height: 1.6; color: var(--navy-200); }
.slc-form-card [role="status"]:not(:empty) { font-size: 15px; color: #FFFFFF; }


.slc-form-note a { color: #FFFFFF; font-weight: 600; }
@media (hover: hover) { .slc-form-note a:hover { color: #CDAE73; text-decoration: underline; } }

@media (max-width: 900px) {
  .slc-form-card, div.slc-form-card:has(> [data-consult-form]) { padding: 0 !important; background: none; border: 0; border-radius: 0; }
  .slc-fields { gap: 18px; }
  .slc-field-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
