/* ================================================================
   EEA Contact Page — Header + 3-column (profile | info | form) + Map
   ================================================================ */

.eea-cpage {
    --eea-cp-navy:    #080872;
    --eea-cp-gold:    #C7A73E;
    --eea-cp-white:   #ffffff;
    --eea-cp-ink:     #1a1a2e;
    --eea-cp-mute:    #5a5a70;
    --eea-cp-accent:  #C7A73E;
    --eea-cp-primary: #080872;
    --eea-cp-ease:    cubic-bezier(.2, .8, .2, 1);

    position: relative;
    width: 100%;
    padding: 100px 32px 40px;
    color: var(--eea-cp-ink);
    font-family: 'Montserrat', 'Poppins', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--eea-cp-white);
    overflow: hidden;
    isolation: isolate;
}

.eea-cpage,
.eea-cpage *,
.eea-cpage *::before,
.eea-cpage *::after {
    box-sizing: border-box;
}

.eea-cpage p { margin: 0; }
.eea-cpage img { display: block; max-width: 100%; height: auto; }

.eea-cpage ul,
.eea-cpage li {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

/* Full-width breakout */
.eea-cpage--fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.eea-cpage__inner {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ================================================================
   HEADER
   ================================================================ */
.eea-cpage__header {
    text-align: center;
    margin: 0 auto 48px;
    max-width: 840px;
}

.eea-cpage__eyebrow {
    margin: 0 0 8px;
    color: var(--eea-cp-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
}

.eea-cpage__script {
    margin: 0 0 18px;
    color: var(--eea-cp-accent);
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: clamp(28px, 3.6vw, 40px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.15;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.eea-cpage__script::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70%;
    height: 1.5px;
    background: var(--eea-cp-accent);
    border-radius: 1.5px;
}

.eea-cpage__desc {
    color: #3a3a55;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

.eea-cpage__desc strong {
    color: var(--eea-cp-accent);
    font-weight: 700;
}

/* ================================================================
   BODY — 3-column grid
   ================================================================ */
.eea-cpage__body {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

/* When no profile shown: 2 columns */
.eea-cpage__body.no-profile {
    grid-template-columns: 1fr 1fr;
}

.eea-cpage__body.no-profile .eea-cpage__col--profile {
    display: none;
}

.eea-cpage__col {
    min-width: 0;
}

/* ================================================================
   PROFILE
   ================================================================ */
.eea-cpage__col--profile {
    display: flex;
    flex-direction: column;
}

/* Name + Title above the picture */
.eea-cpage__profile-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    text-align: left;
}

.eea-cpage__profile-name {
    margin: 0;
    color: var(--eea-cp-primary);
    font-family: 'Baskervville', 'GFS Didot', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.eea-cpage__profile-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--eea-cp-accent);
    border-radius: 2px;
    transition: width .4s cubic-bezier(.2, .8, .2, 1);
}

.eea-cpage__col--profile:hover .eea-cpage__profile-name::after {
    width: 56px;
}

.eea-cpage__profile-label[style*="center"] .eea-cpage__profile-name::after,
.eea-cpage__profile-label[style*="text-align: center"] .eea-cpage__profile-name::after {
    left: 50%;
    transform: translateX(-50%);
}

.eea-cpage__profile-title {
    margin: 0;
    color: var(--eea-cp-accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    line-height: 1.4;
}

.eea-cpage__profile-img {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 20px 50px -10px rgba(8, 8, 114, 0.18);
    background: #f4f4fb;
}

.eea-cpage__profile-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    transition: transform 1s var(--eea-cp-ease);
}

.eea-cpage__profile-img:hover img {
    transform: scale(1.03);
}

/* ================================================================
   CONTACT INFO
   ================================================================ */
.eea-cpage__info {
    padding-top: 8px;
}

.eea-cpage__info-name {
    margin: 0 0 6px;
    color: var(--eea-cp-primary);
    font-family: 'Baskervville', serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.eea-cpage__info-role {
    margin: 0 0 22px;
    color: #3a3a55;
    font-size: 14px;
    line-height: 1.5;
}

.eea-cpage__info-list {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
}

.eea-cpage__info-item {
    display: flex !important;
    align-items: flex-start;
    gap: 14px;
    color: var(--eea-cp-ink);
    font-size: 14.5px;
    line-height: 1.55;
}

.eea-cpage__info-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(199, 167, 62, 0.12);
    border: 1px solid rgba(199, 167, 62, 0.25);
    color: var(--eea-cp-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eea-cpage__info-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
}

.eea-cpage__info-text {
    flex: 1;
    word-break: break-word;
}

.eea-cpage__info a.eea-cpage__info-text {
    color: var(--eea-cp-ink);
    text-decoration: none !important;
    transition: color .25s var(--eea-cp-ease);
}

.eea-cpage__info a.eea-cpage__info-text:hover {
    color: var(--eea-cp-accent);
}

/* ================================================================
   FORM
   ================================================================ */
.eea-cpage__form {
    background: var(--eea-cp-white);
    border: 1px solid rgba(8, 8, 114, 0.06);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 18px 50px -10px rgba(8, 8, 114, 0.10);
}

.eea-cpage__form-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eea-cpage__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.eea-cpage__row:has(> :only-child) {
    grid-template-columns: 1fr;
}

.eea-cpage__field { position: relative; }

.eea-cpage__input,
.eea-cpage__textarea {
    width: 100%;
    padding: 13px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14.5px;
    color: var(--eea-cp-ink);
    background: #f6f6fb;
    border: 1px solid rgba(8, 8, 114, 0.10);
    border-radius: 10px;
    outline: none;
    transition: border-color .25s var(--eea-cp-ease), background .25s var(--eea-cp-ease), box-shadow .25s var(--eea-cp-ease);
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.4;
}

.eea-cpage__textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.eea-cpage__input::placeholder,
.eea-cpage__textarea::placeholder {
    color: rgba(8, 8, 114, 0.5);
    opacity: 1;
}

.eea-cpage__input:focus,
.eea-cpage__textarea:focus {
    border-color: var(--eea-cp-gold);
    background: var(--eea-cp-white);
    box-shadow: 0 0 0 3px rgba(199, 167, 62, 0.18);
}

.eea-cpage__input.is-invalid,
.eea-cpage__textarea.is-invalid {
    border-color: #ff7a7a;
    box-shadow: 0 0 0 3px rgba(255, 122, 122, 0.18);
}

.eea-cpage__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    margin-top: 6px;
    background: var(--eea-cp-gold);
    color: var(--eea-cp-primary);
    border: 2px solid var(--eea-cp-gold);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s var(--eea-cp-ease), color .3s var(--eea-cp-ease), border-color .3s var(--eea-cp-ease), transform .3s var(--eea-cp-ease), box-shadow .3s var(--eea-cp-ease);
    box-shadow: 0 8px 22px rgba(199, 167, 62, 0.25);
    appearance: none;
    -webkit-appearance: none;
}

.eea-cpage__submit:hover {
    background: var(--eea-cp-primary);
    color: var(--eea-cp-white);
    border-color: var(--eea-cp-primary);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(8, 8, 114, 0.28);
}

.eea-cpage__submit.is-loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.eea-cpage__msg {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    min-height: 18px;
    color: var(--eea-cp-mute);
    text-align: center;
}

.eea-cpage__msg.is-success { color: #2e8b2e; }
.eea-cpage__msg.is-error   { color: #cc4444; }

/* ================================================================
   MAP
   ================================================================ */
.eea-cpage__map {
    width: 100%;
    height: 360px;
    margin-top: 48px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(8, 8, 114, 0.15);
    background: #f4f4fb;
}

.eea-cpage__map iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
    display: block;
}

/* ================================================================
   ELEMENTOR / THEME GUARDS
   ================================================================ */
.elementor-page .eea-cpage a,
.e-con .eea-cpage a {
    text-decoration: none !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .eea-cpage__body {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .eea-cpage__col--profile {
        grid-column: 1 / -1;
        max-width: 360px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .eea-cpage {
        padding: 56px 20px 24px;
    }
    .eea-cpage__header {
        margin-bottom: 32px;
    }
    .eea-cpage__body,
    .eea-cpage__body.no-profile {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }
    .eea-cpage__col--profile {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
    }
    .eea-cpage__profile-label {
        text-align: center;
        align-items: center;
    }
    .eea-cpage__profile-name::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .eea-cpage__profile-name {
        font-size: 22px;
    }
    .eea-cpage__row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .eea-cpage__form {
        padding: 22px 20px;
    }
    .eea-cpage__map {
        margin-top: 32px;
        height: 280px;
    }
    .eea-cpage__info-name {
        font-size: 20px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eea-cpage,
    .eea-cpage *,
    .eea-cpage *::before,
    .eea-cpage *::after {
        animation: none !important;
        transition: none !important;
    }
}
