/* ===== PREMIUM WAITLIST FORM STYLES ===== */

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.waitlist-page {
    background-color: #f8fafc;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Decorative Background Glows */
body.waitlist-page::before,
body.waitlist-page::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}

body.waitlist-page::before {
    top: -200px;
    right: -200px;
    background: radial-gradient(circle, var(--primary-light), transparent);
}

body.waitlist-page::after {
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
}

.waitlist-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 5% 120px;
    min-height: calc(100vh - 80px);
}

.split-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.form-card {
    width: 100%;
}

/* Left Content Styles */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.hero-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}

.hero-title-main {
    font-size: 3.25rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 95%;
}

.value-props {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.value-prop-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.prop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary);
    background: rgba(124, 58, 237, 0.05);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.prop-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.prop-text strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.prop-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.trust-indicators {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.trust-indicators p {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.industry-icons {
    display: flex;
    gap: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Right Form Card Refinements */
.form-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 40px 80px -20px rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.7);
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 1rem;
}

.form-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 800;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-label::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 12px;
    background: var(--primary);
    border-radius: 2px;
}

.form-section-label:first-child {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

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

.form-group.full-width {
    grid-column: span 2;
    margin-bottom: 0.25rem;
}

label {
    display: block;
    font-weight: 600;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    opacity: 0.8;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.45);
    color: #333333;
}

::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    color: #333333;
}

select:invalid,
select option[value=""] {
    color: var(--text-muted);
}

input:hover,
select:hover {
    border-color: rgba(124, 58, 237, 0.4);
    background: rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    transform: translateY(-1px);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    background: rgba(124, 58, 237, 0.03);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: all 0.25s ease;
}

.checkbox-group:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: var(--primary);
}

.checkbox-group input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.optional-text {
    font-size: 0.85em;
    font-weight: 400;
    color: var(--text-muted);
    font-style: italic;
    margin-left: 0.25rem;
}

/* Dynamic Field Visibility */
.hidden-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    margin-bottom: 0;
}

.hidden-field.visible {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    margin-bottom: 1rem;
}

/* Success Message Styles - Stunning Redesign */
.success-message {
    text-align: center;
    padding: var(--space-xl) 0;
    display: none;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    font-size: 2.5rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.success-message h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.success-message p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Refinement */
.btn-primary-large {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(124, 58, 237, 0.2), 
        0 2px 4px -1px rgba(124, 58, 237, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 15px -3px rgba(124, 58, 237, 0.3), 
        0 4px 6px -2px rgba(124, 58, 237, 0.2),
        0 0 20px rgba(124, 58, 237, 0.4); /* High-impact glow */
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.btn-primary-large:hover::after {
    opacity: 1;
}

.btn-primary-large:active {
    transform: translateY(0);
}

.form-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--primary); /* More interesting color for the note */
    margin-top: 1.25rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Success Actions */
.success-actions {
    margin-top: 2rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .split-hero {
        max-width: 480px;
    }
}

@media (max-width: 640px) {
    .hero-title-main {
        font-size: 2.25rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
}

/* ===== DARK THEME OVERRIDES FOR WAITLIST ===== */
body.waitlist-page.dark-theme {
    background-color: var(--dk-bg-main, #0a0a0a);
}

body.waitlist-page.dark-theme .form-card {
    background: var(--dk-bg-card, #111111);
    border-color: var(--dk-border, #333);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(124, 58, 237, 0.1);
}

body.waitlist-page.dark-theme .form-header h2,
body.waitlist-page.dark-theme .form-header h3 {
    color: var(--dk-text-primary, #ffffff);
}

body.waitlist-page.dark-theme .form-header p,
body.waitlist-page.dark-theme label {
    color: var(--dk-text-secondary, #a1a1aa);
}

body.waitlist-page.dark-theme input[type="text"],
body.waitlist-page.dark-theme input[type="email"],
body.waitlist-page.dark-theme select,
body.waitlist-page.dark-theme textarea {
    background: var(--dk-bg-main, #0a0a0a);
    border-color: var(--dk-border, #333);
    color: var(--dk-text-primary, #ffffff);
}

body.waitlist-page.dark-theme select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

body.waitlist-page.dark-theme input:focus,
body.waitlist-page.dark-theme select:focus,
body.waitlist-page.dark-theme textarea:focus {
    background-color: #111;
    border-color: var(--dk-accent, #8b5cf6);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

body.waitlist-page.dark-theme .checkbox-group {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--dk-border, #333);
    color: var(--dk-text-primary, #ffffff);
}


/* Fix repeating background on select */
body.waitlist-page.dark-theme select {
    background-color: var(--dk-bg-main, #0a0a0a);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}
