/* ==========================================================
   HEADER CONTACT MODAL
   Shared contact_form; scoped styles for this header instance.
   ========================================================== */
.header-contact-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid #111;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
}
.header-contact-trigger:hover,
.header-contact-trigger:focus-visible { background: #303030; color: #fff; text-decoration: none; }
.header-contact-trigger[hidden] { display: none !important; }
.header-contact-trigger__caret { width: 20px; height: 20px; flex: 0 0 20px; transition: transform 160ms ease; }
.header-contact-trigger[aria-expanded="true"] .header-contact-trigger__caret { transform: rotate(180deg); }
html.header-contact-is-open { overflow: hidden; }
dialog.header-contact {
    position: fixed;
    inset: auto;
    top: 12px;
    right: 12px;
    width: min(430px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    margin: 0;
    padding: 30px 28px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #111;
    box-shadow: 0 12px 44px rgba(0, 0, 0, .2);
    overflow: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
}
dialog.header-contact:not([open]) { display: none; }
dialog.header-contact::backdrop { background: rgba(0, 0, 0, .24); }
.header-contact *, .header-contact *::before, .header-contact *::after { box-sizing: border-box; }
.header-contact__close {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.header-contact__close:hover { background: #f3f3f3; }
.header-contact .header-contact__title {
    margin: 10px 25px 6px 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
}
.header-contact__intro { margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.header-contact__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.header-contact .header-contact__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 1 155px;
    min-height: 44px;
    padding: 10px 8px;
    border: 1px solid #dedede;
    border-radius: 999px;
    color: #111;
    background: #fff;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}
.header-contact .header-contact__action:hover { background: #f6f6f6; }
.header-contact .x-contact-form, .header-contact fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.header-contact .x-contact-form legend {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
}
.header-contact .c-form-list { display: block; list-style: none; margin: 0; padding: 0; }
.header-contact .c-form-list__item { display: block; width: 100%; max-width: 100%; margin: 0 0 16px; padding: 0; }
.header-contact .c-form-label { display: block; margin: 0 0 6px; font-size: 14px; line-height: 1.4; }
.header-contact .c-form-input, .header-contact .c-form-select__dropdown {
    width: 100%; max-width: 100%; min-width: 0; min-height: 42px;
    padding: 9px 11px; border: 1px solid #c9c9c9; border-radius: 4px;
    background: #fff; color: #111; font: inherit; font-size: 16px; line-height: 1.4;
}
.header-contact .c-form-select__dropdown { padding-right: 32px; }
.header-contact textarea.c-form-input { min-height: 100px; resize: vertical; }
.header-contact .c-control-group { display: flex; gap: 8px; }
.header-contact .c-control-group__field { flex: 1 1 0; width: 0; }
.header-contact .c-control-group__field:disabled { background: #f5f5f5; color: #444; opacity: 1; }
.header-contact [data-hook="contact-form__submit"] {
    width: 100%; min-height: 48px; padding: 12px 20px;
    border: 1px solid #111; border-radius: 999px;
    background: #111; color: #fff; font: inherit; font-size: 16px;
    font-weight: 600; line-height: 1.3; text-transform: none; cursor: pointer;
}
.header-contact [data-hook="contact-form__submit"]:hover { background: #303030; }
.header-contact a:focus-visible, .header-contact button:focus-visible,
.header-contact input:focus-visible, .header-contact select:focus-visible,
.header-contact textarea:focus-visible, .header-contact-trigger:focus-visible {
    outline: 2px solid #666; outline-offset: 3px;
}
@media (max-width: 767px) {
    dialog.header-contact { padding: 24px 20px; }
    .header-contact .header-contact__title { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    .header-contact-trigger__caret { transition: none; }
}

