/* Styles for signup.html */


        /* Signup-specific styles */
        .signup-section {
            min-height: 100vh;
            padding: 160px 48px 100px;
            display: block;
            background: linear-gradient(135deg, var(--navy) 0%, #1a2a3a 100%);
            position: relative;
            overflow: visible;
        }
        
        .signup-section::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
            opacity: 0.3;
        }
        
        .signup-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1.1fr;
            gap: 60px;
            align-items: start;
            position: relative;
            z-index: 1;
        }
        
        /* Wrapper to maintain grid space when content becomes fixed */
        .signup-content-wrapper {
            min-height: 400px;
        }
        
        .signup-content {
            padding-right: 20px;
            align-self: start;
            transition: transform 0.15s ease-out;
        }
        
        .signup-content.is-sticky {
            position: fixed;
            top: 120px;
            /* width and left set by JS */
        }
        
        .signup-content h1 {
            font-family: var(--font-display);
            font-size: clamp(2.2rem, 3.5vw, 3rem);
            font-weight: 400;
            color: var(--ivory);
            margin-bottom: 20px;
            line-height: 1.25;
        }
        
        .signup-content p {
            font-size: 1.05rem;
            color: rgba(255,255,255,0.8);
            line-height: 1.7;
            margin-bottom: 28px;
            max-width: 480px;
        }
        
        .signup-benefits {
            list-style: none;
        }
        
        .signup-benefits li {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 16px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }
        
        .signup-benefits li:last-child {
            border-bottom: none;
        }
        
        .signup-benefits .icon {
            font-size: 1.4rem;
            flex-shrink: 0;
        }
        
        .signup-benefits .text h4 {
            font-family: var(--font-display);
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--ivory);
            margin-bottom: 4px;
        }
        
        .signup-benefits .text p {
            font-size: 0.9rem;
            color: rgba(255,255,255,0.6);
            margin: 0;
            line-height: 1.6;
        }
        
        /* Form card */
        .signup-form-card {
            background: var(--ink);
            padding: 36px 40px;
            position: relative;
            max-height: none;
            overflow-y: visible;
        }
        
        .form-header {
            text-align: center;
            margin-bottom: 24px;
        }
        
        .form-header h2 {
            font-family: var(--font-display);
            font-size: 1.4rem;
            font-weight: 500;
            color: var(--ivory);
            margin-bottom: 6px;
        }
        
        .form-header p {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.7);
        }
        
        /* User type selection - now checkbox grid */
        .interest-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
            margin-bottom: 24px;
        }
        
        .interest-checkbox {
            display: flex;
            flex-direction: column;
            padding: 16px;
            background: rgba(255,255,255,0.05);
            border: 2px solid rgba(255,255,255,0.15);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            user-select: none;
        }
        
        .interest-checkbox * {
            pointer-events: none;
        }
        
        .interest-checkbox input[type="checkbox"] {
            pointer-events: none;
        }
        
        .interest-checkbox:hover {
            border-color: var(--gold);
            background: rgba(255,255,255,0.08);
        }
        
        .interest-checkbox.selected {
            background: rgba(201, 162, 39, 0.15);
            border-color: var(--gold);
        }
        
        .interest-checkbox input[type="checkbox"] {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 18px;
            height: 18px;
            accent-color: var(--gold);
        }
        
        .interest-checkbox .interest-icon {
            width: 32px;
            height: 32px;
            margin-bottom: 8px;
        }
        
        .interest-checkbox .interest-icon svg {
            width: 100%;
            height: 100%;
            stroke: var(--ivory);
        }
        
        .interest-checkbox.selected .interest-icon svg {
            stroke: var(--gold);
        }
        
        .interest-checkbox .interest-label {
            font-family: var(--font-ui);
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--ivory);
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }
        
        .interest-checkbox.selected .interest-label {
            color: var(--gold);
        }
        
        .interest-checkbox .interest-desc {
            font-size: 0.75rem;
            color: rgba(255,255,255,0.6);
            margin-top: 4px;
            line-height: 1.4;
        }
        
        .interest-checkbox.selected .interest-desc {
            color: rgba(255,255,255,0.8);
        }
        
        /* Legacy user type grid - keep for backwards compat */
        .user-type-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 10px;
            margin-bottom: 24px;
        }
        
        .user-type-btn {
            padding: 12px 6px;
            background: var(--cream);
            border: 2px solid transparent;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }
        
        .user-type-btn:hover {
            border-color: var(--gold);
        }
        
        .user-type-btn.selected {
            background: var(--ink);
            border-color: var(--ink);
        }
        
        .user-type-btn .icon {
            font-size: 1.5rem;
            display: block;
            margin-bottom: 8px;
        }
        
        .user-type-btn .label {
            font-family: var(--font-ui);
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--ink);
            transition: color 0.3s ease;
        }
        
        .user-type-btn.selected .label {
            color: var(--ivory);
        }
        
        /* Form fields */
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-group label {
            display: block;
            font-family: var(--font-ui);
            font-size: 0.65rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: rgba(255,255,255,0.7);
            margin-bottom: 6px;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 14px;
            font-family: var(--font-body);
            font-size: 0.9rem;
            color: var(--ivory);
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.2);
            transition: all 0.3s ease;
        }
        
        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255,255,255,0.4);
        }
        
        .form-group select option {
            background: var(--ink);
            color: var(--ivory);
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--gold);
            box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
        }
        
        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        
        /* Checkbox */
        .form-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            margin-bottom: 24px;
        }
        
        .form-checkbox input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-top: 2px;
            accent-color: var(--gold);
            flex-shrink: 0;
        }
        
        .form-checkbox label {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.8);
            line-height: 1.5;
            text-transform: none;
            letter-spacing: normal;
            margin: 0;
        }
        
        .form-checkbox label a {
            color: var(--gold);
            text-decoration: underline;
        }
        
        /* Marketing checkbox with glow */
        .marketing-checkbox {
            position: relative;
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, rgba(201, 162, 39, 0.02) 100%);
            border: 1px solid rgba(201, 162, 39, 0.2);
            border-radius: 8px;
            padding: 14px 16px;
            margin-bottom: 16px;
            animation: subtleGlow 2s ease-in-out infinite;
            overflow: visible;
        }
        
        .marketing-checkbox .hug-emoji {
            font-size: 1.3rem;
            line-height: 1;
            margin-right: 10px;
            flex-shrink: 0;
            animation: wiggle 3s ease-in-out infinite;
        }
        
        .marketing-checkbox input[type="checkbox"] {
            margin-top: 0;
            margin-right: 10px;
        }
        
        .marketing-checkbox label {
            margin: 0;
            line-height: 1.4;
        }
        
        @keyframes subtleGlow {
            0%, 100% {
                box-shadow: 0 0 8px rgba(201, 162, 39, 0.15);
                border-color: rgba(201, 162, 39, 0.2);
            }
            50% {
                box-shadow: 0 0 16px rgba(201, 162, 39, 0.3);
                border-color: rgba(201, 162, 39, 0.4);
            }
        }
        
        @keyframes wiggle {
            0%, 100% { transform: rotate(0deg); }
            25% { transform: rotate(-5deg); }
            75% { transform: rotate(5deg); }
        }
        
        /* Burst effect when checked */
        .marketing-checkbox.checked {
            animation: none;
            border-color: rgba(34, 197, 94, 0.5);
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.02) 100%);
        }
        
        .marketing-checkbox.checked .hug-emoji {
            animation: none;
        }
        
        /* Sparkle particles */
        .marketing-checkbox .sparkles {
            position: absolute;
            top: 50%;
            left: 28px;
            width: 0;
            height: 0;
            pointer-events: none;
        }
        
        .marketing-checkbox .sparkle {
            position: absolute;
            width: 6px;
            height: 6px;
            background: var(--gold);
            border-radius: 50%;
            opacity: 0;
        }
        
        .marketing-checkbox.burst .sparkle {
            animation: sparkle 0.6s ease-out forwards;
        }
        
        .marketing-checkbox.burst .sparkle:nth-child(1) { --angle: 0deg; --distance: 60px; }
        .marketing-checkbox.burst .sparkle:nth-child(2) { --angle: 45deg; --distance: 70px; animation-delay: 0.05s; }
        .marketing-checkbox.burst .sparkle:nth-child(3) { --angle: 90deg; --distance: 55px; animation-delay: 0.1s; }
        .marketing-checkbox.burst .sparkle:nth-child(4) { --angle: 135deg; --distance: 65px; animation-delay: 0.05s; }
        .marketing-checkbox.burst .sparkle:nth-child(5) { --angle: 180deg; --distance: 60px; }
        .marketing-checkbox.burst .sparkle:nth-child(6) { --angle: 225deg; --distance: 70px; animation-delay: 0.1s; }
        .marketing-checkbox.burst .sparkle:nth-child(7) { --angle: 270deg; --distance: 55px; animation-delay: 0.05s; }
        .marketing-checkbox.burst .sparkle:nth-child(8) { --angle: 315deg; --distance: 65px; }
        
        @keyframes sparkle {
            0% {
                transform: rotate(var(--angle)) translateY(0);
                opacity: 1;
            }
            100% {
                transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1));
                opacity: 0;
            }
        }
        
        /* Submit button */
        .form-submit {
            width: 100%;
            padding: 16px 32px;
            background: var(--gold);
            color: var(--ink);
            border: none;
            font-family: var(--font-ui);
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            cursor: pointer;
            transition: all 0.4s ease;
        }
        
        .form-submit:hover {
            background: var(--ivory);
        }
        
        .form-submit:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* Success state */
        .form-success {
            text-align: center;
            padding: 40px 20px;
            display: none;
        }
        
        .form-success.show {
            display: block;
        }
        
        .form-success .icon {
            font-size: 3rem;
            margin-bottom: 20px;
        }
        
        .form-success h3 {
            font-family: var(--font-display);
            font-size: 1.5rem;
            color: var(--ink);
            margin-bottom: 12px;
        }
        
        .form-success p {
            font-size: 0.95rem;
            color: var(--slate);
            margin-bottom: 24px;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 16px;
        }
        
        .social-link {
            padding: 12px 24px;
            font-family: var(--font-ui);
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            text-decoration: none;
            border: 1px solid rgba(0,0,0,0.15);
            color: var(--ink);
            transition: all 0.3s ease;
        }
        
        .social-link:hover {
            background: var(--ink);
            border-color: var(--ink);
            color: var(--ivory);
        }
        
        @media (max-width: 1100px) {
            .signup-container {
                grid-template-columns: 1fr;
                gap: 40px;
                max-width: 640px;
            }
            
            .signup-content {
                position: static;
                text-align: center;
                padding-right: 0;
            }
            
            .signup-content p {
                max-width: 100%;
            }
            
            .signup-benefits li {
                justify-content: center;
                text-align: left;
            }
            
            .signup-form-card {
                max-height: none;
                overflow-y: visible;
            }
            
            .user-type-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        @media (max-width: 600px) {
            .signup-section {
                padding: 120px 24px 60px;
            }
            
            .signup-form-card {
                padding: 32px 24px;
            }
            
            .user-type-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .user-type-btn {
                padding: 12px 8px;
            }
            
            .user-type-btn .label {
                font-size: 0.6rem;
            }
            
            .form-row {
                grid-template-columns: 1fr;
            }
        }
        
        /* Two-step form flow */
        .form-step {
            display: none;
            animation: fadeIn 0.3s ease-out;
        }
        
        .form-step.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        /* Step 1 success state */
        .step-success-content {
            text-align: center;
            padding: 40px 20px;
        }
        
        .step-success-content h3 {
            font-family: var(--font-display);
            font-size: 1.8rem;
            color: var(--ivory);
            margin: 16px 0 12px;
        }
        
        .step-success-content p {
            color: rgba(255,255,255,0.7);
            margin-bottom: 24px;
            line-height: 1.6;
        }
        
        .step-success-content .form-submit {
            margin-top: 8px;
        }
        
        .skip-text {
            margin-top: 16px;
            font-size: 0.85rem;
            color: rgba(255,255,255,0.5);
        }
        
        .skip-text a {
            color: var(--gold);
            text-decoration: underline;
        }
        
        /* Success banner (shown at top of step 2) */
        .step-success-banner {
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
            border: 1px solid rgba(34, 197, 94, 0.3);
            border-left: 3px solid #22c55e;
            padding: 16px 20px;
            margin-bottom: 24px;
            border-radius: 6px;
        }
        
        .step-success-banner .icon {
            color: #22c55e;
            flex-shrink: 0;
        }
        
        .step-success-banner .banner-text {
            color: rgba(255,255,255,0.9);
            font-size: 0.95rem;
        }
        
        .step-success-banner .banner-text strong {
            color: #22c55e;
        }
        
        /* Step indicator */
        .step-indicator {
            font-family: var(--font-ui);
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--gold);
            margin-bottom: 8px;
        }
        
        /* Conditional fields - hidden by default, shown when active */
        .conditional-fields {
            display: none;
            animation: slideDown 0.3s ease-out;
        }
        
        .conditional-fields.active {
            display: block;
        }
        
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Conditional fields section - distinct visual block per category */
        .conditional-fields {
            display: none;
            animation: slideDown 0.3s ease-out;
            border: none;
            border-radius: 8px;
            padding: 24px;
            margin: 16px 0;
        }
        
        .conditional-fields.active {
            display: block;
        }
        
        /* Category-specific backgrounds - subtle differentiation like table rows */
        .conditional-fields[data-show-for="issuer"] { 
            background: rgba(74, 222, 128, 0.08);
            border-top: 3px solid #4ade80;
        }
        .conditional-fields[data-show-for="investor"] { 
            background: rgba(201, 162, 39, 0.08);
            border-top: 3px solid var(--gold);
        }
        .conditional-fields[data-show-for="broker"] { 
            background: rgba(96, 165, 250, 0.08);
            border-top: 3px solid #60a5fa;
        }
        .conditional-fields[data-show-for="institution"] { 
            background: rgba(192, 132, 252, 0.08);
            border-top: 3px solid #c084fc;
        }
        .conditional-fields[data-show-for="introducer"] { 
            background: rgba(244, 114, 182, 0.08);
            border-top: 3px solid #f472b6;
        }
        
        /* Section header styles for each category */
        .section-header-issuer { 
            color: #4ade80; 
            border-bottom-color: rgba(74, 222, 128, 0.3); 
        }
        .section-header-investor { 
            color: var(--gold); 
            border-bottom-color: rgba(201, 162, 39, 0.3); 
        }
        .section-header-broker { 
            color: #60a5fa; 
            border-bottom-color: rgba(96, 165, 250, 0.3); 
        }
        .section-header-institution { 
            color: #c084fc; 
            border-bottom-color: rgba(192, 132, 252, 0.3); 
        }
        .section-header-introducer { 
            color: #f472b6; 
            border-bottom-color: rgba(244, 114, 182, 0.3); 
        }
        
        /* Form section labels */
        .form-section-label {
            font-family: var(--font-ui);
            font-size: 0.85rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--gold);
            margin: 0 0 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(201, 162, 39, 0.2);
        }
        
        /* Field helper text */
        .field-helper {
            display: block;
            font-size: 0.75rem;
            color: rgba(255,255,255,0.5);
            margin-top: 6px;
            line-height: 1.4;
            font-style: italic;
        }
        
        /* Required asterisk */
        .required {
            color: var(--crimson);
            font-weight: 600;
        }
        
        /* Info boxes */
        .form-info-box {
            background: linear-gradient(135deg, rgba(201, 162, 39, 0.12) 0%, rgba(201, 162, 39, 0.05) 100%);
            border: 1px solid rgba(201, 162, 39, 0.25);
            border-left: 3px solid var(--gold);
            padding: 16px 20px;
            margin: 24px 0 16px;
            font-size: 0.85rem;
        }
        
        .form-info-box strong {
            display: block;
            font-family: var(--font-ui);
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: var(--gold);
            margin-bottom: 10px;
        }
        
        .form-info-box ul {
            margin: 0;
            padding-left: 20px;
        }
        
        .form-info-box li {
            color: rgba(255,255,255,0.8);
            margin-bottom: 4px;
            line-height: 1.5;
        }
        
        .form-info-box li:last-child {
            margin-bottom: 0;
        }
        
        /* Checkbox grid for multi-select */
        .checkbox-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 8px 16px;
            margin-top: 8px;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: rgba(255,255,255,0.8);
            cursor: pointer;
            padding: 6px 0;
        }
        
        .checkbox-item input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--gold);
            flex-shrink: 0;
        }
        
        .checkbox-item:hover {
            color: var(--ivory);
        }
        
        /* Optgroup styling */
        optgroup {
            font-weight: 600;
            color: var(--ivory);
        }
        
        optgroup option {
            font-weight: 400;
            padding-left: 8px;
        }
        
        /* Responsive checkbox grid */
        @media (max-width: 600px) {
            .checkbox-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* ========================================
           SLIDESHOW STYLES
           ======================================== */
        
        .signup-slideshow {
            position: relative;
            min-height: 320px;
        }
        
        .signup-slide {
            opacity: 0;
            visibility: hidden;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            transition: opacity 0.6s ease, visibility 0.6s ease;
        }
        
        .signup-slide.active {
            opacity: 1;
            visibility: visible;
            position: relative;
        }
        
        /* Slideshow dots navigation */
        .slideshow-dots {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            padding: 8px 0;
        }
        
        .slideshow-dots .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.25);
            border: none;
            padding: 0;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .slideshow-dots .dot:hover {
            background: rgba(255,255,255,0.5);
            transform: scale(1.2);
        }
        
        .slideshow-dots .dot.active {
            background: var(--gold);
            transform: scale(1.1);
        }
        
        /* Slide content fade-in animation */
        .signup-slide.active h1 {
            animation: slideIn 0.5s ease forwards;
        }
        
        .signup-slide.active p {
            animation: slideIn 0.5s ease 0.1s forwards;
        }
        
        .signup-slide.active .signup-benefits li {
            animation: slideIn 0.4s ease forwards;
        }
        
        .signup-slide.active .signup-benefits li:nth-child(1) { animation-delay: 0.15s; }
        .signup-slide.active .signup-benefits li:nth-child(2) { animation-delay: 0.25s; }
        .signup-slide.active .signup-benefits li:nth-child(3) { animation-delay: 0.35s; }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* Responsive: Stack layout on mobile */
        @media (max-width: 900px) {
            .signup-slideshow {
                min-height: auto;
            }
            
            .signup-slide {
                position: relative;
                display: none;
            }
            
            .signup-slide.active {
                display: block;
            }
            
            .slideshow-dots {
                justify-content: center;
            }
        }
    