/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE V2 - EDITORIAL REDESIGN
   ═══════════════════════════════════════════════════════════ */

:root {
    --contact-gold: #ac966a;
    --contact-dark: #1a1610;
    --contact-soft-bg: #f5f2ec; /* Matches var(--bg-color) from main style */
    --contact-border: rgba(172, 150, 106, 0.15);
}

/* Safety background for dynamic viewport gaps */
html, body {
    background-color: var(--contact-soft-bg) !important;
}

.contact-page-wrapper {
    min-height: calc(100dvh - var(--nav-h));
    /* Using dynamic viewport height to prevent gaps in Chrome Mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 96px;
    background: var(--contact-soft-bg);
    overflow-x: hidden;
    flex: 1;
}

.editorial-contact-container {
    width: 100%;
    max-width: 1320px;
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 0.98fr);
    gap: 72px;
    align-items: start;
}

/* Left Column: Heading & Info */
.contact-editorial-left {
    position: sticky;
    top: 120px;
    min-width: 0;
}

.contact-headline-group {
    margin-bottom: 24px;
    text-align: left;
}

.contact-headline-pre {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--contact-gold);
    margin-bottom: 12px;
}

.contact-headline {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.4vw, 5.4rem);
    line-height: 1.05;
    color: var(--contact-dark);
    letter-spacing: -0.03em;
}

.contact-headline span {
    display: block;
}

.contact-editorial-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item-v2 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label-v2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--contact-gold);
    margin-bottom: 4px;
}

.info-value-v2 {
    font-size: 1.25rem;
    color: var(--contact-dark);
    font-weight: 400;
    transition: color 0.3s ease;
}

.info-value-v2:hover {
    color: var(--contact-gold);
}

.info-value-v2--social {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--contact-dark);
    font-size: 0;
    line-height: 0;
}

.info-value-v2--social .social-icon-svg {
    display: block;
    flex: 0 0 auto;
}

/* Right Column: Premium Form */
.contact-editorial-right {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: white;
    padding: 42px;
    border-radius: 0;
    box-shadow: 0 30px 60px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
}

.editorial-form {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-field-v2 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field-v2.full {
    grid-column: 1 / -1;
}

.form-field-v2 label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--contact-dark);
    margin-left: 2px;
}

.form-field-v2 input,
.form-field-v2 textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #fbf9f5;
    border: 1px solid rgba(172, 150, 106, 0.1);
    border-radius: 0;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    resize: none;
}

.form-field-v2 input:focus,
.form-field-v2 textarea:focus {
    outline: none;
    background: white;
    border-color: var(--contact-gold);
    box-shadow: 0 0 0 4px rgba(172, 150, 106, 0.08);
}

.editorial-submit-btn {
    grid-column: 1 / -1;
    background: var(--contact-dark);
    color: white;
    padding: 20px;
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.editorial-submit-btn:hover {
    background: var(--contact-gold);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(172, 150, 106, 0.2);
}

@media (min-width: 1440px) {
    .contact-page-wrapper {
        padding-top: 56px;
        padding-bottom: 112px;
    }

    .editorial-contact-container {
        gap: 88px;
    }

    .contact-headline {
        font-size: clamp(4.2rem, 4.8vw, 5.8rem);
    }

    .contact-editorial-right {
        padding: 52px;
    }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .editorial-contact-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-editorial-left {
        display: contents;
    }

    .contact-headline-group {
        order: 1;
        text-align: center;
        margin-bottom: 40px;
        padding-top: 20px;
    }
    
    .contact-editorial-right {
        order: 2;
        margin-bottom: 60px;
        padding: 36px;
        width: 100%;
    }

    .contact-editorial-info {
        order: 3;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 0 20px 40px;
    }

    .editorial-contact-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Flattening for reordering */
    .contact-editorial-left {
        display: contents;
    }

    .contact-headline-group {
        order: 1;
        text-align: center;
        margin-bottom: 24px;
        padding-top: 40px;
    }

    .contact-headline {
        font-size: clamp(2.7rem, 10.5vw, 3.8rem);
        line-height: 1;
    }

    /* Prioritize form */
    .contact-editorial-right {
        order: 2;
        padding: 32px 20px;
        border-radius: 0;
        box-shadow: 0 20px 40px rgba(0,0,0,0.02);
        margin-bottom: 48px;
        width: 100%;
    }

    /* Move info to bottom */
    .contact-editorial-info {
        order: 3;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        text-align: center;
        padding-bottom: 20px;
    }

    .info-value-v2--social {
        justify-content: center;
    }
    
    .editorial-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-field-v2 label {
        font-size: 0.75rem;
    }

    .editorial-submit-btn {
        padding: 18px;
        font-size: 1rem;
        margin-top: 8px;
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .contact-page-wrapper {
        align-items: flex-start;
        padding: 20px 82px 88px;
    }

    .editorial-contact-container {
        grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1fr);
        gap: 44px;
    }

    .contact-editorial-left {
        top: 88px;
        padding: 0 36px 0 44px;
    }

    .contact-headline-group {
        margin-bottom: 34px;
        padding-left: 0;
    }

    .contact-headline {
        font-size: clamp(3.9rem, 5.4vw, 5rem);
        line-height: 0.98;
    }

    .contact-editorial-info {
        padding-left: 0;
        gap: 28px;
        max-width: 26rem;
    }

    .info-item-v2 {
        padding-left: 2px;
    }

    .info-value-v2 {
        font-size: 1.18rem;
    }

    .contact-editorial-right {
        padding: 32px;
    }

    .editorial-form {
        gap: 20px;
    }
}
