/* ==========================================================
   CONTACT US PAGE
   Loaded only by Views/ContactUs/Index.cshtml via ~/bundles/contact-css.
   Site-wide components stay in style.css / mobile_style.css.
   ========================================================== */

.contact-title {
    margin-bottom: 40px;
    text-align: center;
}

/* Form on the left, company details on the right. */
.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
}

.contact-lead {
    margin: 0 0 24px;
    font-size: 18px;
    font-style: italic;
    font-weight: 700;
}

.contact-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-left: 4px solid;
    line-height: 1.5;
}

.contact-alert--sent {
    border-color: #2e7d32;
    color: #1b5e20;
    background-color: #edf7ee;
}

.contact-alert--error {
    border-color: #c62828;
    color: #b71c1c;
    background-color: #fdecea;
}

/* ---- Form: two columns, wide fields across ---- */
.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form__wide {
    grid-column: 1 / -1;
}

.validation-summary-valid {
    display: none;
}

.contact-alert--error ul {
    margin: 0;
    padding-left: 18px;
}

.contact-form .form-control,
.contact-form .form-select {
    max-width: none; /* Content/Site.css (the MVC template) caps every input at 280px */
    border-color: #999;
    border-radius: 0;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(255, 237, 0, 0.6);
}

.contact-form__message.form-control {
    height: 180px;
}

.contact-form__error {
    display: block;
    margin-top: 4px;
    color: #c62828;
    font-size: 14px;
}

/* Honeypot, kept out of sight and out of the tab order. */
.contact-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.contact-form__send {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    padding: 12px 40px;
    border: 1px solid #111;
    color: #fff;
    font-family: "Sui Generis", Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    background-color: #111;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}

.contact-form__send:hover,
.contact-form__send:focus-visible {
    color: #111;
    background-color: #ffed00;
}

.contact-form__send:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
}

.contact-form__note {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* ---- Company details, as on the old site: bold italic headings, two centred columns split by a line ---- */
.contact-info__title {
    margin: 0 0 24px;
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    text-align: center;
}

.contact-info__row {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.contact-info__row > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    min-height: 120px;
    padding: 0 12px;
}

.contact-info__row > div:first-child {
    border-right: 1px solid #000;
}

.contact-info__row address,
.contact-info__row p,
.contact-info__list {
    margin: 0;
    font-size: 18px;
    font-style: normal;
    letter-spacing: 1px;
    line-height: 35px;
}

.contact-info__row address {
    text-align: center;
}

.contact-info__list {
    padding: 0;
    list-style: none;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}

/* Keep the number whole on narrow screens (it moves under "TEL" instead of breaking). */
.contact-info a[href^="tel:"] {
    white-space: nowrap;
}

.contact-info__mail {
    padding: 0;
    border: 0;
    color: inherit;
    letter-spacing: inherit;
    background: none;
    cursor: pointer;
}

.contact-info a:hover,
.contact-info__mail:hover {
    color: rgba(0, 0, 0, 0.54);
}

.contact-info__mail:focus-visible,
.contact-info a:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* ---- Photo card while hovering a staff address (old site's "girlblock_temp") ---- */
.contact-preview__card {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1040;
    width: min(20vw, 300px);
    margin: 0;
    padding: 8px 16px;
    border: 1px solid #000;
    background-color: #fff;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.contact-preview__card.is-visible {
    opacity: 1;
}

.contact-preview__img {
    display: block;
    width: 100%;
    height: auto;
}

.contact-preview__card figcaption {
    margin-top: 12px;
    font-size: 26px;
    font-weight: 500;
    text-align: center;
}

/* ==========================================================
   Contact Us: responsive
   ========================================================== */
@media (hover: none) {
    .contact-preview {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 575.98px) {
    .contact-title {
        margin-bottom: 24px;
        font-size: 28px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .contact-form__send {
        width: 100%;
        justify-content: center;
    }

    .contact-info__row {
        margin-bottom: 40px;
    }

    .contact-info__row address,
    .contact-info__row p,
    .contact-info__list {
        font-size: 14px;
        letter-spacing: 0;
        line-height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-preview__card,
    .contact-form__send {
        transition: none;
    }
}
