@charset "UTF-8";

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Fonts */
    --font-display: 'Orbitron', sans-serif;
    /* HEADLINES */
    --font-ui: 'Roboto', sans-serif;
    /* BODY */
    --font-mono: 'Courier New', monospace;
    /* TECH SPECS */

    /* Palette - Cyberpunk */
    --rift-black: #050508;
    --rift-dark-overlay: rgba(5, 5, 8, 0.9);
    --rift-panel-bg: #0a0f14;

    /* Neons */
    --rift-cyan: #00F5FF;
    --rift-magenta: #FF2A6D;
    --rift-yellow: #F5E653;
    --rift-dim: rgba(0, 245, 255, 0.3);
    --rift-red: #FF204E;

    /* Added from Club/Feed for Menu consistency */
    --rift-rust: #F57D1F;
    --rift-smog: #0F1926;
    --rift-concrete: #2B2F33;
    --rift-beige: #D7BFA2;

    /* Text */
    --rift-text: #E0E0E0;
    --rift-text-muted: #8899a6;
}

* {
    box-sizing: border-box;
}

body.rift-form-page {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    background-color: var(--rift-black);
    color: var(--rift-text);
    font-family: var(--font-ui);
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   2. BACKGROUND (Blurred City + Vibes)
   ========================================= */
.rift-layout-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("img/img-form-agenzia-digital-social-media-the-rift-studio-comunicazione.webp") no-repeat center center;
    background-size: cover;
}

.rift-layout-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Optional: Add a subtle noise or city vibe if image available, 
       otherwise pure CSS gradient is fine for "blurred cyberpunk" */
    background:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 245, 255, 0.03) 3px),
        linear-gradient(to bottom, #000 10%, #1a1a2e 90%);
    opacity: 0.6;
    z-index: -1;
}

/* =========================================
   3. NAVBAR
   ========================================= */
.feed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    z-index: 10001;
    background: var(--rift-black);
    /* Solid or heavily blurred */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-logo-text {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    height: 30px;
    /* Base height to anchor the image */
}

.feed-logo-text img {
    height: 50px;
    /* Fits comfortably in the navbar */
    width: auto;
    object-fit: contain;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    z-index: 10;
}

.feed-logo-text:hover img {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

.feed-desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-display);
    color: var(--rift-text);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0.7;
    outline: none;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus-visible {
    opacity: 1;
    color: var(--rift-cyan);
    text-shadow: 0 0 8px var(--rift-cyan);
}

.nav-link.highlight {
    color: var(--rift-red);
    border: 1px solid var(--rift-red);
    padding: 6px 16px;
    transition: all 0.3s;
    opacity: 1;
}

.nav-link.highlight:hover {
    background: var(--rift-red);
    color: #000;
    box-shadow: 0 0 10px var(--rift-red);
}

.feed-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 10002;
}

.feed-hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--rift-red);
    transition: all 0.3s ease;
}

.feed-hamburger.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.feed-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.feed-hamburger.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1100px) {
    .feed-header {
        padding: 15px 20px;
    }

    .feed-desktop-nav {
        display: none;
    }

    .feed-logo-text {
        height: 25px;
    }

    .feed-logo-text img {
        height: 40px;
    }

    .feed-hamburger {
        display: flex;
    }
}

/* Mobile Menu Overlay */
.feed-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.feed-menu-backdrop {
    position: absolute;
    inset: 0;
    background-image: url('../img/img-hamburguer-agenzia-digital-social-media-the-rift-studio-comunicazione.webp');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
}

.feed-menu-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    align-items: flex-start;
}

.feed-menu-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

@media (max-width: 1100px) {
    .feed-menu-logo {
        top: 5vh !important;
    }
}


.feed-menu-logo img {
    height: 100px;
    max-width: 80%;
    filter: drop-shadow(0 0 15px var(--rift-rust));
    object-fit: contain;
}

.feed-menu-item {
    background: var(--rift-smog);
    color: var(--rift-beige);
    font-family: var(--font-display);
    font-size: 24px;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 1px solid var(--rift-rust);
    border-left: 4px solid var(--rift-rust);
    width: 100%;
    text-align: left;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.feed-menu-item:hover,
.feed-menu-item.is-active,
.feed-menu-item:focus {
    background: var(--rift-rust);
    color: var(--rift-black);
    padding-left: 50px;
    box-shadow: 0 0 15px var(--rift-rust);
}

.feed-menu-start {
    margin-top: 20px;
    background: transparent;
    border: 1px solid var(--rift-cyan);
    color: var(--rift-cyan);
    clip-path: none;
}

.feed-menu-start:hover {
    background: var(--rift-cyan);
    color: var(--rift-black);
}

/* =========================================
   4. SUSPENDED HUD FORM
   ========================================= */
.rift-form-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 40px;
    overflow: hidden;
}

/* Cables coming from top */
.rift-cable {
    position: absolute;
    top: 0;
    width: 2px;
    height: 50vh;
    /* Will go behind panel */
    background: #111;
    z-index: -1;
}

.rift-cable.left {
    left: calc(50% - 250px);
}

.rift-cable.right {
    right: calc(50% - 250px);
}

/* The Panel */
.rift-hud-panel {
    position: relative;
    width: 100%;
    max-width: 900px;
    /* Slightly wider */
    /* More transparent, holographic feel */
    background: linear-gradient(rgba(10, 15, 20, 0.4), rgba(5, 5, 8, 0.3)),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 245, 255, 0.02) 3px);
    backdrop-filter: blur(8px);

    border: 2px solid var(--rift-cyan);
    border-radius: 12px;

    /* Stronger Outer Bloom/Glow */
    box-shadow:
        0 0 20px rgba(0, 245, 255, 0.4),
        0 0 40px rgba(0, 245, 255, 0.1),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
    padding: 35px;
    z-index: 10;
}

/* Technical corners/accents */
.rift-hud-panel::before,
.rift-hud-panel::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--rift-cyan);
    transition: all 0.3s;
}

.rift-hud-panel::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.rift-hud-panel::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

/* System Bar at Top */
.hud-system-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    padding-bottom: 10px;
}

.hud-status-light {
    display: flex;
    gap: 4px;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
}

.hud-dot.active {
    background: var(--rift-cyan);
    box-shadow: 0 0 5px var(--rift-cyan);
}

.hud-dot.alert {
    background: var(--rift-magenta);
    box-shadow: 0 0 5px var(--rift-magenta);
}

.hud-id {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--rift-cyan);
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Inputs */
.form-field,
.form-field-group {
    margin-bottom: 25px;
    position: relative;
    border: none;
    padding: 0;
}

.form-label,
legend.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--rift-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-hud {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-left: 3px solid var(--rift-dim);
    color: #fff;
    padding: 12px 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.input-hud:focus {
    border-color: var(--rift-cyan);
    border-left-color: var(--rift-cyan);
    background: rgba(0, 245, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.1);
}

.textarea-hud {
    min-height: 100px;
    resize: vertical;
}

/* CUSTOM DROPDOWN */
select.input-hud {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.8);
}

select.input-hud option {
    background: #000;
    color: #fff;
    padding: 10px;
}

.input-container .arrow-down {
    pointer-events: none;
}

/* CUSTOM RADIOS & CHECKBOXES */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.custom-radio,
.custom-checkbox {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: var(--rift-text-muted);
    transition: color 0.3s;
}

.custom-radio:hover,
.custom-checkbox:hover {
    color: #fff;
}

.custom-radio input,
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Radio Mark */
.radio-mark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #555;
    border-radius: 50%;
    transition: all 0.3s;
}

.custom-radio input:checked~.radio-mark {
    background-color: var(--rift-cyan);
    border-color: var(--rift-cyan);
    box-shadow: 0 0 10px var(--rift-cyan);
}

.radio-mark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Checkbox Mark */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid #555;
    border-radius: 2px;
    transition: all 0.3s;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--rift-magenta);
    border-color: var(--rift-magenta);
    box-shadow: 0 0 10px var(--rift-magenta);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Responsive Stacking */
@media (max-width: 600px) {

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Icons */
.hud-icon {
    position: absolute;
    right: 12px;
    color: #555;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.3s;
}

.input-hud:focus~.hud-icon {
    color: var(--rift-cyan);
}

/* Button */
.btn-submit-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.btn-signal {
    background: transparent;
    color: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 3px;
    padding: 15px 50px;
    padding: 15px 50px;
    border: 1px solid #FF6B00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
    cursor: pointer;
    text-transform: uppercase;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-signal::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.5), transparent);
    transition: 0.5s;
}

.btn-signal:hover {
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.8);
    background: rgba(255, 107, 0, 0.1);
}

.btn-signal:hover::before {
    left: 100%;
}

/* Under Panel Glow (Light Effect) */
.panel-floor-light {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 245, 255, 0.3) 0%, transparent 70%);
    z-index: 1;
    filter: blur(10px);
}

/* Mobile Tweaks */
@media (max-width: 600px) {
    .rift-hud-panel {
        padding: 20px;
        width: 100%;
    }

    .rift-cable {
        display: none;
    }
}

/* SCANLINES OVERLAY */
.scanlines {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 20;
    pointer-events: none;
    opacity: 0.6;
}

/* =========================================
   GLITCH TEXT STYLES
   ========================================= */
.rift-glitch-text {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--rift-red);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: block;
    animation: glitch-skew 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    text-shadow: 0 0 5px rgba(255, 32, 78, 0.5);
    line-height: 1.4;
}

.rift-glitch-text::before,
.rift-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rift-panel-bg);
}

.rift-glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 var(--rift-red);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.rift-glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 var(--rift-magenta);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

/* Keyframes (Copied/Adapted for self-containment) */
@keyframes glitch-anim {
    0% {
        clip: rect(32px, 9999px, 86px, 0);
        transform: skew(0.85deg);
    }

    10% {
        clip: rect(6px, 9999px, 6px, 0);
        transform: skew(0.31deg);
    }

    20% {
        clip: rect(98px, 9999px, 89px, 0);
        transform: skew(0.04deg);
    }

    30% {
        clip: rect(27px, 9999px, 7px, 0);
        transform: skew(0.44deg);
    }

    40% {
        clip: rect(91px, 9999px, 53px, 0);
        transform: skew(0.32deg);
    }

    50% {
        clip: rect(38px, 9999px, 32px, 0);
        transform: skew(0.79deg);
    }

    60% {
        clip: rect(83px, 9999px, 1px, 0);
        transform: skew(0.53deg);
    }

    70% {
        clip: rect(25px, 9999px, 96px, 0);
        transform: skew(0.38deg);
    }

    80% {
        clip: rect(57px, 9999px, 73px, 0);
        transform: skew(0.77deg);
    }

    90% {
        clip: rect(99px, 9999px, 17px, 0);
        transform: skew(0.03deg);
    }

    100% {
        clip: rect(60px, 9999px, 77px, 0);
        transform: skew(0.37deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: skew(0.19deg);
    }

    25% {
        clip: rect(59px, 9999px, 34px, 0);
        transform: skew(0.01deg);
    }

    50% {
        clip: rect(4px, 9999px, 76px, 0);
        transform: skew(0.58deg);
    }

    75% {
        clip: rect(82px, 9999px, 37px, 0);
        transform: skew(0.94deg);
    }

    100% {
        clip: rect(13px, 9999px, 86px, 0);
        transform: skew(0.6deg);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-1deg);
    }

    40% {
        transform: skew(1deg);
    }

    60% {
        transform: skew(-0.5deg);
    }

    80% {
        transform: skew(0.5deg);
    }


    100% {
        transform: skew(0deg);
    }
}

/* =========================================
   7. FOOTER (Ported from Feed/About)
   ========================================= */
.rift-footer {
    position: relative;
    background: #100a14;
    padding: 60px 20px;
    border-top: 2px solid var(--rift-cyan);
    margin-top: 100px;
    /* Adjusted for Form Page flow */
    font-family: var(--font-ui);
    overflow: hidden;
    z-index: 100;
}

/* Background Glow */
.rift-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 32, 78, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    /* Red/Pink glow */
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Top Bar Decorative */
.footer-top-bar {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    font-family: var(--font-display);
    color: var(--rift-cyan);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.bar-segment {
    height: 4px;
    background: var(--rift-cyan);
}

.bar-cyan {
    width: 50px;
    margin-right: 10px;
}

.bar-gap {
    width: 10px;
    background: transparent;
}

.bar-title {
    background: transparent;
    white-space: nowrap;
    margin-left: auto;
}

/* Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 30px;
}

/* Col 1: Links (Yellow Theme) */
.footer-col-links {
    border-left: 2px solid #FFE600;
    padding-left: 20px;
    position: relative;
}

.footer-header-yellow {
    font-family: var(--font-display);
    color: #FFE600;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: rgba(255, 230, 0, 0.1);
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #FFE600;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    color: #fff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.9rem;
    transition: all 0.2s;
    text-transform: uppercase;
}

.footer-nav-list a:hover {
    color: #FFE600;
    padding-left: 5px;
    text-shadow: 0 0 5px #FFE600;
}

/* Active Link (Red for Contact Page consistency? Or stick to footer Yellow theme?) 
   The Footer uses Yellow for links. The Nav uses Red for Contact.
   I will use the Yellow 'footer-link-active' style but apply it to Contact.
*/
.footer-link-active {
    background: #FFE600;
    color: #000 !important;
    padding: 2px 10px;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

/* Decorative Curve */
.footer-deco-curve {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 40px;
    background: linear-gradient(to right, #FFE600 0%, transparent 100%);
    opacity: 0.2;
    clip-path: polygon(0 0, 20px 0, 20px 20px, 100% 20px, 100% 100%, 0 100%);
}

/* Col 2: Info (Cyan Box) */
.footer-col-info {
    border: 1px solid rgba(0, 245, 255, 0.3);
    background: rgba(0, 245, 255, 0.05);
    padding: 20px;
    transform: translateX(-25%);
}

.footer-header-cyan {
    font-family: var(--font-display);
    color: var(--rift-cyan);
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--rift-cyan);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-col-info p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.footer-legal {
    font-size: 0.75rem;
    color: #777;
    margin-top: 20px;
}

.footer-legal-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

@media (min-width: 769px) {
    .footer-legal-links {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }
}

.footer-legal-links a {
    color: #555;
    font-size: 0.7rem;
    text-decoration: none;
    font-family: var(--font-ui);
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--rift-cyan);
}

/* Col 3: Social Buttons */
.footer-col-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-col-social .footer-header-cyan {
    align-self: flex-end;
    text-align: right;
}

.footer-social-btn {
    display: block;
    width: 100%;
    text-align: right;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--rift-cyan);
    color: var(--rift-cyan);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    background: linear-gradient(90deg, transparent 50%, rgba(0, 245, 255, 0.1) 100%);
    transition: all 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.footer-social-btn:hover {
    background: var(--rift-cyan);
    color: #000;
    padding-right: 20px;
}

/* Mobile Overrides */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col-info {
        transform: translateX(10%);
        /* Shift right on mobile */
        width: 90%;
        /* Prevent overflow */
        margin: 0 auto;
        /* Centered relative to width */
    }
}

/* =========================================
   6. PRIVACY CHECKBOX (GDPR)
   ========================================= */
.privacy-checkbox {
    margin-bottom: 30px;
    padding: 12px;
    border-left: 2px solid var(--rift-magenta);
    background: rgba(255, 42, 109, 0.05);
    border-radius: 0 4px 4px 0;
}

.privacy-checkbox label {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Gap between checkbox and text */
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--rift-text-muted);
    cursor: pointer;
    line-height: 1.4;
}

.privacy-text {
    color: var(--rift-text-muted);
    opacity: 1;
    /* Force visibility */
    flex: 1;
    display: block;
    /* Ensure it takes space */
}

.privacy-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--rift-magenta);
    flex-shrink: 0;
}

.privacy-checkbox a {
    color: var(--rift-cyan);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.privacy-checkbox a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--rift-cyan);
}

.privacy-checkbox input:focus-visible {
    outline: 2px solid var(--rift-cyan);
    outline-offset: 3px;
}

/* =========================================
   FOOTER EASTER EGG
   ========================================= */
.footer-easter-trigger {
    background: transparent;
    border: 1px solid rgba(113, 28, 145, 0.5);
    color: #711C91;
    padding: 8px 12px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: block;
    width: fit-content;
}

.footer-easter-trigger:hover {
    border-color: #711C91;
    box-shadow: 0 0 15px rgba(113, 28, 145, 0.6);
    transform: scale(1.1);
}

.footer-easter-icon {
    display: inline-block;
    animation: footerEasterPulse 2s ease-in-out infinite;
}

@keyframes footerEasterPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.footer-easter-popup {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: footerEasterFadeIn 0.3s ease;
}

.footer-easter-popup.is-open {
    display: flex;
}

.footer-easter-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--rift-red);
    font-size: 3rem;
    cursor: pointer;
    z-index: 100000;
    transition: transform 0.3s ease;
    line-height: 1;
}

.footer-easter-close:hover {
    transform: scale(1.2);
    color: #fff;
}

@keyframes footerEasterFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.footer-easter-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-easter-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.footer-easter-loading.is-visible {
    opacity: 1;
}

.footer-easter-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 60px);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;

    /* Cyberpunk Container */
    position: relative;
    display: inline-block;
    padding: 20px 40px;
    border: 2px solid var(--rift-cyan);
    background: rgba(0, 245, 255, 0.1);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px),
            calc(100% - 20px) 100%, 0 100%, 0 20px);

    text-shadow:
        0 0 10px rgba(0, 245, 255, 0.8),
        2px 2px 0 var(--rift-magenta);

    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    backdrop-filter: blur(5px);

    animation: footerEasterGlitch 1s ease-in-out infinite alternate;
}

/* Decoration lines for the title box */
.footer-easter-title::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--rift-magenta);
    border-left: 2px solid var(--rift-magenta);
    z-index: 2;
}

.footer-easter-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--rift-magenta);
    border-right: 2px solid var(--rift-magenta);
    z-index: 2;
}

@keyframes footerEasterGlitch {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-2px);
    }

    40% {
        transform: translateX(2px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

.footer-easter-dots {
    display: flex;
    gap: 15px;
}

.footer-dot {
    width: 20px;
    height: 20px;
    background: #711C91;
    border-radius: 50%;
    animation: footerDotBounce 1.2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(113, 28, 145, 0.8);
}

.footer-dot:nth-child(1) {
    animation-delay: 0s;
}

.footer-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes footerDotBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.footer-easter-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.footer-easter-image.is-visible {
    opacity: 1;
}

.footer-easter-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: footerEasterZoom 0.5s ease-out;
}

@keyframes footerEasterZoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .footer-easter-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .footer-dot {
        width: 15px;
        height: 15px;
    }
}

/* Video Glitch/Distortion Effects */
.footer-easter-img {
    filter: contrast(1.2) saturate(1.3);
    position: relative;
}

.footer-easter-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 2px);
    pointer-events: none;
    z-index: 2;
    animation: scanlineMove 8s linear infinite;
}

.footer-easter-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle, transparent 60%, rgba(255, 0, 0, 0.05) 100%),
        radial-gradient(circle, transparent 60%, rgba(0, 255, 0, 0.05) 100%),
        radial-gradient(circle, transparent 60%, rgba(0, 0, 255, 0.05) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
    animation: chromaticShift 0.3s infinite;
}

@keyframes scanlineMove {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

@keyframes chromaticShift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(1px, -1px);
    }

    50% {
        transform: translate(-1px, 1px);
    }

    75% {
        transform: translate(1px, 1px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes videoGlitch {

    0%,
    100% {
        transform: translate(0) scale(1);
        filter: contrast(1.2) saturate(1.3);
    }

    10% {
        transform: translate(-2px, 2px) scale(1.01);
        filter: contrast(1.4) saturate(1.5) hue-rotate(5deg);
    }

    20% {
        transform: translate(2px, -2px) scale(0.99);
        filter: contrast(1.1) saturate(1.2) hue-rotate(-5deg);
    }

    30% {
        transform: translate(-1px, -1px) scale(1);
        filter: contrast(1.3) saturate(1.4);
    }
}

.footer-easter-img.is-glitching {
    animation: videoGlitch 0.2s infinite;
}

/* =========================================
   FORM ERROR MESSAGES (Cyberpunk Style)
   ========================================= */
.form-error-msg {
    color: var(--rift-magenta);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-top: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: glitch-text-anim 0.3s ease-in-out;
}

.form-error-msg::before {
    content: ">> ";
    opacity: 0.7;
}

/* Global Error Box (Replaces Alert) */
.form-global-error {
    color: #fff;
    background: rgba(255, 42, 109, 0.1);
    border: 1px solid var(--rift-magenta);
    border-left: 4px solid var(--rift-magenta);
    padding: 15px;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.2);
    display: none;
    /* Hidden by default */
    animation: glitch-skew 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.form-global-error.is-visible {
    display: block;
}

.form-global-error strong {
    color: var(--rift-magenta);
    font-family: var(--font-display);
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

@keyframes glitch-text-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 1px);
    }

    40% {
        transform: translate(-2px, -1px);
    }

    60% {
        transform: translate(2px, 1px);
    }

    80% {
        transform: translate(1px, -1px);
    }

    100% {
        transform: translate(0);
    }
}

/* =========================================
   MOBILE LANDSCAPE RESPONSIVENESS
   ========================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .feed-header {
        padding: 5px 20px;
    }

    .feed-logo-text {
        transform: translateX(-10px);
        /* Move slightly left */
    }

    .feed-logo-text img {
        height: 25px;
        /* Reduced from 30px */
    }

    .rift-form-container {
        padding-top: 65px;
        padding-bottom: 40px;
    }

    .rift-hud-panel {
        padding: 10px 15px;
    }

    .form-title {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .form-field {
        margin-bottom: 8px;
    }

    .label-hud {
        font-size: 9px !important;
        margin-bottom: 3px !important;
    }

    .input-hud {
        padding: 6px 10px;
        font-size: 11px !important;
    }

    .submit-btn {
        padding: 10px !important;
        font-size: 12px !important;
        margin-top: 5px !important;
    }

    .feed-menu-panel {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 20px;
        max-width: 90vw;
    }

    .feed-menu-logo img {
        height: 60px;
    }

    .feed-menu-item {
        width: calc(50% - 10px);
        font-size: 14px;
        padding: 8px 15px;
    }

    /* Mini Footer Refinement */
    .service-mini-footer {
        font-size: 0.6rem;
        height: 35px;
        padding: 0 15px;
        bottom: 5px;
    }

    .mini-footer-center {
        align-items: flex-end;
        padding-bottom: 2px;
    }
    
     .footer-col-info {
    transform: translateX(-15%);
}
}
