/* =========================================================
   Greatest Interactive — Contact
   Reuses the shared tokens from main.css (--ink, --paper, --violet-*,
   --surface, --line, --font-*, --radius-*, --shadow-soft) so this page
   follows the site-wide light/dark theme automatically.

   Note: the original stylesheet referenced --card-bg, --shadow,
   --border, and --input-bg -- none of which are defined anywhere in
   main.css. Undefined custom properties fail silently in CSS rather
   than erroring, so the form was actually rendering with a transparent
   background, no shadow, no visible border, and no input fill. Fixed
   below to use the real shared tokens.
   ========================================================= */

.contact-hero {
    position: relative;
    padding: 90px 24px 48px;
    background:
        radial-gradient(circle at top right, rgba(241, 90, 74, 0.14), transparent 26%),
        radial-gradient(circle at top left, rgba(45, 125, 246, 0.12), transparent 28%),
        var(--paper);
    overflow: hidden;
    text-align: center;
}

.contact-hero .hero-inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    z-index: 1;
}

.contact-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-red);
    background: var(--brand-red-soft);
    border: 1px solid rgba(241, 90, 74, 0.2);
    border-radius: 999px;
}

.contact-hero h1 {
    font-size: clamp(2rem, 3.6vw, 2.6rem);
    color: var(--ink);
}

.contact-hero .hero-decor {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(160px);
    color: var(--brand-yellow);
    opacity: 0.9;
    filter: drop-shadow(0 12px 30px rgba(245, 196, 81, 0.22));
}

.section {
    padding: 48px 1.5rem 5rem;
}

.section-inner {
    max-width: 560px;
    margin: 0 auto;
}

.contact-form-section {
    padding-top: 56px;
}

/* Form container */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 2.25rem;
    border-radius: var(--radius-lg, 28px);
    box-shadow: var(--shadow-soft);
}

/* Inputs */
input,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border-radius: var(--radius-sm, 12px);
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* Focus state */
input:focus,
textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(45, 125, 246, 0.12);
    background: var(--surface);
}

:root[data-theme="dark"] form {
    background: rgba(28, 22, 48, 0.96);
    border-color: rgba(245, 241, 255, 0.12);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea {
    background: rgba(18, 13, 30, 0.82);
    border-color: rgba(245, 241, 255, 0.12);
    color: var(--ink);
}

:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] textarea:focus {
    background: rgba(18, 13, 30, 0.9);
    box-shadow: 0 0 0 3px rgba(45, 125, 246, 0.18);
}

/* Button */
.contact-form button {
    margin-top: 0.5rem;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    background: var(--brand-blue);
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    width: 180px;
    max-width: 100%;
    align-self: center;
}

.contact-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px rgba(17, 17, 17, 0.35);
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.contact-form button:active {
    transform: translateY(0);
    box-shadow: none;
}

.contact-form button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-sm, 12px);
    background: rgba(127, 224, 192, 0.18);
    border: 1px solid var(--mint);
    color: var(--text, var(--ink));
    text-align: center;
}

/* ---------------------------------------------------------
   Scroll reveal (progressive enhancement — see contact.js)
   --------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .contact-hero { padding: 64px 20px 36px; }

    form {
        padding: 1.8rem;
    }
}

:root[data-theme="dark"] .contact-form button {
    background: var(--brand-yellow);
    color: #17121f;
}

:root[data-theme="dark"] .contact-form button:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
}