/* ── Base ── */
body {
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #07090f;
    color: #e8e8e8;
    overflow-x: hidden;
}

/* ── Scroll animations ── */
[data-scroll="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}

[data-scroll="fade-up"].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Container ── */
.contact-container {
    padding: 80px 8vw 140px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ── Page hero bar ── */
.page-hero-bar {
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.eyebrow-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #5599ff;
    margin-bottom: 1.2rem;
}

.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 7vw, 6rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1;
}

/* ── Feedback messages ── */
.form-feedback {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 2px solid;
}

.form-feedback svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.form-feedback--success {
    background: rgba(85, 153, 255, 0.06);
    border-color: #5599ff;
    color: #5599ff;
}

.form-feedback--error {
    background: rgba(255, 85, 85, 0.06);
    border-color: #ff5555;
    color: #ff7777;
}

/* ── Layout: aside + form ── */
.contact-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
}

/* ── Contact info aside ── */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 120px;
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(85, 153, 255, 0.6);
}

.info-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.25s ease;
}

a.info-value:hover,
a.info-value:focus-visible {
    color: #ffffff;
}

a.info-value:focus-visible {
    outline: 2px solid #5599ff;
    outline-offset: 3px;
    border-radius: 2px;
}

.info-note {
    font-size: 0.82rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    margin: 0;
}

/* ── Form ── */
form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.field-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
}

.required-mark {
    color: #5599ff;
}

.field-group input,
.field-group textarea {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #e8e8e8;
    background: #0d0f18;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 18px;
    resize: vertical;
    transition: border-color 0.25s ease, background 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.field-group input:hover,
.field-group textarea:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.field-group input:focus,
.field-group textarea:focus {
    outline: none;
    border-color: rgba(85, 153, 255, 0.6);
    background: #0f1220;
}

.field-group input:focus-visible,
.field-group textarea:focus-visible {
    outline: 2px solid rgba(85, 153, 255, 0.5);
    outline-offset: 2px;
}

/* reCAPTCHA */
.g-recaptcha {
    margin-top: 4px;
}

/* Required note */
.required-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    font-weight: 300;
}

/* ── Form actions ── */
.form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.btn-reset,
.btn-send {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-reset:focus-visible,
.btn-send:focus-visible {
    outline: 2px solid #5599ff;
    outline-offset: 3px;
}

.btn-reset svg,
.btn-send svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn-reset {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
}

.btn-reset:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.75);
    transform: translateY(-1px);
}

.btn-reset:active {
    transform: translateY(0);
}

.btn-send {
    background: #5599ff;
    color: #07090f;
    border: 1px solid #5599ff;
    margin-left: auto;
}

.btn-send:hover {
    background: #77aaff;
    border-color: #77aaff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(85, 153, 255, 0.3);
}

.btn-send:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ── Theme light ── */
body.light {
    background-color: #f4f4f8;
    color: #111;
}

body.light .page-hero-bar { border-bottom-color: rgba(0,0,0,0.07); }
body.light .eyebrow-label { color: #2266dd; }
body.light .page-title { color: #0a0a0f; }

body.light .form-feedback--success { background: rgba(34,102,221,0.07); border-color: #2266dd; color: #2266dd; }
body.light .form-feedback--error { background: rgba(200,30,30,0.06); border-color: #cc3333; color: #cc3333; }

body.light .info-label { color: rgba(34,102,221,0.7); }
body.light .info-value { color: rgba(0,0,0,0.6); }
body.light .info-block { border-bottom-color: rgba(0,0,0,0.07); }
body.light .info-note { color: rgba(0,0,0,0.35); }
body.light a.info-value:focus-visible { outline-color: #2266dd; }

body.light .field-group label { color: rgba(0,0,0,0.5); }
body.light .required-mark { color: #2266dd; }

body.light .field-group input,
body.light .field-group textarea {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    color: #111;
}

body.light .field-group input::placeholder,
body.light .field-group textarea::placeholder { color: rgba(0,0,0,0.25); }

body.light .field-group input:hover,
body.light .field-group textarea:hover { border-color: rgba(0,0,0,0.2); }

body.light .field-group input:focus,
body.light .field-group textarea:focus { border-color: rgba(34,102,221,0.6); background: #f8f9ff; }

body.light .field-group input:focus-visible,
body.light .field-group textarea:focus-visible { outline-color: rgba(34,102,221,0.5); }

body.light .required-note { color: rgba(0,0,0,0.3); }

body.light .btn-reset { border-color: rgba(0,0,0,0.15); color: rgba(0,0,0,0.45); }
body.light .btn-reset:hover { border-color: rgba(0,0,0,0.3); color: rgba(0,0,0,0.7); }

body.light .btn-send { background: #2266dd; border-color: #2266dd; color: #ffffff; }
body.light .btn-send:hover { background: #3377ee; border-color: #3377ee; box-shadow: 0 8px 24px rgba(34,102,221,0.3); }

body.light .btn-reset:focus-visible,
body.light .btn-send:focus-visible { outline-color: #2266dd; }

/* ── Responsive ── */
@media screen and (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 220px 1fr;
        gap: 40px;
    }
}

@media screen and (max-width: 800px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-info {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px 40px;
    }
    .info-block {
        padding-bottom: 0;
        border-bottom: none;
        min-width: 140px;
    }
    .info-note { width: 100%; }
}

@media screen and (max-width: 600px) {
    .contact-container { padding: 60px 6vw 100px; }
    .page-hero-bar { margin-bottom: 40px; }
    .field-row { grid-template-columns: 1fr; }
    .form-actions { flex-wrap: wrap; }
    .btn-send { margin-left: 0; width: 100%; justify-content: center; }
}
