/* ── Contact page — page-specific styling only ── */

#contact-hero {
    padding: 20px 48px;
}

#contact-main {
    padding: 40px 48px 120px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
    max-width: 1120px;
    margin: 0 auto;
}

/* ── Info column ── */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    border: .5px solid var(--border-p);
    background: rgba(160, 120, 255, 0.05);
    transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s, box-shadow .3s;
}

@media (hover: hover) and (pointer: fine) {
    .info-card:hover {
        transform: translateY(-3px);
        border-color: rgba(160, 120, 255, 0.45);
        box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 32px rgba(160, 120, 255, 0.08);
    }
}

.info-ic {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(160, 120, 255, 0.12);
    border: 1px solid var(--border-p);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.info-body {
    min-width: 0;
}

.info-t {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pb);
    margin-bottom: 6px;
}

.info-v {
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--fgm);
    line-height: 1.55;
}

.info-link {
    color: var(--fg);
    text-decoration: none;
    border-bottom: .5px solid var(--border-p);
    transition: color .2s, border-color .2s;
}

.info-link:hover {
    color: var(--pb);
    border-color: var(--p);
}

/* ── Form column ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    border-radius: 20px;
    border: .5px solid var(--b);
    background: rgba(255, 255, 255, 0.02);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(240,238,232,0.72);
}

.field input,
.field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: .5px solid var(--b);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--fg);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s ease-out, box-shadow .2s ease-out, background .2s ease-out;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--fgd);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--p);
    background: rgba(160, 120, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(160, 120, 255, 0.12);
}

.field input.field-invalid,
.field textarea.field-invalid {
    border-color: rgba(255, 128, 128, 0.6);
}

.field input.field-invalid:focus,
.field textarea.field-invalid:focus {
    box-shadow: 0 0 0 4px rgba(255, 128, 128, 0.12);
}

.field-err {
    font-size: 12px;
    color: #ff8080;
    min-height: 14px;
    letter-spacing: .02em;
    display: none;
}

.field-err.show {
    display: block;
}

.contact-form .btn-p {
    align-self: flex-start;
    margin-top: 4px;
}

.form-help {
    color: var(--fgm);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.form-success {
    display: none;
    margin-top: 4px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(160, 120, 255, 0.1);
    border: .5px solid var(--border-p);
    color: var(--pb);
    font-size: 14px;
    line-height: 1.6;
}

.form-success.show {
    display: block;
    animation: fadeUp .5s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 860px) {
    #contact-hero {
        padding: 130px 20px 20px;
    }

    #contact-main {
        padding: 30px 20px 80px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-form .btn-p {
        align-self: stretch;
        text-align: center;
    }
}

@media (max-width: 430px) {
    #contact-hero {
        padding: 120px 16px 16px;
    }

    #contact-main {
        padding: 24px 16px 60px;
    }

    .info-card {
        padding: 18px;
        gap: 12px;
    }

    .contact-form {
        padding: 18px;
        gap: 16px;
    }
}

/* Leftover Gutenberg block structure (see the matching comment in
   home.css): #contact-hero and #contact-main are each direct children of
   the WP page template's .wp-block-column, which gives every direct
   child an automatic margin-bottom (~30px) on top of whatever spacing
   each section already declares for itself — stacking into a much
   bigger, asymmetric gap between the hero subhead and the info/form
   cards than intended. */
.wp-block-columns .wp-block-column > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* .sec-sub's own 64px bottom margin (meant for the homepage, where it
   precedes a large section) has nothing to do here — #contact-hero's own
   padding-bottom already provides the gap before #contact-main. */
#contact-hero .sec-sub {
    margin-bottom: 0 !important;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit.woff2') format('woff2');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --p: #2c3ef0;
    --pb: #2c3ef0;
    --pd: rgba(44, 62, 240, .07);
    --border-p: rgba(44, 62, 240, .28);
    --fg: #12141a;
    --fgm: rgba(18, 20, 26, .62);
    --fgd: rgba(18, 20, 26, .42);
    --b: rgba(18, 20, 26, .10);
    --s: #2c3ef0;
    --sb: #2c3ef0;
    --sd: rgba(44, 62, 240, .07);
    --border-s: rgba(44, 62, 240, .28);
    --bg-soft: #f4f5f7;
    --accent-soft: rgba(44, 62, 240, .07);
    --accent-soft2: rgba(44, 62, 240, .13);
}

body {
    background: #ffffff;
    color: var(--fg);
    font-family: 'Outfit', system-ui, sans-serif;
}

#cglow, #cdot { display: none }

.sec-label { color: var(--p) }
.sec-title { color: var(--fg); font-weight: 600 }
.sec-sub { color: var(--fgm) }

.btn-p {
    background: var(--p);
    border: 1px solid var(--p);
    color: #fff;
}
@media (hover: hover) and (pointer: fine) {
    .btn-p:hover { background: #212fc7; border-color: #212fc7 }
}
.btn-g {
    background: transparent;
    border: 1px solid var(--b);
    color: var(--fgm);
}
@media (hover: hover) and (pointer: fine) {
    .btn-g:hover { border-color: var(--fgd); color: var(--fg) }
}

.info-card {
    background: var(--accent-soft);
}
@media (hover: hover) and (pointer: fine) {
    .info-card:hover {
        border-color: var(--p);
        box-shadow: 0 16px 40px rgba(18, 20, 26, .10), 0 0 32px rgba(44, 62, 240, .08);
    }
}
.info-ic { background: var(--accent-soft2) }
.info-link:hover { border-color: var(--p) }

.contact-form { background: var(--bg-soft) }

.field label { color: var(--fgm) }

.field input,
.field textarea {
    background: #ffffff;
    color: var(--fg);
}

.field input:focus,
.field textarea:focus {
    background: var(--accent-soft);
    box-shadow: 0 0 0 4px var(--accent-soft2);
}

.form-success {
    background: var(--accent-soft2);
}

/* Press feedback — form submit is a real committed action, deserves a
   tactile squeeze on click/tap (button-press standard: scale .95-.98,
   short duration, independent of hover capability). */
.contact-form .btn-p:active {
    transform: scale(.97);
    transition: transform .15s cubic-bezier(0.23, 1, 0.32, 1), background .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
