/* =========================================================================
   CONTACT CSS
   Author: Antigravity
   Design System: "The Ethereal Sanctuary" (Họa Tựu Editorial)
   ========================================================================= */

/* Global Overlay */
.contact-page {
    min-height: 100vh;
}

/* -------------------------------------------------------------------------
   1. HERO SECTION
   ------------------------------------------------------------------------- */
.contact-hero {
    position: relative;
    width: 100%;
    height: 614px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-surface);
}

.contact-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: normal;
    opacity: 0.85;
    z-index: 1;
}

html.dark .contact-hero__bg {
    opacity: 0.4;
}

.contact-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
}

.contact-hero__title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    /* ~72px */
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    /* tracking-tighter */
}

.contact-hero__subtitle {
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 36rem;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.625;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* -------------------------------------------------------------------------
   2. MAIN CONTENT (GRID)
   ------------------------------------------------------------------------- */
.contact-main {
    max-width: 1280px;
    /* max-w-7xl */
    margin: 0 auto;
    padding: 6rem 2rem;
    /* py-24 px-8 */
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6rem;
    /* gap-24 */
}

/* -------------------------------------------------------------------------
   3. LEFT: INFORMATION COLUMN
   ------------------------------------------------------------------------- */
.contact-info {
    grid-column: span 5 / span 5;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* space-y-16 */
}

.contact-info__header {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    border-left: 2px solid var(--color-primary);
    padding-left: 1.5rem;
    color: var(--color-text);
}

.contact-info__list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    /* space-y-12 */
}

.contact-info__item {
    display: flex;
    flex-direction: column;
}

.contact-info__label {
    font-family: var(--font-body);
    /* label font */
    font-size: 0.75em;
    /* text-xs */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* tracking-widest */
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.contact-info__detail {
    font-size: 1.25rem;
    /* text-xl */
    line-height: 1.625;
    color: var(--color-text);
}

.contact-info__detail--underline {
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 8px;
}

/* MAP PLACEHOLDER */
.contact-map {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--color-surface);
    overflow: hidden;
}

.contact-map__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(119, 90, 25, 0.05);
    /* primary/5 */
    mix-blend-mode: overlay;
    z-index: 1;
}

.contact-map__bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: opacity 0.7s ease;
    cursor: crosshair;
    z-index: 2;
    position: relative;
}

.contact-map__bg:hover {
    opacity: 0.6;
}

.contact-map__marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.contact-map__pin {
    width: 4px;
    height: 48px;
    background-color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-map__label {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background-color: var(--color-bg);
    padding: 0.5rem 1rem;
    color: var(--color-text);
}

/* -------------------------------------------------------------------------
   4. RIGHT: FORM COLUMN
   ------------------------------------------------------------------------- */
.contact-form {
    grid-column: span 7 / span 7;
}

.contact-form__wrapper {
    background-color: #ffffff;
    /* Brighter form background */
    padding: 4rem;
    /* p-16 */
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    /* editorial-shadow */
}

/* Overrides shadow on Dark Mode to prevent glare */
html.dark .contact-form__wrapper {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background-color: var(--color-surface);
    /* Highlight card slightly against background */
}

.contact-form__icon-bg {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2rem;
    opacity: 0.05;
    font-size: 6rem;
    color: var(--color-text);
    pointer-events: none;
}

.contact-form__title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    /* text-2xl */
    margin-bottom: 2rem;
    color: var(--color-text);
}

.contact-form__body {
    margin-top: 2rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-form__group {
    position: relative;
}

.contact-form__group--full {
    margin-bottom: 3rem;
}

.contact-form__label {
    display: block;
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-disabled);
    margin-bottom: 0.5rem;
}

.contact-form__input {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.contact-form__input:focus {
    outline: none;
    border-bottom-color: var(--color-primary);
}

.contact-form__input::placeholder {
    color: var(--color-disabled);
    opacity: 0.5;
}

.contact-form__textarea {
    resize: none;
}

.contact-form__actions {
    padding-top: 1rem;
    display: flex;
    justify-content: flex-start;
}

.contact-form__submit {
    background-color: var(--color-primary);
    color: #fff;
    /* on-primary */
    padding: 1rem 4rem;
    /* py-4 px-16 */
    font-family: var(--font-body);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contact-form__submit:hover {
    background-color: var(--color-text);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* IMAGERY */
.contact-imagery {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-imagery__item {
    aspect-ratio: 1/1;
    /* aspect-square */
    background-color: var(--color-surface);
    overflow: hidden;
}

.contact-imagery__item--right {
    margin-top: 3rem;
    /* mt-12 */
}

.contact-imagery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.contact-imagery__item:hover .contact-imagery__img {
    transform: scale(1.1);
}

/* -------------------------------------------------------------------------
   5. RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .contact-main {
        display: flex;
        flex-direction: column;
    }

    .contact-form__icon-bg {
        font-size: 4rem;
        padding: 1.5rem;
    }

    .contact-imagery {
        margin-top: 4rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 480px;
    }

    .contact-hero__title {
        font-size: 3rem;
        /* text-5xl equivalent */
    }

    .contact-main {
        padding: 4rem 1.5rem;
        gap: 4rem;
    }

    .contact-form__wrapper {
        padding: 2.5rem 1.5rem;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form__title {
        text-align: center;
    }

    .contact-form__actions {
        justify-content: center;
    }

    .contact-form__submit {
        width: 100%;
    }
}