/* =====================================================================
   contact-page.css  —  /contact-us
   ---------------------------------------------------------------------
   Loaded by templates/page-contact-us.php AFTER homepage.css (design
   tokens, header, footer) and content-pages.css (.bq-band, .bq-container,
   .bq-page-intro and the rest of the shared page furniture).

   Scope is only the form and its aside — everything structural on the page
   is already provided by those two files, and nothing here overrides them.

   The field styling deliberately matches assets/css/auth-pages.css: same
   38px control height, same 2px radius, same accent blue, same focus ring.
   A visitor who has just signed up should not meet a differently-shaped
   text input two clicks later.
   ===================================================================== */

.bq-contact, .bq-contact *, .bq-contact *::before, .bq-contact *::after { box-sizing: border-box; }

.bq-contact {
    --bq-contact-field-h: 38px;
    --bq-contact-accent: #1a7fe0;
    --bq-contact-accent-hover: #1568bd;

    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* --- The form card --- */
.bq-contact__card {
    background: var(--white);
    border: 1px solid var(--bq-line);
    border-radius: 3px;
    padding: 28px 30px 26px;
    box-shadow: 0 1px 2px rgba(0,20,40,.04), 0 10px 30px rgba(0,20,40,.06);
    position: relative;
}
/* Accent hairline across the top edge, same device the auth card uses. */
.bq-contact__card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--bq-contact-accent) 0%, #4aa3df 45%, rgba(74,163,223,0) 100%);
    border-radius: 3px 3px 0 0;
}

.bq-contact__title {
    margin: 0 0 4px;
    font-size: 21px; font-weight: 700; letter-spacing: -.015em;
    color: var(--bq-ink);
}
.bq-contact__sub {
    margin: 0 0 20px;
    font-size: 13px; color: var(--gray-500);
}

/* --- Fields --- */
.bq-contact__field { margin-bottom: 14px; }
.bq-contact__pair  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.bq-contact__field > label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px; font-weight: 700;
    color: #33475b;
}
.bq-contact__field > label span { color: var(--accent-red); }

.bq-contact input[type="text"],
.bq-contact input[type="email"],
.bq-contact select,
.bq-contact textarea {
    width: 100%;
    padding: 0 12px;
    font-family: var(--font-sans);
    font-size: 14.5px;
    color: var(--bq-ink);
    background: #fbfcfd;
    border: 1px solid var(--bq-line-strong);
    border-radius: 2px;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
    -webkit-appearance: none; appearance: none;
}
.bq-contact input[type="text"],
.bq-contact input[type="email"],
.bq-contact select { height: var(--bq-contact-field-h); }

.bq-contact textarea {
    padding: 10px 12px;
    line-height: 1.55;
    resize: vertical;
    min-height: 130px;
}

/* Native select arrow is inconsistent across platforms and appearance:none
   removes it entirely, so the chevron is drawn as a background image. */
.bq-contact select {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.bq-contact input:hover, .bq-contact select:hover, .bq-contact textarea:hover { border-color: #a9bccd; }

.bq-contact input:focus, .bq-contact select:focus, .bq-contact textarea:focus {
    background: var(--white);
    border-color: var(--bq-contact-accent);
    box-shadow: 0 0 0 3px rgba(26,127,224,.15);
}

.bq-contact .is-invalid, .bq-contact .is-invalid:hover { border-color: var(--accent-red); }
.bq-contact .is-invalid:focus { box-shadow: 0 0 0 3px rgba(211,47,47,.13); }

.bq-contact ::placeholder { color: #a9b4c0; }

/* --- Honeypot ---
   Moved off-screen rather than display:none. A bot that respects
   display:none would skip it and defeat the trap; one that reads the DOM
   sees a perfectly ordinary text input. aria-hidden on the wrapper plus
   tabindex="-1" on the input keep it away from real users entirely. */
.bq-contact__hp {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* --- reCAPTCHA --- */
.bq-contact__captcha { margin: 4px 0 16px; min-height: 78px; }
@media (max-width: 400px) {
    .bq-contact__captcha { transform: scale(.86); transform-origin: 0 0; height: 68px; min-height: 0; }
}

/* --- Submit --- */
.bq-contact__submit {
    position: relative;
    width: 100%;
    height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-sans);
    font-size: 14.5px; font-weight: 700;
    color: var(--white);
    background: var(--bq-contact-accent);
    border: 1px solid var(--bq-contact-accent);
    border-radius: 2px;
    cursor: pointer; overflow: hidden;
    box-shadow: 0 1px 2px rgba(26,127,224,.24);
    transition: background-color .18s ease, border-color .18s ease, transform .12s ease, opacity .18s ease, box-shadow .18s ease;
}
.bq-contact__submit:hover:not(:disabled) {
    background: var(--bq-contact-accent-hover);
    border-color: var(--bq-contact-accent-hover);
    box-shadow: 0 2px 8px rgba(26,127,224,.3);
}
.bq-contact__submit:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.bq-contact__submit:focus-visible { outline: 2px solid var(--blue-darkest); outline-offset: 2px; }
.bq-contact__submit:disabled { cursor: not-allowed; opacity: .68; box-shadow: none; }

.bq-contact__submit-label { transition: opacity .18s ease, transform .18s ease; }
.bq-contact__spinner {
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.32);
    border-top-color: var(--white);
    border-radius: 50%;
    opacity: 0;
    animation: bqContactSpin .62s linear infinite;
    transition: opacity .18s ease;
}
.bq-contact__submit.is-busy .bq-contact__submit-label { opacity: 0; transform: translateY(-4px); }
.bq-contact__submit.is-busy .bq-contact__spinner { opacity: 1; }

/* --- Messages --- */
.bq-contact__messages {
    margin-bottom: 16px;
    padding: 11px 13px;
    font-size: 13.5px; line-height: 1.55;
    border-radius: 2px;
    border-left: 3px solid var(--accent-red);
    background: rgba(211,47,47,.06);
    color: #9c2020;
}
.bq-contact__messages[hidden] { display: none !important; }
.bq-contact__messages.is-success {
    border-left-color: var(--bq-green);
    background: var(--bq-green-soft);
    color: #14612f;
}
.bq-contact__messages ul { margin: 0; padding-left: 17px; }
.bq-contact__messages li + li { margin-top: 4px; }
.bq-contact__messages p { margin: 0; }

/* Replaces the whole form once the message is away, so there is no
   half-filled form sitting under a success notice inviting a second send. */
.bq-contact__done {
    text-align: center;
    padding: 16px 0 8px;
}
.bq-contact__done-mark {
    width: 52px; height: 52px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bq-green-soft);
    color: var(--bq-green);
}
.bq-contact__done-mark svg { width: 26px; height: 26px; }
.bq-contact__done h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: var(--bq-ink); }
.bq-contact__done p  { margin: 0; font-size: 14px; line-height: 1.6; color: var(--gray-500); }

/* --- Aside --- */
.bq-contact__aside { display: grid; gap: 16px; }

.bq-contact__panel {
    background: var(--gray-100);
    border: 1px solid var(--bq-line);
    border-radius: 3px;
    padding: 18px 20px;
}
.bq-contact__panel h3 {
    margin: 0 0 7px;
    font-size: 13px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--bq-ink);
}
.bq-contact__panel p {
    margin: 0;
    font-size: 13.5px; line-height: 1.6;
    color: var(--gray-700);
}
.bq-contact__panel a { color: var(--bq-contact-accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .18s ease; }
.bq-contact__panel a:hover { border-bottom-color: currentColor; }

.bq-contact__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bq-contact__links li { font-size: 13px; line-height: 1.5; color: var(--gray-500); }
.bq-contact__links a { font-weight: 700; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .bq-contact { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
    .bq-contact__pair { grid-template-columns: 1fr; gap: 0; }
    .bq-contact__card { padding: 24px 20px 22px; }
}

@keyframes bqContactSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .bq-contact *, .bq-contact *::before, .bq-contact *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
