/* P4-B-ADMIN-02 enquiry connector states. v2.7 tokens: ink #24383a, jade #1d625b, gold #ba965c.
   Logical properties only, so Arabic (dir="rtl") mirrors automatically. */

/* B1 — backend unreachable: persistent banner above the first field */
.gwc-banner {
  position: static; display: block; box-sizing: border-box; width: 100%;
  margin-block: 0 20px; padding-block: 14px; padding-inline: 16px 18px;
  background: rgba(186, 150, 92, .1); border-inline-start: 4px solid #ba965c; border-start-end-radius: 4px; border-end-end-radius: 4px;
  color: #24383a; font-size: 16px; line-height: 1.6;
}
.gwc-banner[hidden] { display: none; }
.gwc-banner a { color: #1d625b; text-decoration: underline; text-underline-offset: 3px; }
#enquiry-form.gwc-offline { opacity: .5; }

/* submit button */
.gwc-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; box-sizing: border-box; }
.form-submit-row .gwc-submit:disabled { cursor: not-allowed; opacity: 1; }
/* v2.7 release-v2.css hides disabled buttons in .v3-contact-form; the offline/sending states must stay visible. */
.v3-contact-form .gwc-submit:disabled { display: inline-flex; }
.gwc-submit[aria-busy="true"] { cursor: progress; }

/* B2 — sending. Physical border sides on purpose: the spinner must not mirror in RTL. */
.gwc-spinner {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: gwc-spin .8s linear infinite;
}
@keyframes gwc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gwc-spinner { animation-duration: 2.4s; } }
.gwc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gwc-fail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.gwc-fail[hidden] { display: none; }
.gwc-fail p { margin: 0; color: #a34738; font-size: 14px; } /* the only red text in the flow */
.gwc-fail button { min-height: 44px; }
.gwc-note { margin: 0; color: #24383a; font-size: 14px; }
.gwc-note:empty { display: none; }
/* P4-B-ADMIN-03: emailed-receipt checkbox notice (checkbox itself reuses .consent-check) */
.gwc-receipt-consent { margin-top: 6px; }
.gwc-receipt-notice { margin: 2px 0 14px; padding-inline-start: 24px; color: #24383a; font-size: 13px; line-height: 1.6; }

/* B3 — receipt rendered in place of the form */
.gwc-receipt { display: grid; justify-items: start; gap: 12px; }
.gwc-check {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #1d625b; color: #fff; transform: none;
}
.gwc-check svg { width: 26px; height: 26px; }
.gwc-receipt h2 { margin: 0; color: #24383a; }
.gwc-receipt h2:focus { outline: 2px solid #1d625b; outline-offset: 4px; }
.gwc-ref-label { margin: 0; color: #526164; font-size: 14px; }
.gwc-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; max-width: 100%; }
.gwc-ref-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 700; font-size: 20px; color: #24383a; letter-spacing: .02em; overflow-wrap: anywhere; min-width: 0;
}
.gwc-copy {
  min-width: 44px; min-height: 44px; padding-block: 6px; padding-inline: 14px;
  border: 1px solid #1d625b; border-radius: 4px; background: #fff; color: #1d625b; font: inherit; font-size: 14px; cursor: pointer;
}
.gwc-copy:focus-visible, .gwc-home:focus-visible { outline: 2px solid #1d625b; outline-offset: 2px; }
.gwc-receipt p { margin: 0; color: #24383a; }
.gwc-receipt .gwc-keep { color: #526164; font-size: 14px; }
.gwc-home { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 6px; }
.gwc-arrow { display: inline-block; }
[dir="rtl"] .gwc-arrow { transform: scaleX(-1); } /* "back" arrow mirrors; check and spinner do not */

/* B4 — static enquiry-received content */
.gwc-received { max-width: 760px; }
.gwc-received p { color: #24383a; font-size: 16px; line-height: 1.7; }
.gwc-received a { color: #1d625b; text-decoration: underline; }
.gwc-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; }
.gwc-channels[hidden] { display: none; }
.gwc-channels .contact-channel { margin: 0; padding-block: 14px; padding-inline: 16px; border: 1px solid #dce5df; border-radius: 6px; background: #fff; }
.gwc-channels dt { margin: 0 0 4px; color: #526164; font-size: 13px; }
.gwc-channels dd { margin: 0; color: #24383a; font-weight: 600; overflow-wrap: anywhere; }

/* B5 — phones */
@media (max-width: 600px) {
  .gwc-banner { margin-block-end: 16px; }
  .form-submit-row .gwc-submit, .gwc-home { width: 100%; min-height: 48px; justify-content: center; }
  .gwc-ref-code { font-size: 18px; }
}
