/* ============================================================
   Contact page (/contact)
   Relies on the --home-* colour variables from homepage-messaging.css,
   which connect.header.php also loads on this page.
   ============================================================ */

/* Shared container width and gutters, aligned with the navbar */
body.page-contact .topbar > .container,
body.page-contact .navbar > .container {
    max-width: 1140px;
}

.contact-page > section > .container {
    max-width: 1140px;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 575px) {
    .contact-page > section > .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Hero: copy on the left, photo on the right */
.contact-hero {
    background: #fff;
    padding: 52px 0 56px;
}

.contact-hero__grid {
    align-items: center;
    display: grid;
    gap: 56px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.contact-hero__badge {
    align-items: center;
    background: var(--home-green-soft);
    border-radius: 24px;
    display: inline-flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 16px 6px 10px;
}

.contact-hero__badge svg {
    color: var(--home-green);
    flex-shrink: 0;
    height: 16px;
    width: 16px;
}

.contact-hero__badge-text {
    color: var(--home-blue);
    font-family: Saira, "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-hero h1 {
    color: var(--home-blue);
    font-family: Saira, "Open Sans", sans-serif;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 18px;
    padding: 0;
    text-wrap: balance;
}

.contact-hero h1 em {
    color: var(--home-green);
    font-style: normal;
}

.contact-hero__divider {
    background: var(--home-green);
    border-radius: 2px;
    height: 4px;
    margin-bottom: 20px;
    width: 48px;
}

.contact-hero__body {
    color: var(--home-blue-soft);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 500px;
}

.contact-hero__cta {
    align-items: center;
    background: var(--home-green);
    border-radius: 25px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 12px 24px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 180ms ease;
}

.contact-hero__cta:hover,
.contact-hero__cta:focus {
    background: var(--home-blue);
    color: #fff;
}

.contact-hero__media {
    margin: 0;
}

.contact-hero__media img {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(32, 55, 67, 0.12);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 991px) {
    .contact-hero__grid {
        gap: 40px;
        grid-template-columns: 1fr;
    }

    .contact-hero__media {
        justify-self: center;
        max-width: 440px;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .contact-hero {
        padding: 36px 0 44px;
    }

    .contact-hero__grid {
        gap: 32px;
    }
}

/* Info cards, stacked beside the form */
.contact-info {
    display: grid;
    gap: 20px;
}

.contact-info__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(42, 68, 81, 0.08);
    padding: 28px 24px;
}

.contact-info__icon {
    align-items: center;
    background: var(--home-green-soft);
    border-radius: 10px;
    color: var(--home-green);
    display: flex;
    height: 44px;
    justify-content: center;
    margin-bottom: 16px;
    width: 44px;
}

.contact-info__icon svg {
    height: 20px;
    width: 20px;
}

.contact-info .contact-info__label {
    color: var(--home-blue);
    font-family: Saira, "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
    padding: 0;
    text-transform: uppercase;
}

.contact-info__value {
    color: var(--home-blue-soft);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.contact-info__value a {
    color: var(--home-blue);
    font-weight: 600;
    text-decoration: none;
}

.contact-info__value a:hover {
    color: var(--home-green);
}

.contact-info__link {
    align-items: center;
    color: var(--home-blue);
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 4px;
    margin-top: 12px;
    min-height: 32px;
    text-decoration: underline;
    text-decoration-color: var(--home-green);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.contact-info__link:hover,
.contact-info__link:focus {
    color: var(--home-green);
}

.contact-info__link:focus-visible {
    outline: 3px solid var(--home-blue);
    outline-offset: 2px;
}

/* Map */
.contact-map {
    background: #fff;
    padding: 56px 0;
}

.contact-map__frame {
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(42, 68, 81, 0.1);
    overflow: hidden;
}

.contact-map__frame iframe {
    border: 0;
    display: block;
    height: 400px;
    width: 100%;
}

/* Form and info section: form on the left (wider), info cards on the right */
.contact-form-section {
    background: var(--home-grey-soft);
    padding: 56px 0 72px;
    scroll-margin-top: 80px;
}

.contact-form-section__grid {
    align-items: start;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
}

@media (max-width: 991px) {
    .contact-form-section__grid {
        grid-template-columns: 1fr;
    }
}

.contact-form-section .contact-form-section__heading {
    color: var(--home-blue);
    font-family: Saira, "Open Sans", sans-serif;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 800;
    margin: 0 0 6px;
    padding: 0;
}

.contact-form-section__sub {
    color: var(--home-blue-soft);
    font-size: 15px;
    margin-bottom: 24px;
}

.contact-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(42, 68, 81, 0.08);
    padding: 36px 36px 32px;
}

.contact-form__error {
    color: #c0392b;
    font-size: 13px;
}

.contact-form__error:not(:empty) {
    margin-bottom: 16px;
}

.contact-form__field-label {
    color: var(--home-blue);
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.contact-form input[type="text"],
.contact-form textarea {
    background: var(--home-grey-soft);
    border: 1.5px solid var(--home-grey);
    border-radius: 8px;
    color: var(--home-blue);
    font-size: 14px;
    padding: 12px 16px;
    transition: border-color 180ms ease;
    width: 100%;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    border-color: var(--home-green);
    outline: none;
}

.contact-form input[type="text"]::placeholder,
.contact-form textarea::placeholder {
    color: #7a96a3;
    opacity: 1;
}

.contact-form textarea {
    display: block;
    min-height: 110px;
    resize: vertical;
}

.contact-form__group {
    border: 0;
    margin: 28px 0 0;
    min-width: 0;
    padding: 0;
}

.contact-form .contact-form__group-label {
    color: var(--home-blue);
    display: block;
    float: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4;
    margin: 0 0 12px;
    padding: 0;
    text-transform: uppercase;
    width: 100%;
}

.contact-form__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.contact-form__option {
    align-items: center;
    color: var(--home-blue-soft);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    gap: 6px;
}

.contact-form__option input {
    accent-color: var(--home-green);
    cursor: pointer;
    flex-shrink: 0;
    height: 16px;
    margin: 0;
    width: 16px;
}

/* Product chips: real checkboxes, visually hidden, styled as pills */
.contact-form__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-chip {
    cursor: pointer;
    display: inline-flex;
    margin: 0;
    position: relative;
}

.contact-chip__input {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.contact-chip__label {
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--home-grey);
    border-radius: 999px;
    color: var(--home-blue);
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
    line-height: 1.2;
    min-height: 42px;
    padding: 9px 18px;
    -webkit-tap-highlight-color: transparent;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
    user-select: none;
}

/* Check mark drawn with borders, shown only when selected */
.contact-chip__label::before {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    display: none;
    height: 10px;
    margin: -3px 1px 0 0;
    transform: rotate(45deg);
    width: 5px;
}

.contact-chip__input:checked + .contact-chip__label {
    background: var(--home-green);
    border-color: var(--home-green);
    color: #fff;
}

.contact-chip__input:checked + .contact-chip__label::before {
    display: inline-block;
}

/* Hover only on devices that really hover, so taps don't leave a sticky state */
@media (hover: hover) {
    .contact-chip:hover .contact-chip__label {
        background: var(--home-green-soft);
        border-color: var(--home-green);
    }

    .contact-chip:hover .contact-chip__input:checked + .contact-chip__label {
        background: #93aa33;
        border-color: #93aa33;
    }
}

.contact-chip__input:focus-visible + .contact-chip__label {
    outline: 3px solid var(--home-blue);
    outline-offset: 2px;
}

.contact-form__submit-row {
    margin-top: 28px;
}

.contact-form__required-note {
    color: var(--home-blue-soft);
    font-size: 12px;
    margin-bottom: 16px;
}

.contact-form__btn {
    align-items: center;
    background: var(--home-green);
    border: none;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.06em;
    padding: 14px 40px;
    text-transform: uppercase;
    transition: background 180ms ease;
}

.contact-form__btn:hover,
.contact-form__btn:focus {
    background: var(--home-blue);
}

.contact-form__btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 575px) {
    .contact-form {
        padding: 28px 20px 24px;
    }

    .contact-form__options {
        flex-direction: column;
    }
}
