/* ==========================================
   WAITLIST FORM STYLES
   Professional, mobile-first design
   ========================================== */

/* Global hidden class - must hide elements */
.hidden {
    display: none !important;
}

/* ==========================================
   FULL-SCREEN WAITLIST OVERLAY
   ========================================== */

/* Full-screen overlay - MUST be hidden by default */
.waitlist-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: #0a0a0a !important;
    z-index: 9999 !important;
    display: none !important;
    overflow-y: auto;
}

.waitlist-overlay.active {
    display: block !important;
}

/* Brand in top-left - uses same .brand styles as header nav */
.waitlist-overlay .waitlist-brand {
    position: absolute;
    top: 24px;
    left: 32px;
    z-index: 1;
    max-width: 160px;
}

.waitlist-overlay .waitlist-brand .brand-wrapper {
    display: inline-block;
    position: relative;
    max-width: 100%;
}

/* Close button top-right */
.waitlist-close {
    position: fixed;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10000;
}

.waitlist-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Waitlist card - centered */
.waitlist-card {
    position: relative;
    max-width: 400px;
    width: 90%;
    margin: 100px auto 60px;
    padding: 0;
}

/* Dark theme for waitlist modal content */
.waitlist-overlay .auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.waitlist-overlay .auth-header h2 {
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 500;
    margin: 0 0 8px 0;
    font-family: "Inter", sans-serif;
}

.waitlist-overlay .auth-header p {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    margin: 0;
}

.waitlist-overlay .form-group {
    margin-bottom: 16px;
}

.waitlist-overlay .form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.waitlist-overlay .form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.waitlist-overlay .form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.waitlist-overlay .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Role selection - dark theme */
.waitlist-overlay .role-label {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.waitlist-overlay .role-label:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.waitlist-overlay .role-option input:checked + .role-label {
    border-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

.waitlist-overlay .role-option input:checked + .role-label::before {
    background: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") !important;
    background-size: 12px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.waitlist-overlay .role-title {
    color: #ffffff !important;
}

.waitlist-overlay .role-desc {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Submit button - white with dark text (like header) */
.waitlist-overlay .btn-submit-white {
    width: 100%;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease;
}

.waitlist-overlay .btn-submit-white:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

.waitlist-overlay .btn-submit-white .arrow {
    display: inline !important;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.waitlist-overlay .btn-submit-white:hover .arrow {
    transform: translate(2px, -2px);
}

/* Role group label */
.waitlist-overlay .role-group-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Form row for side-by-side fields */
.waitlist-overlay .form-row {
    display: flex;
    gap: 12px;
}

.waitlist-overlay .form-row .form-group {
    flex: 1;
}

/* Success state - dark theme */
.waitlist-overlay .waitlist-success h2 {
    color: #ffffff !important;
}

.waitlist-overlay .waitlist-success p {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Hide step indicator for single-step form */
.waitlist-overlay .step-indicator,
.waitlist-overlay .progress-steps {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .waitlist-overlay .waitlist-brand {
        top: 16px;
        left: 16px;
    }

    .waitlist-close {
        top: 16px;
        right: 16px;
    }

    .waitlist-card {
        margin-top: 80px;
        padding: 0 16px;
        width: calc(100% - 32px);
    }

    .waitlist-overlay .form-row {
        flex-direction: column;
        gap: 0;
    }

    .waitlist-overlay .auth-header h2 {
        font-size: 22px;
    }
}

/* ==========================================
   HEADER WAITLIST BUTTON
   ========================================== */

/* Join Waitlist Button - Clean white style */
.btn-waitlist {
    background: #ffffff;
    border: none;
    color: #000000;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-waitlist:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-waitlist .arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-waitlist .arrow svg {
    width: 14px;
    height: 14px;
}

.btn-waitlist:hover .arrow {
    transform: translate(2px, -2px);
}

/* Waitlist Modal - Mobile First */
.waitlist-modal {
    max-width: 440px;
    width: 94%;
    margin: 16px;
    padding: 24px 20px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Progress Steps - Hidden for single step */
.progress-steps {
    display: none;
}

.step-indicator {
    display: none;
}

/* Form Row - Stack on mobile, side by side on desktop */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 480px) {
    .form-row {
        flex-direction: row;
        gap: 12px;
    }

    .form-row .form-group {
        flex: 1;
    }
}

/* Form Group Spacing */
#waitlist-form .form-group {
    margin-bottom: 16px;
}

#waitlist-form .form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
}

#waitlist-form .form-group input {
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-appearance: none;
}

#waitlist-form .form-group input:focus {
    border-color: #FF9900;
    background: rgba(255, 153, 0, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

#waitlist-form .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Role Selection - Clean, professional cards */
.role-selection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

@media (min-width: 480px) {
    .role-selection {
        flex-direction: row;
        gap: 12px;
    }
}

.role-option {
    flex: 1;
    position: relative;
}

.role-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 70px;
}

.role-label:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.role-option input:checked + .role-label {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(255, 255, 255, 0.1);
}

.role-option input:checked + .role-label::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000000'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.role-icon {
    display: none;
}

.role-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.role-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.3;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* Old orange button - keeping for fallback */
.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.35);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* White submit button - matches header style */
.btn-submit-white {
    width: 100%;
    padding: 14px 24px;
    background: #ffffff;
    border: none;
    border-radius: 50px;
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
}

.btn-submit-white:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.btn-submit-white:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit-white:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit-white .arrow {
    font-size: 14px;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-submit-white .arrow svg {
    width: 14px;
    height: 14px;
}

.btn-submit-white:hover .arrow {
    transform: translate(2px, -2px);
}

/* Loading state for white button */
.btn-submit-white.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-submit-white.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Hide continue button - single step form now */
.btn-continue {
    display: none;
}

.btn-back {
    display: none;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Select Dropdown */
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    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 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select:focus {
    outline: none;
    border-color: #FF9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
    padding: 12px;
}

/* Success State */
.waitlist-success {
    text-align: center;
    padding: 32px 16px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.waitlist-success h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.waitlist-success p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.waitlist-position {
    display: inline-block;
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.25);
    border-radius: 8px;
    padding: 14px 28px;
    margin-bottom: 20px;
}

.waitlist-position span {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.waitlist-position strong {
    color: #FF9900;
    font-size: 28px;
    font-weight: 700;
}

/* Share Section */
.share-section {
    position: relative;
    display: inline-block;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Share Menu Dropdown */
.share-menu {
    display: none;
    flex-direction: row;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-menu.open {
    display: flex;
    animation: share-menu-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes share-menu-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 72px;
    min-height: 70px;
}

.share-option:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 4px 12px rgba(255, 255, 255, 0.06);
}

.share-option:active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(255, 255, 255, 0.1);
    transform: scale(0.97);
}

.share-option svg {
    opacity: 0.85;
    transition: opacity 0.2s;
}

.share-option:hover svg {
    opacity: 1;
}

/* WhatsApp */
.share-option[data-share="whatsapp"]:hover {
    border-color: rgba(37, 211, 102, 0.5);
    background: rgba(37, 211, 102, 0.08);
}
.share-option[data-share="whatsapp"]:active {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.15);
    box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.3), 0 4px 12px rgba(37, 211, 102, 0.1);
}
.share-option[data-share="whatsapp"]:hover svg {
    color: #25D366;
    fill: #25D366;
}

/* Instagram */
.share-option[data-share="instagram"]:hover {
    border-color: rgba(225, 48, 108, 0.5);
    background: rgba(225, 48, 108, 0.08);
}
.share-option[data-share="instagram"]:active {
    border-color: #E1306C;
    background: rgba(225, 48, 108, 0.15);
    box-shadow: 0 0 0 1px rgba(225, 48, 108, 0.3), 0 4px 12px rgba(225, 48, 108, 0.1);
}
.share-option[data-share="instagram"]:hover svg {
    color: #E1306C;
    fill: #E1306C;
}

/* X/Twitter */
.share-option[data-share="x"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}
.share-option[data-share="x"]:active {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(255, 255, 255, 0.1);
}

/* Email */
.share-option[data-share="email"]:hover {
    border-color: rgba(26, 115, 232, 0.5);
    background: rgba(26, 115, 232, 0.08);
}
.share-option[data-share="email"]:active {
    border-color: #1a73e8;
    background: rgba(26, 115, 232, 0.15);
    box-shadow: 0 0 0 1px rgba(26, 115, 232, 0.3), 0 4px 12px rgba(26, 115, 232, 0.1);
}
.share-option[data-share="email"]:hover svg {
    color: #1a73e8;
    stroke: #1a73e8;
}

/* Copy link */
.share-option[data-share="copy"]:hover {
    border-color: rgba(255, 153, 0, 0.5);
    background: rgba(255, 153, 0, 0.08);
}
.share-option[data-share="copy"]:active {
    border-color: #FF9900;
    background: rgba(255, 153, 0, 0.15);
    box-shadow: 0 0 0 1px rgba(255, 153, 0, 0.3), 0 4px 12px rgba(255, 153, 0, 0.1);
}
.share-option[data-share="copy"]:hover svg {
    color: #FF9900;
    stroke: #FF9900;
}

/* Copied state */
.share-option.copied {
    border-color: #4CAF50 !important;
    background: rgba(76, 175, 80, 0.12) !important;
    color: #4CAF50 !important;
    box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.3), 0 4px 12px rgba(76, 175, 80, 0.1) !important;
}
.share-option.copied svg {
    stroke: #4CAF50 !important;
}

/* Device-specific visibility */
.share-desktop-only { display: none; }
.share-mobile-only { display: flex; }

@media (min-width: 769px) {
    .share-desktop-only { display: flex; }
    .share-mobile-only { display: none; }
}

/* Skip Button - Hidden */
.btn-skip-details {
    display: none;
}

/* Loading State */
.btn-submit.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Error State */
.form-group.error input,
.form-group.error select {
    border-color: #f44336;
}

.error-message {
    color: #f44336;
    font-size: 12px;
    margin-top: 6px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.toast.error {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.toast button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Mobile Responsive - Optimized for smaller screens */
@media (max-width: 480px) {
    .waitlist-modal {
        padding: 20px 16px;
        margin: 8px;
        width: calc(100% - 16px);
        max-height: 95vh;
        border-radius: 12px;
    }

    .auth-header h2 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .auth-header p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    #waitlist-form .form-group {
        margin-bottom: 14px;
    }

    #waitlist-form .form-group label {
        font-size: 13px;
        margin-bottom: 5px;
    }

    #waitlist-form .form-group input {
        padding: 11px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .role-label {
        padding: 14px 10px;
        min-height: auto;
    }

    .role-title {
        font-size: 14px;
    }

    .role-desc {
        font-size: 11px;
    }

    .btn-submit {
        padding: 13px 16px;
        font-size: 15px;
    }

    .form-actions {
        margin-top: 16px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .waitlist-modal {
        padding: 16px 12px;
    }

    .role-selection {
        gap: 8px;
    }

    .role-label {
        padding: 12px 8px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    #waitlist-form .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom */
    }
}

/* ==========================================
   SPARK IGNITION CELEBRATION ANIMATION
   Fuse burn → Star launch → Fireworks
   ========================================== */

/* Fireworks Canvas - fullscreen overlay */
.fireworks-canvas {
    position: fixed;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 10;
    pointer-events: none;
    display: none;
}

/* Ignition Container - centered fullscreen */
.spark-ignition {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 6;
    pointer-events: none;
}

.spark-ignition.active {
    display: flex;
}

/* The brand logo assembly */
.ignition-logo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.spark-ignition.active .ignition-logo {
    opacity: 1;
}

/* The star element - large centered version */
.ignition-star {
    width: 48px;
    height: 48px;
    display: inline-block;
    flex-shrink: 0;
    background: conic-gradient(from 130deg, #1a73e8, #7b4dff, #e9428b, #f59e0b, #1a73e8);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 67% 58%, 79% 92%, 50% 72%, 21% 92%, 33% 58%, 2% 35%, 39% 35%);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
    margin-top: 6px;
}

/* Star ignites - catches fire */
.ignition-star.ignited {
    background: radial-gradient(circle, #ffffff 0%, #FFD700 30%, #FF9900 55%, #ff4400 80%);
    filter: drop-shadow(0 0 15px #FF9900) drop-shadow(0 0 30px #ff4400) drop-shadow(0 0 45px rgba(255, 100, 0, 0.5));
    animation: star-pulse 0.15s ease 3;
}

@keyframes star-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Star launches upward like a rocket */
.ignition-star.launched {
    animation: star-launch 0.6s cubic-bezier(0.25, 0, 0.6, 1) forwards !important;
}

@keyframes star-launch {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 15px #FF9900) drop-shadow(0 0 30px #ff4400);
    }
    40% {
        transform: translateY(-120px) scale(0.9);
        opacity: 1;
        filter: drop-shadow(0 0 25px #FF9900) drop-shadow(0 0 50px #ff4400);
    }
    100% {
        transform: translateY(-400px) scale(0.2);
        opacity: 0;
        filter: drop-shadow(0 0 5px #FF9900);
    }
}

/* Brand text */
.ignition-name-wrap {
    display: flex;
    flex-direction: column;
}

.ignition-name {
    font-family: "Inter", sans-serif;
    font-size: 52px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
    display: block;
    letter-spacing: -0.5px;
}

/* Arrow/fuse wrapper */
.ignition-arrow-wrap {
    position: relative;
    height: 16px;
    margin-top: 3px;
    overflow: visible;
}

.ignition-arrow {
    width: 100%;
    height: 100%;
    display: block;
}

/* The traveling ember/fire */
.ignition-ember {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #ffffff 0%, #FFD700 25%, #FF9900 45%, #ff4400 65%, transparent 80%);
    border-radius: 50%;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: drop-shadow(0 0 8px #FF9900) drop-shadow(0 0 16px #ff6600) drop-shadow(0 0 24px rgba(255, 68, 0, 0.4));
    z-index: 2;
    pointer-events: none;
}

.ignition-ember.active {
    opacity: 1;
}

/* Ignition container fade out */
.spark-ignition.fade-out {
    animation: ignition-fade-out 0.4s ease forwards;
}

@keyframes ignition-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ==========================================
   FEEDBACK SECTION (on success screen)
   ========================================== */

.feedback-section {
    margin-top: 28px;
    text-align: center;
}

.feedback-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 auto 20px;
}

.feedback-heading {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.feedback-subtext {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    margin: 0 0 14px 0;
}

.feedback-textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: "Inter", -apple-system, sans-serif;
    resize: vertical;
    min-height: 72px;
    max-height: 160px;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    line-height: 1.5;
}

.feedback-textarea:focus {
    outline: none;
    border-color: rgba(255, 153, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.feedback-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.feedback-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.feedback-char-count {
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
}

.btn-feedback-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-feedback-submit:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-feedback-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-feedback-submit.loading {
    color: transparent;
    position: relative;
    pointer-events: none;
}

.btn-feedback-submit.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.feedback-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: #4CAF50;
    font-size: 13px;
    animation: fadeIn 0.3s ease;
}

.feedback-success.hidden {
    display: none !important;
}

/* Success message - animated reveal after fireworks */
.waitlist-success.animate-in {
    animation: success-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes success-reveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile adjustments for ignition */
@media (max-width: 480px) {
    .ignition-star {
        width: 36px;
        height: 36px;
        margin-top: 4px;
    }

    .ignition-name {
        font-size: 38px;
    }

    .ignition-logo {
        gap: 8px;
    }

    .ignition-arrow-wrap {
        height: 13px;
    }

    .ignition-ember {
        width: 11px;
        height: 11px;
    }

    @keyframes star-launch {
        0% {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        100% {
            transform: translateY(-250px) scale(0.2);
            opacity: 0;
        }
    }
}
