/* ══════════════════════════════════════════════
   HyNomi — Premium Cybersecurity Landing Page
   ══════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #1E293B;
    --bg-alt:    #0f1b2d;
    --surface:   #1a2d45;
    --border:    rgba(56,149,211,0.12);
    --cyan:      #3895D3;
    --cyan-dark: #1261A0;
    --cyan-dim:  rgba(56,149,211,0.12);
    --cyan-glow: rgba(56,149,211,0.4);
    --text:      #F1F5F9;
    --text-muted:#94A3B8;
    --radius:    12px;
    --radius-sm: 8px;
    --nav-h:     82px;
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--bg-alt);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Background decorations ───────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

.glow-blob {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
}
.glow-1 {
    width: 700px; height: 700px;
    top: -200px; right: -100px;
    background: #3895D3;
}
.glow-2 {
    width: 500px; height: 500px;
    bottom: -150px; left: -100px;
    background: #1261A0;
}

/* ── Site Wrapper ─────────────────────────────── */
.site-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════════════════════════
   TOP BAR
   ══════════════════════════════════════════════ */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 0 0.5rem;
    position: relative;
    z-index: 10;
}
.top-bar__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.top-bar__item a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.top-bar__item a:hover {
    color: var(--text);
}
.top-bar__item svg {
    color: var(--cyan);
    opacity: 0.9;
}
.top-bar__sep {
    color: var(--cyan);
    opacity: 0.4;
    font-size: 0.8rem;
    font-weight: 300;
}

/* ══════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════ */
.navbar {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-shrink: 0;
}

/* Logo */
.navbar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.logo-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,229,255,0.2);
    display: flex; align-items: center; justify-content: center;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}
.logo-text em {
    font-style: normal;
    color: var(--cyan);
}

/* Nav links */
.navbar__nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.navbar__nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
}
.navbar__nav a:not(.nav-cta):hover { color: var(--text); }
.navbar__nav a:not(.nav-cta):hover::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 100%; height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
    border-radius: 1px;
    animation: underline-in 0.2s ease forwards;
}
@keyframes underline-in {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.nav-cta {
    color: var(--cyan) !important;
    border: 1px solid rgba(0,229,255,0.4);
    padding: 0.55rem 1.4rem;
    border-radius: 6px;
    background: var(--cyan-dim);
    transition: all var(--transition) !important;
}
.nav-cta:hover {
    background: rgba(0,229,255,0.2) !important;
    border-color: var(--cyan) !important;
    box-shadow: 0 0 16px var(--cyan-glow);
}

/* Mobile burger */
.nav-toggle { display: none; }
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    z-index: 50;
}
.burger span {
    display: block;
    width: 26px; height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    padding: 4rem 0 3rem;
    position: relative;
}

/* ─ Left Copy ─────────────────────────────────── */
.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,229,255,0.2);
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    width: fit-content;
}
.badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--cyan); }
    50%       { opacity: 0.5; box-shadow: 0 0 12px var(--cyan); }
}

.hero__title {
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text);
}
.hero__title .accent-line {
    display: block;
    background: linear-gradient(90deg, #3895D3 0%, #1261A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.sep { color: var(--cyan); font-weight: 700; }

/* Buttons */
.hero__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #3895D3 0%, #1261A0 100%);
    box-shadow: 0 0 24px rgba(56,149,211,0.4), 0 4px 16px rgba(0,0,0,0.4);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4aa8e8 0%, #3895D3 100%);
    opacity: 0;
    transition: opacity var(--transition);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    box-shadow: 0 0 40px rgba(56,149,211,0.6), 0 6px 24px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}
.btn-primary svg { position: relative; z-index: 1; }
.btn-primary span, .btn-primary { position: relative; z-index: 1; }

.btn-ghost {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}
.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
}

/* Trust bar */
.trust-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 0.5rem;
}
.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.trust-item strong {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--cyan);
    line-height: 1;
}
.trust-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}
.trust-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ─ Right Visual ───────────────────────────────── */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
}

/* Floating code snippets */
.code-float {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    line-height: 1.9;
    color: rgba(0,229,255,0.55);
    background: rgba(22,32,50,0.7);
    border: 1px solid rgba(0,229,255,0.1);
    backdrop-filter: blur(6px);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    pointer-events: none;
    white-space: nowrap;
    animation: float-snippet 7s ease-in-out infinite;
}
.code-float--1 {
    top: 10%; left: -5%;
    animation-delay: 0s;
}
.code-float--2 {
    bottom: 14%; right: -5%;
    animation-delay: 3.5s;
    color: rgba(148,163,184,0.7);
    font-size: 0.78rem;
}
.code-float--3 {
    bottom: 8%; left: -8%;
    animation-delay: 1.8s;
    font-size: 0.76rem;
    color: rgba(0,229,255,0.45);
}
.code-kw  { color: #60A5FA; }
.code-fn  { color: #34D399; }
.code-str { color: #FCD34D; }

@keyframes float-snippet {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════════
   CSS ANIMATED VISUAL (no image)
   ═══════════════════════════════════════════ */
.css-visual {
    position: relative;
    width: min(480px, 46vw);
    height: min(480px, 46vw);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: levitate 7s ease-in-out infinite;
}

@keyframes levitate {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-20px); }
}

/* Ambient glow blob behind everything */
.cv-glow {
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,149,211,0.2) 0%, transparent 70%);
    filter: blur(40px);
    animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50%       { opacity: 1;   transform: scale(1.15); }
}

/* Orbital rings */
.cv-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(56,149,211,0.25);
}
.cv-ring--1 {
    width: 88%; height: 88%;
    border-color: rgba(56,149,211,0.35);
    border-style: dashed;
    animation: spin-cw 18s linear infinite;
}
.cv-ring--2 {
    width: 70%; height: 70%;
    border-color: rgba(56,149,211,0.2);
    animation: spin-ccw 12s linear infinite;
    transform: rotateX(65deg);
}
.cv-ring--3 {
    width: 55%; height: 55%;
    border-color: rgba(18,97,160,0.4);
    animation: spin-cw 8s linear infinite;
    transform: rotateY(60deg);
}
@keyframes spin-cw  { from { transform: rotate(0deg); }   to { transform: rotate(360deg); } }
@keyframes spin-ccw { from { transform: rotate(0deg); }   to { transform: rotate(-360deg); } }

/* Orbiting node dots */
.cv-orbit {
    position: absolute;
    border-radius: 50%;
    animation: spin-cw linear infinite;
}
.cv-orbit--1 { width: 88%; height: 88%; animation-duration: 18s; }
.cv-orbit--2 { width: 70%; height: 70%; animation-duration: 12s; animation-direction: reverse; }
.cv-orbit--3 { width: 55%; height: 55%; animation-duration: 8s; }

.cv-node {
    position: absolute;
    top: -5px; left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #3895D3;
    box-shadow: 0 0 10px #3895D3, 0 0 20px rgba(56,149,211,0.6);
    width: 10px; height: 10px;
}
.cv-node--sm { width: 7px; height: 7px; background: #1261A0; box-shadow: 0 0 8px #3895D3; }
.cv-node--xs { width: 5px; height: 5px; background: #3895D3; box-shadow: 0 0 6px #3895D3; }

/* Central hexagon panel */
.cv-hex-wrap {
    position: relative;
    z-index: 5;
    width: 46%;
    height: 46%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cv-hex {
    width: 100%;
    height: 100%;
    background: rgba(18,97,160,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56,149,211,0.35);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 30px rgba(56,149,211,0.15),
        inset 0 0 30px rgba(56,149,211,0.08);
    animation: hex-pulse 4s ease-in-out infinite;
}
@keyframes hex-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(56,149,211,0.15), inset 0 0 30px rgba(56,149,211,0.08); }
    50%       { box-shadow: 0 0 50px rgba(56,149,211,0.3),  inset 0 0 40px rgba(56,149,211,0.15); }
}

/* Shield SVG inside hex */
.cv-shield {
    width: 70%;
    height: 70%;
    filter: drop-shadow(0 0 10px rgba(56,149,211,0.8));
}

/* Floating data blips */
.cv-blip {
    position: absolute;
    border-radius: 50%;
    background: #3895D3;
    box-shadow: 0 0 8px #3895D3;
    animation: blip-float ease-in-out infinite;
}
.cv-blip--1 { width: 6px; height: 6px; top: 18%; left: 12%; animation-duration: 5s; animation-delay: 0s; }
.cv-blip--2 { width: 4px; height: 4px; top: 72%; left: 18%; animation-duration: 7s; animation-delay: 1.5s; }
.cv-blip--3 { width: 5px; height: 5px; top: 25%; right: 10%; animation-duration: 6s; animation-delay: 3s; }
.cv-blip--4 { width: 3px; height: 3px; bottom: 22%; right: 15%; animation-duration: 4.5s; animation-delay: 0.8s; }

@keyframes blip-float {
    0%, 100% { transform: translateY(0) scale(1);   opacity: 0.8; }
    50%       { transform: translateY(-14px) scale(1.4); opacity: 1; }
}

/* Server rack silhouette */
.rack-silhouette {
    position: absolute;
    right: -48px;
    top: 0;
    bottom: 0;
    width: 80px;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0px,
            transparent 28px,
            rgba(0,0,0,0.25) 28px,
            rgba(0,0,0,0.25) 32px
        );
    border-left: 1px solid rgba(255,255,255,0.05);
    opacity: 0.55;
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
    transform: perspective(800px) rotateY(-15deg);
}

/* ══════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════ */
.cards-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: rgba(36,48,68,0.6);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: all var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0,229,255,0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.card:hover {
    border-color: rgba(0,229,255,0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 24px rgba(0,229,255,0.12);
}
.card:hover::before { opacity: 1; }

.card__icon-wrap {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0,229,255,0.2);
    color: var(--cyan);
}

.card__body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text);
}
.card__body p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .site-wrapper { padding: 0 32px; }
    .top-bar { justify-content: center; gap: 1rem; }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding: 3rem 0 2rem;
    }

    .hero__badge     { margin: 0 auto; }
    .hero__desc      { justify-content: center; }
    .hero__actions   { justify-content: center; }
    .trust-bar       { justify-content: center; }

    .hero__visual { min-height: 340px; }
    .css-visual  { width: 320px; height: 320px; }

    .code-float--1 { top: 0; left: 0; }
    .code-float--2 { bottom: 0; right: 0; }

    .rack-silhouette { display: none; }

    .cards-section { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-wrapper { padding: 0 20px; }

    /* Mobile Nav */
    .burger { display: flex; }
    .navbar__nav {
        position: fixed;
        top: 0; right: 0;
        width: min(320px, 100vw);
        height: 100vh;
        background: rgba(22,32,50,0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 40;
    }
    .navbar__nav a { font-size: 1.2rem; }
    .nav-toggle:checked ~ .navbar__nav { transform: translateX(0); }

    .hero { padding: 2rem 0; }
    .hero__title { font-size: 2.4rem; }

    .css-visual   { width: 280px; height: 280px; }
    .code-float   { font-size: 0.72rem; padding: 0.6rem 0.9rem; }

    .cards-section {
        grid-template-columns: 1fr;
        padding-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .navbar { height: 68px; }
    .hero__title { font-size: 2rem; }
    .hero__actions { flex-direction: column; width: 100%; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; text-align: center; }
    .trust-bar { flex-wrap: wrap; gap: 1.25rem; }
    .trust-divider { display: none; }
    .css-visual { width: 240px; height: 240px; }
}

/* ══════════════════════════════════════════════
   CONTACT MODAL
   ══════════════════════════════════════════════ */

/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 18, 30, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1),
                visibility 0.35s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal panel */
.modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: rgba(15, 27, 45, 0.92);
    border: 1px solid rgba(56, 149, 211, 0.22);
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow:
        0 0 60px rgba(56, 149, 211, 0.12),
        0 40px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(28px) scale(0.97);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(56,149,211,0.3) transparent;
}
.modal-overlay.is-open .modal-box {
    transform: translateY(0) scale(1);
}
.modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56,149,211,0.5), transparent);
    border-radius: 999px;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    border-color: rgba(255,255,255,0.18);
}

/* Modal header */
.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}
.modal-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--cyan-dim);
    border: 1px solid rgba(56,149,211,0.3);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(56,149,211,0.15);
}
.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.1;
}
.modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Form layout */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Input wrapper */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(56,149,211,0.5);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}
.textarea-wrap .input-icon {
    top: 14px;
    transform: none;
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(56, 149, 211, 0.18);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.925rem;
    line-height: 1.5;
    transition: all var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.input-wrap textarea {
    resize: vertical;
    min-height: 110px;
    padding-top: 0.85rem;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
    color: rgba(148, 163, 184, 0.4);
}
.input-wrap input:focus,
.input-wrap textarea:focus {
    border-color: var(--cyan);
    background: rgba(56, 149, 211, 0.06);
    box-shadow: 0 0 0 3px rgba(56, 149, 211, 0.12);
}
.input-wrap input:focus ~ .input-icon,
.input-wrap textarea:focus ~ .input-icon,
.input-wrap:focus-within .input-icon {
    color: var(--cyan);
}

/* Status feedback */
.form-status {
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0;
    min-height: 0;
    transition: all var(--transition);
    overflow: hidden;
    max-height: 0;
}
.form-status:not(:empty) {
    padding: 0.75rem 1rem;
    max-height: 100px;
}
.form-status.status-success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34D399;
}
.form-status.status-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

/* Submit button */
.form-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #3895D3 0%, #1261A0 100%);
    box-shadow: 0 0 24px rgba(56,149,211,0.35), 0 4px 16px rgba(0,0,0,0.4);
    transition: all var(--transition);
    overflow: hidden;
    margin-top: 0.25rem;
    width: 100%;
}
.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #4aa8e8 0%, #3895D3 100%);
    opacity: 0;
    transition: opacity var(--transition);
}
.form-submit:not(:disabled):hover::before { opacity: 1; }
.form-submit:not(:disabled):hover {
    box-shadow: 0 0 40px rgba(56,149,211,0.55), 0 6px 24px rgba(0,0,0,0.4);
    transform: translateY(-2px);
}
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.submit-text, .submit-arrow { position: relative; z-index: 1; }

/* Loading spinner */
.submit-spinner {
    display: none;
    position: relative;
    z-index: 1;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-loader 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes spin-loader {
    to { transform: rotate(360deg); }
}
.form-submit.is-loading .submit-text { opacity: 0.6; }
.form-submit.is-loading .submit-arrow { display: none; }
.form-submit.is-loading .submit-spinner { display: block; }

/* ── Modal responsive ───────────────────────── */
@media (max-width: 540px) {
    .modal-box {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 16px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .modal-title { font-size: 1.35rem; }
}

/* ══════════════════════════════════════════════
   FIELD VALIDATION STATES
   ══════════════════════════════════════════════ */

/* Inline error message under each field */
.field-error {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #F87171;
    min-height: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    padding: 0;
}
.field-error:not(:empty) {
    max-height: 40px;
    padding-top: 4px;
}

/* Red border when field is invalid */
.input-wrap.input-invalid input,
.input-wrap.input-invalid textarea {
    border-color: rgba(239, 68, 68, 0.7) !important;
    background: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}
.input-wrap.input-invalid .input-icon {
    color: rgba(239, 68, 68, 0.7);
}

/* Green border when field is valid */
.input-wrap.input-valid input,
.input-wrap.input-valid textarea {
    border-color: rgba(52, 211, 153, 0.5) !important;
    background: rgba(52, 211, 153, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.1) !important;
}
.input-wrap.input-valid .input-icon {
    color: rgba(52, 211, 153, 0.7);
}

