/* /assets/css/contact.css */

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.page--contact .site-main {
    padding: 20px;
    box-sizing: border-box;
}

.contact-page {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 30px;
}

.contact-hero,
.contact-card,
.contact-info__card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 166, 58, 0.22);
    background:
        linear-gradient(135deg, rgba(39, 50, 34, 0.96), rgba(69, 80, 50, 0.93)),
        linear-gradient(180deg, rgba(18, 23, 16, 0.98), rgba(10, 13, 8, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.07),
        0 18px 34px rgba(0, 0, 0, 0.22);
}

.contact-hero {
    margin-bottom: 20px;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 26px;
}

.contact-hero::before,
.contact-card::before,
.contact-info__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, rgba(255, 247, 232, 0.07), rgba(255, 247, 232, 0.015) 34%, transparent 62%),
        radial-gradient(circle at top right, rgba(212, 166, 58, 0.12), transparent 28%);
    pointer-events: none;
}

.contact-hero__eyebrow,
.contact-hero__title,
.contact-hero__summary,
.contact-card__eyebrow,
.contact-card__title,
.contact-card__intro,
.contact-form,
.contact-form__alert,
.contact-info__eyebrow,
.contact-info__title,
.contact-info__text,
.contact-info__list {
    position: relative;
    z-index: 1;
}

.contact-hero__eyebrow,
.contact-card__eyebrow,
.contact-info__eyebrow {
    margin: 0 0 9px;
    color: rgba(212, 166, 58, 0.88);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-hero__title {
    margin: 0;
    color: #fff7e8;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.3rem, 4vw, 3.9rem);
    line-height: 0.94;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.contact-hero__summary,
.contact-card__intro,
.contact-info__text {
    max-width: 780px;
    margin: 14px 0 0;
    color: rgba(244, 240, 228, 0.9);
    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.62;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: 20px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 18px;
}

.contact-info__card,
.contact-card {
    border-radius: 24px;
    padding: clamp(22px, 2.5vw, 30px);
}

.contact-info__title,
.contact-card__title {
    margin: 0;
    color: #fff7e8;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.75rem, 2.35vw, 2.45rem);
    line-height: 0.98;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.contact-card__intro {
    margin-bottom: 20px;
}

.contact-info__list {
    display: grid;
    gap: 17px;
    margin: 18px 0 0;
}

.contact-info__list div {
    display: grid;
    gap: 4px;
}

.contact-info__list dt {
    color: rgba(212, 166, 58, 0.86);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-info__list dd {
    margin: 0;
}

.contact-info__list a {
    color: rgba(244, 240, 228, 0.92);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-info__list a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(212, 166, 58, 0.58);
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form__field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.contact-form__label {
    color: rgba(255, 247, 232, 0.94);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    display: block;
    border: 1px solid rgba(212, 166, 58, 0.18);
    border-radius: 14px;
    background: rgba(10, 13, 8, 0.38);
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.contact-form__input {
    min-height: 50px;
    padding: 0 14px;
}

.contact-form__textarea {
    min-height: 190px;
    padding: 12px 14px;
    resize: vertical;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: rgba(212, 166, 58, 0.44);
    box-shadow: 0 0 0 3px rgba(212, 166, 58, 0.11);
    background: rgba(10, 13, 8, 0.48);
}

.contact-form__input.is-invalid,
.contact-form__textarea.is-invalid {
    border-color: rgba(201, 106, 106, 0.52);
    box-shadow: 0 0 0 3px rgba(201, 106, 106, 0.1);
}

.contact-form__error {
    margin: 0;
    color: #f0b7b7;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

.contact-form__alert {
    padding: 14px 16px;
    border-radius: 14px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-form__alert--error {
    border: 1px solid rgba(201, 106, 106, 0.28);
    background: rgba(201, 106, 106, 0.12);
    color: #f2cdcd;
}

.contact-form__recaptcha {
    display: grid;
    gap: 8px;
    min-height: 78px;
    align-items: start;
}

.contact-form__actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 2px;
}

.contact-form__submit {
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid rgba(212, 166, 58, 0.34);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(166, 30, 42, 0.96), rgba(122, 24, 34, 0.98));
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 22px rgba(0, 0, 0, 0.22);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.contact-form__submit:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 166, 58, 0.50);
    background: linear-gradient(180deg, rgba(182, 33, 47, 0.98), rgba(138, 27, 38, 0.99));
}

.contact-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    width: min(360px, calc(100vw - 32px));
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease;
    pointer-events: none;
}

.contact-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-toast.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
}

.contact-toast__inner {
    position: relative;
    padding: 15px 46px 15px 16px;
    border: 1px solid rgba(111, 187, 128, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(41, 72, 45, 0.96), rgba(27, 49, 31, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 14px 28px rgba(0, 0, 0, 0.18);
}

.contact-toast__title {
    margin: 0 0 4px;
    color: #edf7ee;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 850;
}

.contact-toast__text {
    margin: 0;
    color: #d8efd8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.88rem;
    line-height: 1.45;
}

.contact-toast__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #edf7ee;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.contact-toast__close:hover {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 980px) {
    .page--contact .site-main {
        padding: 16px;
    }

    .contact-page {
        width: min(100%, calc(100% - 12px));
    }

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

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

@media (max-width: 640px) {
    .page--contact .site-main {
        padding: 12px;
    }

    .contact-page {
        width: 100%;
    }

    .contact-hero,
    .contact-card,
    .contact-info__card {
        border-radius: 20px;
        padding: 20px 18px;
    }

    .contact-form__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .contact-toast {
        top: 14px;
        right: 14px;
        left: 14px;
        width: auto;
    }
}

/* Contact page: let the page scroll normally so footer sits after content. */
body.page--contact {
    overflow-x: hidden;
    overflow-y: auto;
}

body.page--contact .site-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    align-items: start;
}

body.page--contact .site-main {
    min-height: 0;
    overflow: visible;
}

body.page--contact .site-footer {
    align-self: end;
}

/* Contact page: one clean semi-transparent image container. */
body.page--contact .contact-page {
    position: relative;
    overflow: hidden;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 30px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(212, 166, 58, 0.24);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(13, 18, 12, 0.74), rgba(42, 52, 31, 0.70)),
        url("/assets/images/container3.png") center / cover no-repeat;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.08),
        0 20px 38px rgba(0, 0, 0, 0.24);
    box-sizing: border-box;
}

body.page--contact .contact-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(212, 166, 58, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(8, 12, 8, 0.12), rgba(8, 12, 8, 0.34));
    pointer-events: none;
}

body.page--contact .contact-hero,
body.page--contact .contact-card,
body.page--contact .contact-info__card {
    position: relative;
    z-index: 1;
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.page--contact .contact-hero::before,
body.page--contact .contact-card::before,
body.page--contact .contact-info__card::before {
    display: none !important;
}

body.page--contact .contact-hero {
    margin: 0 0 24px;
    padding: 0 0 22px;
    border-bottom: 1px solid rgba(255, 247, 232, 0.14) !important;
}

body.page--contact .contact-layout {
    position: relative;
    z-index: 1;
    gap: clamp(22px, 3vw, 34px);
}

body.page--contact .contact-info {
    gap: 24px;
}

body.page--contact .contact-info__card,
body.page--contact .contact-card {
    padding: 0 !important;
}

body.page--contact .contact-card--form {
    padding-left: clamp(0px, 2vw, 26px) !important;
    border-left: 1px solid rgba(255, 247, 232, 0.13) !important;
}

body.page--contact .contact-hero__title,
body.page--contact .contact-card__title,
body.page--contact .contact-info__title {
    color: #fff7e8 !important;
}

body.page--contact .contact-hero__summary,
body.page--contact .contact-card__intro,
body.page--contact .contact-info__text,
body.page--contact .contact-info__list a {
    color: rgba(244, 240, 228, 0.94) !important;
}

body.page--contact .contact-form__input,
body.page--contact .contact-form__textarea {
    background: rgba(7, 11, 7, 0.46) !important;
    border-color: rgba(255, 247, 232, 0.16) !important;
}

body.page--contact .contact-form__input:focus,
body.page--contact .contact-form__textarea:focus {
    background: rgba(7, 11, 7, 0.56) !important;
    border-color: rgba(212, 166, 58, 0.48) !important;
}

@media (max-width: 980px) {
    body.page--contact .contact-card--form {
        padding-left: 0 !important;
        padding-top: 22px !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 247, 232, 0.13) !important;
    }
}

@media (max-width: 640px) {
    body.page--contact .contact-page {
        width: calc(100% - 22px);
        padding: 20px 18px;
        border-radius: 22px;
    }

    body.page--contact .contact-hero {
        padding-bottom: 18px;
        margin-bottom: 20px;
    }
}

.contact-form__alert--hidden,
.contact-form__error--hidden {
    display: none !important;
}

.contact-form.is-submitting {
    opacity: 0.78;
}

.contact-form__submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none !important;
}

.contact-toast--error .contact-toast__inner {
    border-color: rgba(201, 106, 106, 0.30);
    background: linear-gradient(180deg, rgba(93, 38, 38, 0.96), rgba(61, 27, 27, 0.98));
}

.contact-toast--error .contact-toast__text {
    color: #f2cdcd;
}

/* Contact page: override browser autofill colors on dark fields. */
body.page--contact .contact-form input:-webkit-autofill,
body.page--contact .contact-form input:-webkit-autofill:hover,
body.page--contact .contact-form input:-webkit-autofill:focus,
body.page--contact .contact-form textarea:-webkit-autofill,
body.page--contact .contact-form textarea:-webkit-autofill:hover,
body.page--contact .contact-form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff7e8 !important;
    caret-color: #fff7e8 !important;
    box-shadow: 0 0 0 1000px rgba(7, 11, 7, 0.82) inset !important;
    border-color: rgba(212, 166, 58, 0.34) !important;
    transition: background-color 9999s ease-in-out 0s !important;
}

body.page--contact .contact-form input:-internal-autofill-selected,
body.page--contact .contact-form textarea:-internal-autofill-selected {
    color: #fff7e8 !important;
    -webkit-text-fill-color: #fff7e8 !important;
}

/* Contact page: stronger mobile autofill paint override. */
body.page--contact .contact-form {
    color-scheme: dark;
}

body.page--contact .contact-form input,
body.page--contact .contact-form textarea {
    color: #fff7e8 !important;
    caret-color: #fff7e8 !important;
    -webkit-text-fill-color: #fff7e8 !important;
    background-clip: padding-box !important;
}

body.page--contact .contact-form input:-webkit-autofill,
body.page--contact .contact-form input:-webkit-autofill:hover,
body.page--contact .contact-form input:-webkit-autofill:focus,
body.page--contact .contact-form input:-webkit-autofill:active,
body.page--contact .contact-form textarea:-webkit-autofill,
body.page--contact .contact-form textarea:-webkit-autofill:hover,
body.page--contact .contact-form textarea:-webkit-autofill:focus,
body.page--contact .contact-form textarea:-webkit-autofill:active {
    color: #fff7e8 !important;
    -webkit-text-fill-color: #fff7e8 !important;
    caret-color: #fff7e8 !important;
    background-color: rgba(7, 11, 7, 0.82) !important;
    box-shadow: 0 0 0 1000px rgba(7, 11, 7, 0.88) inset !important;
}
