@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #0d0f14;
    --primary-color: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.4);
    --secondary-color: #7000ff;
    --text-color: #f8f9fa;
    --text-muted: #94a3b8;
    --glass-bg: rgba(18, 22, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.03);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(112, 0, 255, 0.08), transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(0, 229, 255, 0.08), transparent 40%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    cursor: default;
}

/* Custom Cursor Interaction */
#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Form Container */
.wizard-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 
        0 40px 100px -20px rgba(0,0,0,0.8),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    padding: 6rem 4rem 4rem; /* top padding fits logo and badge */
    overflow: hidden;
    perspective: 1000px;
}

/* Brand Logo Styling */
.brand-logo {
    position: absolute;
    top: 2rem;
    left: 4rem;
    height: 48px; /* Matches step header h2 size of 3rem (48px) */
    display: flex;
    align-items: center;
    z-index: 10;
}

.brand-logo img {
    height: 100%;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.brand-logo img:hover {
    opacity: 1;
}

/* Real-time Draft Pill */
.draft-badge {
    position: absolute;
    top: 2rem;
    right: 4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
    z-index: 10;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; text-shadow: 0 0 10px var(--primary-glow); }
    100% { opacity: 0.6; }
}

/* Step Navigation Indicators */
.step-dots {
    display: flex;
    gap: 0.75rem; /* Reduced to fit 7 dots beautifully on mobile */
    margin-bottom: 3rem;
    align-items: center;
}

.dot {
    height: 4px;
    flex: 1;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: height 0.3s var(--ease-out-expo), background-color 0.3s ease;
}

.dot.current {
    height: 6px;
    background: rgba(255,255,255,0.15);
}

.dot-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transition: width 0.6s var(--ease-out-expo);
    box-shadow: 0 0 10px var(--primary-color);
}

.dot.active .dot-fill {
    width: 100%;
}

/* Steps */
.step-content {
    position: relative;
    min-height: 380px;
    margin-bottom: 2rem;
    transition: height 0.6s var(--ease-out-expo);
}

.step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.96);
    transition: 
        transform 0.6s var(--ease-out-expo), 
        opacity 0.6s var(--ease-out-expo), 
        visibility 0.6s var(--ease-out-expo);
    pointer-events: none;
}

.step.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.step.exit {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px) scale(0.96);
    pointer-events: none;
}

.step-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Inputs & Forms */
.stagger-in {
    opacity: 0;
    transform: translateY(15px);
}

.active .stagger-in {
    animation: staggerFadeIn 0.8s var(--ease-out-expo) forwards;
}

@keyframes staggerFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    line-height: 1.4;
}

.form-group:focus-within label {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

input[type="text"], input[type="email"], input[type="number"], textarea, select {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    background: rgba(255,255,255,0.06);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), 0 10px 30px -10px rgba(0, 229, 255, 0.2);
}

/* Custom Dropdown Chevron wrapper */
.select-wrapper {
    position: relative;
    width: 100%;
}

select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 3rem;
}

select option {
    background: var(--bg-color);
    color: #fff;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.75rem;
    color: var(--text-muted);
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: color 0.3s ease;
}

.select-wrapper:focus-within::after {
    color: var(--primary-color);
}

/* Hide number inputs spin buttons */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* Card Selection */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modern-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.modern-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.modern-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 229, 255, 0.12), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.modern-card:hover::after {
    opacity: 1;
}

.modern-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
}

.modern-card.active {
    border-color: var(--primary-color);
    background: rgba(0, 229, 255, 0.03);
    box-shadow: 0 20px 40px -10px rgba(0, 229, 255, 0.25);
}

.modern-card.active h3 {
    color: var(--primary-color);
}

.modern-card .card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.2));
}

.modern-card:hover .card-icon {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35));
}

.modern-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.modern-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    z-index: 2;
}

/* Buttons */
.nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
}

.btn-modern {
    background: #fff;
    color: #000;
    padding: 1.25rem 3rem;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(255,255,255,0.2);
}

.btn-modern.primary {
    background: linear-gradient(90deg, #fff, #ddd);
}

.btn-modern.primary:hover {
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.25), 0 0 20px var(--primary-glow);
}

.btn-modern.back {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-modern.back:hover {
    background: rgba(255,255,255,0.05);
}

/* Interactive Choices (Radios & Checkboxes) */
.choice-pill {
    display: flex;
    align-items: flex-start; /* Aligns radios with top of descriptive text */
    gap: 1.5rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    text-transform: none; /* override label text-transform: uppercase */
}

.choice-pill:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(6px);
}

.choice-pill input[type="radio"], .choice-pill input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
    margin-top: 0.15rem; /* Aligns visually with first line of content */
    flex-shrink: 0;
}

.choice-pill.selected {
    border-color: var(--primary-color);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 10px 25px -10px rgba(0, 229, 255, 0.15);
}

/* Success State */
#successHero {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.success-hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

@media (max-width: 768px) {
    .wizard-wrapper {
        padding: 6.5rem 2rem 2rem; /* increased top padding to fit brand items */
    }
    .brand-logo {
        top: 2rem;
        left: 2rem;
        height: 32px;
    }
    .draft-badge {
        top: 2rem;
        right: 2rem;
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
    .step-header h2 { font-size: 2rem; }
    .selection-grid { grid-template-columns: 1fr; }
}

/* Intake Document Styles */
.header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.btn-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding-bottom: 2rem;
}

.btn-submit {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 1rem 3rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.4s var(--ease-out-expo);
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px var(--primary-glow);
}
