/* =========================================
   HYPER-FORM V2: TACTICAL HUD REDESIGN
   Create Date: 2026-01-05
   Objective: High Contrast, "Insane" Animations
   ========================================= */

:root {
    --hf-bg: #000000;
    --hf-primary: #00ffea;
    /* Cyan Neon */
    --hf-secondary: #ff0055;
    /* Glitch Red */
    --hf-glass: rgba(0, 20, 40, 0.9);
}

/* 1. THE CONTAINER - "The Monolith" */
.hero-form-card {
    background: var(--hf-glass) !important;
    border: 1px solid var(--hf-primary) !important;
    position: relative;
    padding: 2rem !important;
    /* Aggressive Sci-Fi Clip Path */
    clip-path: polygon(0 0,
            100% 0,
            100% calc(100% - 30px),
            calc(100% - 30px) 100%,
            30px 100%,
            0 calc(100% - 30px));
    box-shadow: 0 0 50px rgba(0, 255, 234, 0.1);
    overflow: visible !important;
    /* Allow glows to bleed */
    backdrop-filter: blur(40px);
}

/* The "Reactor Core" Background Pulse */
.hero-form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 234, 0.05), transparent 70%);
    z-index: -1;
    animation: reactorPulse 4s ease-in-out infinite;
}

@keyframes reactorPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Corner Brackets (Tactical HUD Feel) */
.hero-form-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background:
        linear-gradient(to right, var(--hf-primary) 2px, transparent 2px) 0 0,
        linear-gradient(to bottom, var(--hf-primary) 2px, transparent 2px) 0 0,
        linear-gradient(to left, var(--hf-primary) 2px, transparent 2px) 100% 0,
        linear-gradient(to bottom, var(--hf-primary) 2px, transparent 2px) 100% 0,
        linear-gradient(to left, var(--hf-primary) 2px, transparent 2px) 100% 100%,
        linear-gradient(to top, var(--hf-primary) 2px, transparent 2px) 100% 100%,
        linear-gradient(to right, var(--hf-primary) 2px, transparent 2px) 0 100%,
        linear-gradient(to top, var(--hf-primary) 2px, transparent 2px) 0 100%;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    pointer-events: none;
    animation: bracketGlitch 5s infinite;
}

@keyframes bracketGlitch {

    0%,
    95% {
        opacity: 1;
        transform: translate(0, 0);
    }

    96% {
        opacity: 0;
        transform: translate(-2px, 2px);
    }

    97% {
        opacity: 1;
        transform: translate(2px, -2px);
    }

    98% {
        opacity: 0;
    }

    99% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* 2. THE INPUTS - "Data Slots" */
.hero-form-card input,
.hero-form-card select {
    background: #000 !important;
    /* Pitch Black for Contrast */
    border: 1px solid rgba(0, 255, 234, 0.3) !important;
    border-left: 4px solid var(--hf-primary) !important;
    color: #fff !important;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    height: 50px;
    transition: all 0.2s cubic-bezier(0.1, 0.7, 1.0, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero-form-card input::placeholder {
    color: rgba(0, 255, 234, 0.4);
}

/* Interaction: THE FOCUS STATE (Insane Mode) */
.hero-form-card input:focus,
.hero-form-card select:focus {
    background: rgba(0, 255, 234, 0.1) !important;
    border-color: var(--hf-primary) !important;
    box-shadow:
        0 0 20px rgba(0, 255, 234, 0.3),
        inset 0 0 20px rgba(0, 255, 234, 0.1);
    transform: scale(1.02) translateX(5px);
    text-shadow: 0 0 5px var(--hf-primary);
}

/* 3. THE BUTTON - "Launch Key" */
.hero-form-card button[type="submit"] {
    background: transparent !important;
    border: 2px solid var(--hf-primary);
    color: var(--hf-primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-shadow: 0 0 10px var(--hf-primary);
    margin-top: 1rem;
    height: 55px;
}

/* Scanline on Button Hover */
.hero-form-card button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 234, 0.8), transparent);
    transition: left 0.5s;
}

.hero-form-card button[type="submit"]:hover::before {
    left: 100%;
}

.hero-form-card button[type="submit"]:hover {
    background: var(--hf-primary) !important;
    color: #000;
    box-shadow: 0 0 50px var(--hf-primary);
    transform: scale(1.05);
    /* Slight grow */
    text-shadow: none;
}

/* 4. LABELS & UTILS */
.hero-form-card small {
    color: rgba(0, 255, 234, 0.6) !important;
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-form-card a {
    color: #fff !important;
    text-decoration: underline;
    text-decoration-color: var(--hf-primary);
}

/* 5. DROPDOWN CONTRAST FIX */
.hero-form-card option {
    background-color: #000 !important;
    color: #fff !important;
    padding: 10px;
}