*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',sans-serif;background:#f8fafc;color:#0f172a;-webkit-font-smoothing:antialiased;min-height:100vh;padding:260px 24px 80px !important;display:flex;flex-direction:column;align-items:center;overflow-x:hidden}

/* Ambient glow */
.bg-glow{position:fixed;border-radius:50%;filter:blur(120px);z-index:-1;opacity:0.2;pointer-events:none;animation:float 10s infinite alternate ease-in-out}
.bg-glow-1{width:500px;height:500px;background:#002bff;top:-100px;left:-100px}
.bg-glow-2{width:400px;height:400px;background:#38bdf8;bottom:-80px;right:-80px;animation-delay:-5s}
@keyframes float{0%{transform:translate(0,0) scale(1)}100%{transform:translate(40px,40px) scale(1.08)}}

/* Container */
.intake-wrap{
    width:100%;
    max-width:640px;
    position:relative;
    z-index:1;
}

/* Header */
.intake-header{text-align:center;margin-bottom:48px}
.intake-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    font-weight:800;
    letter-spacing:0.15em;
    text-transform:uppercase;
    color:#002bff;
    background:rgba(0,43,255,0.06);
    border:1px solid rgba(0,43,255,0.15);
    padding:8px 20px;
    border-radius:100px;
    margin-bottom:24px;
    box-shadow:0 4px 15px rgba(0,43,255,0.06);
}
.intake-eyebrow i{width:14px;height:14px}
.intake-title{
    font-family:'Instrument Serif',serif;
    font-size:44px;
    font-weight:400;
    letter-spacing:-0.03em;
    line-height:1.15;
    color:#0f172a;
    margin-bottom:14px;
}
.intake-title span{color:#002bff;font-style:italic;text-shadow:0 0 20px rgba(56,189,248,.3)}
.intake-sub{font-size:15px;color:rgba(15,23,42,0.45);line-height:1.7;max-width:480px;margin:0 auto}

/* Form card */
.intake-form{
    background:linear-gradient(180deg,rgba(255,255,255,0.98) 0%,rgba(248,250,252,0.95) 100%);
    backdrop-filter:blur(24px);
    -webkit-backdrop-filter:blur(24px);
    border:1px solid rgba(56,189,248,0.2);
    border-radius:24px;
    padding:40px;
    position:relative;
    box-shadow:0 8px 40px rgba(0,43,255,0.04),0 1px 0 rgba(255,255,255,0.8) inset;
}
.intake-form::before{
    content:'';
    position:absolute;
    top:0;left:15%;right:15%;height:2px;
    background:linear-gradient(90deg,transparent,#38bdf8,#002bff,#38bdf8,transparent);
    opacity:0.5;
    border-radius:100px;
}

/* Fields */
.field{margin-bottom:22px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}
.field-row .field{margin-bottom:0}

label{
    display:block;
    font-family:'Inter',sans-serif;
    font-size:13px;
    font-weight:600;
    color:#0f172a;
    margin-bottom:10px;
    letter-spacing:0;
    line-height:1.4;
}
.req{color:#002bff;font-weight:700;margin-left:2px}

input,select,textarea{
    width:100%;
    font-family:'Inter',sans-serif;
    font-size:15px;
    font-weight:500;
    color:#0f172a;
    background:#ffffff;
    border:1.5px solid rgba(15,23,42,0.1);
    border-radius:12px;
    padding:14px 16px;
    outline:none;
    transition:border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    -webkit-appearance:none;
    appearance:none;
    box-shadow:0 1px 2px rgba(15,23,42,0.03);
    line-height:1.4;
}
input::placeholder,textarea::placeholder{
    color:rgba(15,23,42,0.35);
    font-weight:400;
}
input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus){
    border-color:rgba(15,23,42,0.2);
    background:#fdfdff;
}
input:focus,select:focus,textarea:focus{
    border-color:#002bff;
    background:#ffffff;
    box-shadow:0 0 0 4px rgba(0,43,255,0.1), 0 4px 14px rgba(0,43,255,0.06);
}
input.error,select.error,textarea.error{
    border-color:#dc2626;
    background:rgba(254,226,226,0.4);
    box-shadow:0 0 0 4px rgba(220,38,38,0.08);
}
input:autofill,
input:-webkit-autofill{
    -webkit-text-fill-color:#0f172a;
    -webkit-box-shadow:0 0 0 1000px #ffffff inset !important;
    box-shadow:0 0 0 1000px #ffffff inset !important;
    border:1.5px solid rgba(15,23,42,0.1);
}

textarea{
    resize:vertical;
    min-height:120px;
    line-height:1.6;
}

/* Custom select */
.select-wrap{position:relative}
.select-wrap select{padding-right:44px;cursor:pointer}
.select-icon{
    position:absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    width:18px;
    height:18px;
    color:rgba(15,23,42,0.4);
    pointer-events:none;
    transition:color 0.18s ease;
}
.select-wrap:focus-within .select-icon{color:#002bff}

/* CTA */
.intake-cta{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    padding:18px 0;
    border-radius:12px;
    font-family:'Inter',sans-serif;
    font-size:15px;
    font-weight:700;
    letter-spacing:0.02em;
    border:none;
    cursor:pointer;
    transition:all 0.2s;
    background:linear-gradient(180deg,#2878e8 0%,#35a0ee 40%,#44bcf0 70%,#5cd6f4 100%);
    box-shadow:0 5px 0 0 #1e6abf,0 8px 20px rgba(37,120,235,.25);
    color:#fff;
    text-shadow:0 1px 2px rgba(0,0,0,.15);
    margin-top:8px;
}
.intake-cta:hover{
    transform:translateY(-2px);
    box-shadow:0 7px 0 0 #1e6abf,0 12px 28px rgba(37,120,235,.35);
}
.intake-cta:active{
    transform:translateY(3px);
    box-shadow:0 1px 0 0 #1e6abf;
}
.intake-cta:disabled{
    opacity:0.6;
    cursor:not-allowed;
    transform:none;
}

.intake-legal{
    font-size:12px;
    color:rgba(15,23,42,0.3);
    text-align:center;
    margin-top:16px;
    line-height:1.5;
}

/* Loading spinner */
@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}
.spin{animation:spin 1s linear infinite;width:16px;height:16px}

/* Success state */
.intake-success{
    text-align:center;
    padding:80px 40px;
    background:linear-gradient(180deg,rgba(255,255,255,0.98) 0%,rgba(248,250,252,0.95) 100%);
    border:1px solid rgba(56,189,248,0.2);
    border-radius:24px;
    box-shadow:0 8px 40px rgba(0,43,255,0.04);
}
.success-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:64px;
    height:64px;
    background:rgba(0,43,255,0.06);
    border-radius:50%;
    margin-bottom:24px;
    color:#002bff;
}
.success-icon i{width:32px;height:32px}
.intake-success h2{
    font-family:'Instrument Serif',serif;
    font-size:36px;
    font-weight:400;
    font-style:italic;
    color:#0f172a;
    margin-bottom:12px;
}
.intake-success p{
    font-size:15px;
    color:rgba(15,23,42,0.45);
    line-height:1.7;
    max-width:400px;
    margin:0 auto;
}

/* Responsive */
@media(max-width:600px){
    body{padding:200px 16px 40px !important}
    .intake-title{font-size:32px}
    .intake-form{padding:28px 20px}
    .field-row{grid-template-columns:1fr;gap:0}
    .field-row .field{margin-bottom:24px}
}

/* ======= INTERACTIVE CANVAS BG ======= */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.intake-wrap { position: relative; z-index: 2; }

/* Footer: escape body's flex-center + side padding, add breathing room above */
#site-footer.ft {
    align-self: stretch;
    width: calc(100% + 48px);
    margin: 96px -24px 0;
}
@media(max-width:600px){
    #site-footer.ft {
        width: calc(100% + 32px);
        margin: 64px -16px 0;
    }
}