/* ─── Contact Page ─────────────────────────────────────────── */

:root {
    --c-accent:       #ce0000;
    --c-accent-dark:  #a80000;
    --c-text:         #0d0f14;
    --c-muted:        #6b7280;
    --c-border:       #e5e7eb;
    --c-shadow:       0 8px 32px rgba(0, 0, 0, 0.14);
    --c-radius:       14px;
    --c-transition:   .25s cubic-bezier(.4, 0, .2, 1);
}

body {
    background: #0f1117;
}

/* ─── Hero / Banner ─────────────────────────────────────────── */

.contact-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: #0d0f14;
}

.contact-hero .banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(1) brightness(0.45);
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(206, 0, 0, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(8, 10, 14, 0.18), rgba(8, 10, 14, 0.72));
    pointer-events: none;
}

/* ─── Shell / Container ─────────────────────────────────────── */

.contact-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 72px 24px 64px;
}

/* ─── Panel / Card ──────────────────────────────────────────── */

.contact-panel {
    background: #ffffff;
    border-radius: var(--c-radius);
    box-shadow: var(--c-shadow);
    padding: 48px 44px;
}

/* ─── Kicker label ──────────────────────────────────────────── */

.panel-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(206, 0, 0, 0.10);
    color: var(--c-accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

/* ─── Headings ──────────────────────────────────────────────── */

.contact-panel h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--c-text);
    line-height: 1.1;
    margin-bottom: 10px;
}

.panel-copy {
    color: var(--c-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ─── Form layout ───────────────────────────────────────────── */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ─── Labels ────────────────────────────────────────────────── */

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-muted);
    letter-spacing: 0.01em;
}

/* ─── Inputs ────────────────────────────────────────────────── */

.input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: var(--c-text);
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    outline: none;
    transition: border-color var(--c-transition), box-shadow var(--c-transition);
}

.input::placeholder {
    color: #b0b7c3;
}

.input:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(206, 0, 0, 0.10);
}

textarea.input {
    height: 130px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.5;
}

/* ─── Submit button ─────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: background var(--c-transition), transform var(--c-transition), box-shadow var(--c-transition);
    margin-top: 4px;
}

.btn:hover {
    background: var(--c-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(206, 0, 0, 0.22);
}

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

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ─── Alert box ─────────────────────────────────────────────── */

.alert {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    animation: alertIn .2s ease;
}

.alert.show {
    display: flex;
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-icon-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.alert-icon-wrap .material-symbols-outlined {
    font-size: 18px;
}

.alert-close {
    margin-left: auto;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.5;
    display: flex;
    align-items: center;
    transition: opacity .2s;
}

.alert-close:hover { opacity: 1; }

.alert-close .material-symbols-outlined {
    font-size: 16px;
}

.alert-error {
    background: rgba(206, 0, 0, 0.07);
    border-color: rgba(206, 0, 0, 0.55);
    color: #c53030;
}

.alert-error .alert-icon-wrap .material-symbols-outlined,
.alert-error .alert-close { color: #c53030; }

.alert-success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.5);
    color: #166534;
}

.alert-success .alert-icon-wrap .material-symbols-outlined,
.alert-success .alert-close { color: #16a34a; }

/* ─── Alternative contact strip ────────────────────────────── */

.contact-alt {
    text-align: center;
    padding: 40px 24px 48px;
    background: #ffffff;
    border-top: 1px solid #eee;
}

.contact-alt p {
    color: var(--c-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.contact-email-link {
    font-size: 1.1rem;
    color: var(--c-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--c-transition);
}

.contact-email-link:hover {
    color: var(--c-accent-dark);
    text-decoration: underline;
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 640px) {
    .contact-hero {
        min-height: 0;
    }

    .contact-shell {
        padding: 48px 16px 40px;
    }

    .contact-panel {
        padding: 32px 24px;
    }

    .contact-panel h1 {
        font-size: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-alt {
        padding: 24px 16px;
    }

    .contact-email-link {
        font-size: 1rem;
    }
}
