/* ═══════════════════════════════════════════════════
   Neon Contact Form — style.css
   Theme: Purple-Black gradient + neon glow animations
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ── CSS Variables ────────────────────────────────── */
.ncf-wrapper {
    --ncf-black:       #06040f;
    --ncf-deep:        #0d0820;
    --ncf-card-bg:     #120d24;
    --ncf-border:      rgba(140, 80, 255, 0.18);
    --ncf-border-glow: rgba(160, 90, 255, 0.55);

    --ncf-purple-1:    #6b21e8;
    --ncf-purple-2:    #9333ea;
    --ncf-purple-3:    #c084fc;
    --ncf-pink:        #e040fb;
    --ncf-violet:      #7c3aed;

    --ncf-text:        #e8d9ff;
    --ncf-muted:       #9b82c4;
    --ncf-placeholder: #5a4780;

    --ncf-success:     #22c55e;
    --ncf-error:       #f43f5e;

    --ncf-radius:      18px;
    --ncf-font-head:   'Syne', sans-serif;
    --ncf-font-body:   'DM Sans', sans-serif;

    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 60px 0 80px;
    box-sizing: border-box;
    font-family: var(--ncf-font-body);
    background: transparent;
    overflow: hidden;
}

/* ── Animated Background ──────────────────────────── */
.ncf-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(107,33,232,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 80%, rgba(192,132,252,0.2) 0%, transparent 55%),
        radial-gradient(ellipse 100% 80% at 50% 50%, #0d0820 0%, #06040f 100%);
    z-index: 0;
    animation: ncfBgPulse 8s ease-in-out infinite alternate;
}

@keyframes ncfBgPulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.85; }
    100% { opacity: 1; }
}

/* ── Glowing Orbs ─────────────────────────────────── */
.ncf-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: ncfFloat 10s ease-in-out infinite;
}
.ncf-orb--1 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(107,33,232,0.45) 0%, transparent 70%);
    top: -60px; left: -80px;
    animation-duration: 12s;
}
.ncf-orb--2 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(192,132,252,0.3) 0%, transparent 70%);
    bottom: 0; right: -60px;
    animation-duration: 9s;
    animation-delay: -4s;
}
.ncf-orb--3 {
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(224,64,251,0.25) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 15s;
    animation-delay: -7s;
}

@keyframes ncfFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    33%       { transform: translateY(-20px) scale(1.05); }
    66%       { transform: translateY(12px) scale(0.97); }
}

/* ── Particles ────────────────────────────────────── */
.ncf-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.ncf-particle {
    position: absolute;
    display: block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--ncf-purple-3);
    opacity: 0;
    animation: ncfRise var(--dur, 8s) var(--delay, 0s) linear infinite;
    left: var(--x, 50%);
    bottom: -10px;
}
.ncf-particle:nth-child(1)  { --x:5%;  --dur:9s;  --delay:0s;   }
.ncf-particle:nth-child(2)  { --x:12%; --dur:11s; --delay:-2s;  }
.ncf-particle:nth-child(3)  { --x:20%; --dur:7s;  --delay:-5s;  background: var(--ncf-pink); }
.ncf-particle:nth-child(4)  { --x:28%; --dur:13s; --delay:-1s;  }
.ncf-particle:nth-child(5)  { --x:35%; --dur:8s;  --delay:-7s;  }
.ncf-particle:nth-child(6)  { --x:43%; --dur:10s; --delay:-3s;  background: var(--ncf-purple-2); }
.ncf-particle:nth-child(7)  { --x:52%; --dur:6s;  --delay:-4s;  }
.ncf-particle:nth-child(8)  { --x:60%; --dur:14s; --delay:-6s;  background: var(--ncf-pink); }
.ncf-particle:nth-child(9)  { --x:68%; --dur:9s;  --delay:-9s;  }
.ncf-particle:nth-child(10) { --x:75%; --dur:11s; --delay:-2s;  }
.ncf-particle:nth-child(11) { --x:82%; --dur:7s;  --delay:-8s;  background: var(--ncf-purple-3); }
.ncf-particle:nth-child(12) { --x:88%; --dur:12s; --delay:-1s;  }
.ncf-particle:nth-child(13) { --x:93%; --dur:8s;  --delay:-5s;  background: var(--ncf-pink); }
.ncf-particle:nth-child(14) { --x:97%; --dur:10s; --delay:-3s;  }
.ncf-particle:nth-child(15) { --x:8%;  --dur:15s; --delay:-11s; }
.ncf-particle:nth-child(16) { --x:22%; --dur:9s;  --delay:-13s; background: var(--ncf-purple-2); }
.ncf-particle:nth-child(17) { --x:47%; --dur:7s;  --delay:-15s; }
.ncf-particle:nth-child(18) { --x:65%; --dur:11s; --delay:-6s;  background: var(--ncf-pink); }
.ncf-particle:nth-child(19) { --x:79%; --dur:13s; --delay:-9s;  }
.ncf-particle:nth-child(20) { --x:91%; --dur:8s;  --delay:-12s; }

@keyframes ncfRise {
    0%   { bottom: -10px; opacity: 0; transform: translateX(0); }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { bottom: 110%; opacity: 0; transform: translateX(calc(var(--drift, 30px) * -1)); }
}

/* ── Falling Hearts ───────────────────────────────── */
.ncf-hearts {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.ncf-heart {
    position: absolute;
    top: -60px;
    font-style: normal;
    line-height: 1;
    animation: ncfHeartFall var(--hdur, 7s) var(--hdelay, 0s) ease-in infinite;
    left: var(--hx, 50%);
    font-size: var(--hsize, 14px);
    opacity: 0;
    color: var(--hcolor, #c084fc);
    filter: drop-shadow(0 0 4px var(--hcolor, #c084fc));
    transform-origin: center;
}

/* Individual heart placements */
.ncf-heart--1  { --hx:4%;  --hdur:8s;  --hdelay:0s;    --hsize:10px; --hcolor:#c084fc; }
.ncf-heart--2  { --hx:10%; --hdur:11s; --hdelay:-3s;   --hsize:16px; --hcolor:#e040fb; }
.ncf-heart--3  { --hx:17%; --hdur:7s;  --hdelay:-1s;   --hsize:9px;  --hcolor:#9333ea; }
.ncf-heart--4  { --hx:24%; --hdur:9s;  --hdelay:-6s;   --hsize:13px; --hcolor:#c084fc; }
.ncf-heart--5  { --hx:31%; --hdur:13s; --hdelay:-2s;   --hsize:8px;  --hcolor:#f0abfc; }
.ncf-heart--6  { --hx:38%; --hdur:6s;  --hdelay:-8s;   --hsize:18px; --hcolor:#e040fb; }
.ncf-heart--7  { --hx:45%; --hdur:10s; --hdelay:-4s;   --hsize:11px; --hcolor:#a855f7; }
.ncf-heart--8  { --hx:52%; --hdur:8s;  --hdelay:-10s;  --hsize:14px; --hcolor:#c084fc; }
.ncf-heart--9  { --hx:59%; --hdur:12s; --hdelay:-1s;   --hsize:9px;  --hcolor:#e040fb; }
.ncf-heart--10 { --hx:65%; --hdur:7s;  --hdelay:-7s;   --hsize:16px; --hcolor:#9333ea; }
.ncf-heart--11 { --hx:72%; --hdur:9s;  --hdelay:-5s;   --hsize:10px; --hcolor:#f0abfc; }
.ncf-heart--12 { --hx:78%; --hdur:14s; --hdelay:-12s;  --hsize:12px; --hcolor:#c084fc; }
.ncf-heart--13 { --hx:84%; --hdur:8s;  --hdelay:-3s;   --hsize:8px;  --hcolor:#e040fb; }
.ncf-heart--14 { --hx:90%; --hdur:11s; --hdelay:-9s;   --hsize:15px; --hcolor:#a855f7; }
.ncf-heart--15 { --hx:95%; --hdur:6s;  --hdelay:-14s;  --hsize:10px; --hcolor:#c084fc; }
.ncf-heart--16 { --hx:7%;  --hdur:10s; --hdelay:-16s;  --hsize:13px; --hcolor:#f0abfc; }
.ncf-heart--17 { --hx:55%; --hdur:9s;  --hdelay:-11s;  --hsize:7px;  --hcolor:#e040fb; }
.ncf-heart--18 { --hx:42%; --hdur:12s; --hdelay:-18s;  --hsize:11px; --hcolor:#9333ea; }

@keyframes ncfHeartFall {
    0%   { top: -60px; opacity: 0;   transform: rotate(-15deg) scale(0.8); }
    5%   { opacity: 0.85; }
    50%  { transform: rotate(10deg) scale(1) translateX(12px); }
    80%  { opacity: 0.6; }
    95%  { opacity: 0.1; transform: rotate(-5deg) scale(0.9) translateX(-8px); }
    100% { top: 105%;   opacity: 0;   transform: rotate(20deg) scale(0.7); }
}

/* ── Card ─────────────────────────────────────────── */
.ncf-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    box-sizing: border-box;
    background:
        linear-gradient(135deg, rgba(30,18,58,0.92) 0%, rgba(12,8,28,0.97) 100%);
    border: 1px solid var(--ncf-border);
    border-radius: var(--ncf-radius);
    padding: 48px clamp(24px, 5vw, 60px) 44px;
    box-shadow:
        0 0 0 1px rgba(160,90,255,0.08),
        0 8px 40px rgba(0,0,0,0.6),
        0 0 80px rgba(107,33,232,0.12),
        inset 0 1px 0 rgba(200,160,255,0.08);
    animation: ncfCardIn 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
    overflow: hidden;
}
.ncf-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192,132,252,0.7), transparent);
    animation: ncfScanLine 4s ease-in-out infinite;
}

@keyframes ncfScanLine {
    0%   { left: -60%; }
    100% { left: 160%; }
}
@keyframes ncfCardIn {
    0%   { opacity: 0; transform: translateY(30px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ───────────────────────────────────────── */
.ncf-header {
    text-align: center;
    margin-bottom: 40px;
}

.ncf-icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ncf-purple-1), var(--ncf-pink));
    color: #fff;
    margin-bottom: 18px;
    box-shadow:
        0 0 0 8px rgba(107,33,232,0.12),
        0 0 30px rgba(147,51,234,0.5);
    animation: ncfIconPulse 3s ease-in-out infinite;
}
@keyframes ncfIconPulse {
    0%, 100% { box-shadow: 0 0 0 8px rgba(107,33,232,0.12), 0 0 30px rgba(147,51,234,0.5); }
    50%       { box-shadow: 0 0 0 14px rgba(107,33,232,0.06), 0 0 50px rgba(192,132,252,0.65); }
}

.ncf-title {
    font-family: var(--ncf-font-head);
    font-size: 1.85rem;
    font-weight: 800;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #fff 20%, var(--ncf-purple-3) 60%, var(--ncf-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.ncf-subtitle {
    font-family: var(--ncf-font-body);
    font-size: 0.875rem;
    color: var(--ncf-muted);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ── Alerts ───────────────────────────────────────── */
.ncf-alert {
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.875rem;
    margin-bottom: 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: ncfAlertIn 0.4s ease both;
}
.ncf-alert[hidden] { display: none; }

@keyframes ncfAlertIn {
    0%   { opacity: 0; transform: translateY(-8px); }
    100% { opacity: 1; transform: translateY(0); }
}
.ncf-alert--error {
    background: rgba(244,63,94,0.12);
    border: 1px solid rgba(244,63,94,0.35);
    color: #fda4af;
}
.ncf-alert--success {
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}

/* ── Fields ───────────────────────────────────────── */
.ncf-form { display: flex; flex-direction: column; gap: 28px; }

.ncf-field { display: flex; flex-direction: column; gap: 8px; }

.ncf-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ncf-font-head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ncf-purple-3);
    transition: color 0.3s;
}
.ncf-label-icon { opacity: 0.75; display: flex; }

.ncf-input-wrap { position: relative; }

.ncf-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--ncf-border);
    border-radius: 10px;
    padding: 14px 18px;
    font-family: var(--ncf-font-body);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ncf-text);
    outline: none;
    transition:
        border-color 0.35s,
        background 0.35s,
        box-shadow 0.35s;
    -webkit-appearance: none;
    resize: none;
    caret-color: var(--ncf-purple-3);
}
.ncf-input::placeholder { color: var(--ncf-placeholder); }

.ncf-input:focus {
    background: rgba(107,33,232,0.08);
    border-color: var(--ncf-violet);
    box-shadow:
        0 0 0 3px rgba(124,58,237,0.2),
        0 0 20px rgba(107,33,232,0.15);
}
.ncf-input:focus + .ncf-underline {
    transform: scaleX(1);
}
.ncf-field:focus-within .ncf-label { color: var(--ncf-purple-2); }

.ncf-underline {
    position: absolute;
    bottom: 0; left: 10%;
    width: 80%; height: 2px;
    background: linear-gradient(90deg, var(--ncf-purple-1), var(--ncf-pink));
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
    pointer-events: none;
}

.ncf-textarea { min-height: 130px; }

.ncf-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--ncf-placeholder);
    font-family: var(--ncf-font-body);
    letter-spacing: 0.03em;
    transition: color 0.3s;
}
.ncf-char-count.ncf-near-limit { color: var(--ncf-pink); }

.ncf-field-error {
    font-size: 0.78rem;
    color: var(--ncf-error);
    font-family: var(--ncf-font-body);
    min-height: 1em;
    animation: ncfAlertIn 0.3s ease both;
}
.ncf-field--invalid .ncf-input {
    border-color: rgba(244,63,94,0.5);
    box-shadow: 0 0 0 3px rgba(244,63,94,0.1);
}

/* ── Submit Button ────────────────────────────────── */
.ncf-btn {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    padding: 16px 36px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--ncf-font-head);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--ncf-purple-1) 0%, var(--ncf-purple-2) 50%, var(--ncf-pink) 100%);
    background-size: 200% 200%;
    box-shadow:
        0 4px 20px rgba(107,33,232,0.45),
        0 1px 0 rgba(255,255,255,0.1) inset;
    transition:
        transform 0.2s,
        box-shadow 0.3s,
        background-position 0.5s;
    animation: ncfGradientShift 5s ease infinite;
}
@keyframes ncfGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.ncf-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 32px rgba(147,51,234,0.6),
        0 0 0 1px rgba(255,255,255,0.1);
}
.ncf-btn:active:not(:disabled) {
    transform: translateY(0);
}
.ncf-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Shine sweep */
.ncf-btn-shine {
    position: absolute;
    top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
    transform: skewX(-20deg);
    animation: ncfShine 3.5s ease-in-out infinite;
}
@keyframes ncfShine {
    0%   { left: -80%; }
    60%  { left: 130%; }
    100% { left: 130%; }
}

/* Loader spinner */
.ncf-btn-loader {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ncfSpin 0.75s linear infinite;
}
@keyframes ncfSpin {
    to { transform: rotate(360deg); }
}
.ncf-btn.ncf-loading .ncf-btn-text   { opacity: 0.6; }
.ncf-btn.ncf-loading .ncf-btn-loader { display: block; }

/* ── Success state ────────────────────────────────── */
.ncf-form.ncf-submitted {
    animation: ncfFadeOut 0.5s ease forwards;
}
@keyframes ncfFadeOut {
    to { opacity: 0; transform: scale(0.98); }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 520px) {
    .ncf-card { padding: 36px 20px 32px; }
    .ncf-title { font-size: 1.5rem; }
    .ncf-wrapper { padding: 40px 0 60px; }
    .ncf-heart { --hsize: 8px !important; }
}
