/* /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;
    max-width: 1120px;
    margin: 0 auto;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 28px 30px 26px;
    border: 1px solid rgba(212, 166, 58, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(35, 25, 19, 0.97), rgba(19, 14, 11, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 16px 30px rgba(0, 0, 0, 0.12);
}

.contact-hero::before,
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 30%, transparent 58%),
        radial-gradient(circle at top right, rgba(212, 166, 58, 0.08), transparent 26%);
    pointer-events: none;
}

.contact-hero__eyebrow,
.contact-hero__title,
.contact-hero__summary,
.contact-card__title,
.contact-form,
.contact-form__alert {
    position: relative;
    z-index: 1;
}

.contact-hero__eyebrow {
    margin: 0 0 8px;
    color: var(--color-accent);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.contact-hero__title {
    margin: 0;
    color: var(--color-text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 0.94;
}

.contact-hero__summary {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--color-text-muted);
    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

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

.contact-layout--single {
    max-width: 860px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(212, 166, 58, 0.12);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(35, 25, 19, 0.97), rgba(19, 14, 11, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 16px 30px rgba(0, 0, 0, 0.12);
}

.contact-card__title {
    margin: 0 0 18px;
    color: var(--color-text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.95rem, 2.4vw, 2.5rem);
    line-height: 0.98;
}

.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: var(--color-text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    display: block;
    border: 1px solid rgba(212, 166, 58, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--color-text);
    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::placeholder,
.contact-form__textarea::placeholder {
    color: var(--color-text-soft);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: rgba(212, 166, 58, 0.34);
    box-shadow: 0 0 0 3px rgba(212, 166, 58, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

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

.contact-form__error {
    margin: 0;
    color: #efb3b3;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.82rem;
    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: 600;
    line-height: 1.5;
}

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

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

.contact-form__submit {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid rgba(212, 166, 58, 0.26);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(166, 30, 42, 0.96), rgba(122, 24, 34, 0.98));
    color: #f8efdc;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 12px 22px rgba(0, 0, 0, 0.18);
    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.40);
    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: 800;
}

.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: 900px) {
    .page--contact .site-main {
        padding: 16px;
    }

    .contact-hero {
        margin-bottom: 16px;
        padding: 22px 20px 20px;
        border-radius: 20px;
    }

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

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

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