:root {
            --primary: #dc3545;
            --primary-dark: #c82333;
            --success: #28a745;
            --warning: #ffc107;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
            font-family: 'Roboto Condensed', sans-serif;
            min-height: 100vh;
            color: #fff;
        }
        
        .signup-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 20px;
        }
        
        .signup-box {
            background: rgba(20, 20, 20, 0.95);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            width: 100%;
            max-width: 650px;
            padding: 40px;
            position: relative;
        }
        
        .back-link {
            position: absolute;
            top: 20px;
            left: 20px;
            color: rgba(255,255,255,0.6);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }
        
        .back-link:hover { color: var(--primary); }
        
        .logo-section {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .logo-section img {
            width: 80px;
            height: 80px;
            margin-bottom: 15px;
        }
        
        .logo-section h1 {
            font-size: 1.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .logo-section p {
            color: rgba(255,255,255,0.6);
            margin-top: 5px;
        }
        
        /* Role Selection */
        .role-selection {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .role-card {
            flex: 1;
            background: rgba(255,255,255,0.03);
            border: 2px solid rgba(255,255,255,0.1);
            border-radius: 12px;
            padding: 25px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .role-card:hover {
            border-color: rgba(220, 53, 69, 0.5);
            background: rgba(220, 53, 69, 0.05);
        }
        
        .role-card.active {
            border-color: var(--primary);
            background: rgba(220, 53, 69, 0.1);
        }
        
        .role-card i {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 15px;
        }
        
        .role-card h3 {
            font-size: 1.2rem;
            margin-bottom: 8px;
        }
        
        .role-card p {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.5);
        }
        
        /* Form Styles */
        .form-section { display: none; }
        .form-section.active { display: block; }
        
        .section-title {
            font-size: 0.85rem;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin: 25px 0 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(220,53,69,0.3);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .form-row {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .form-group {
            flex: 1;
            margin-bottom: 15px;
        }
        
        .form-label {
            display: block;
            color: rgba(255,255,255,0.8);
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 6px;
        }
        
        .form-control, .form-select {
            width: 100%;
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            color: #fff;
            padding: 12px 15px;
            font-size: 0.95rem;
            transition: all 0.3s;
        }
        
        .form-control:focus, .form-select:focus {
            background: rgba(255,255,255,0.08);
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
        }
        
        .form-control::placeholder { color: rgba(255,255,255,0.3); }
        
        .form-select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center;
        }
        
        .form-select option { background: #1a1a1a; color: #fff; }
        
        .form-select:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* File Upload */
        .file-upload {
            border: 2px dashed rgba(255,255,255,0.2);
            border-radius: 8px;
            padding: 30px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .file-upload:hover {
            border-color: var(--primary);
            background: rgba(220, 53, 69, 0.05);
        }
        
        .file-upload.has-file {
            border-color: var(--success);
            background: rgba(40, 167, 69, 0.1);
        }
        
        .file-upload i {
            font-size: 2rem;
            color: rgba(255,255,255,0.4);
            margin-bottom: 10px;
        }
        
        .file-upload p {
            color: rgba(255,255,255,0.6);
            font-size: 0.9rem;
        }
        
        .file-upload input { display: none; }
        
        .file-preview {
            max-width: 150px;
            max-height: 150px;
            margin: 10px auto;
            border-radius: 8px;
        }
        
        /* Buttons */
        .btn {
            display: block;
            width: 100%;
            padding: 14px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: #fff;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
        }
        
        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        
        /* Alert */
        .alert {
            padding: 12px 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            font-size: 0.9rem;
        }
        
        .alert i { margin-right: 10px; }
        
        .alert-danger {
            background: rgba(220, 53, 69, 0.1);
            border: 1px solid rgba(220, 53, 69, 0.3);
            color: #ff6b7a;
        }
        
        .alert-success {
            background: rgba(40, 167, 69, 0.1);
            border: 1px solid rgba(40, 167, 69, 0.3);
            color: #5dd879;
        }
        
        .alert-warning {
            background: rgba(255, 193, 7, 0.1);
            border: 1px solid rgba(255, 193, 7, 0.3);
            color: #ffda6a;
        }
        
        /* Login Link */
        .login-link {
            text-align: center;
            margin-top: 25px;
            padding-top: 25px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        .login-link a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 700;
        }
        
        /* Modal */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.85);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .modal-overlay.show { display: flex; }
        
        .modal-box {
            background: #1a1a1a;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            width: 100%;
            max-width: 600px;
            max-height: 90vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        
        .modal-header {
            padding: 20px 25px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(220, 53, 69, 0.1);
        }
        
        .modal-header h2 {
            font-size: 1.3rem;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .modal-header h2 i { color: var(--primary); }
        
        .modal-close {
            background: none;
            border: none;
            color: rgba(255,255,255,0.5);
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s;
        }
        
        .modal-close:hover { color: #fff; }
        
        .modal-body {
            padding: 25px;
            overflow-y: auto;
            flex: 1;
        }
        
        .terms-intro {
            color: rgba(255,255,255,0.6);
            margin-bottom: 25px;
            font-size: 0.95rem;
            line-height: 1.6;
        }
        
        .terms-section {
            margin-bottom: 25px;
        }
        
        .terms-section h3 {
            font-size: 1rem;
            margin-bottom: 15px;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .term-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 12px;
            padding: 15px;
            background: rgba(255,255,255,0.03);
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.05);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .term-item:hover {
            background: rgba(255,255,255,0.05);
            border-color: rgba(255,255,255,0.1);
        }
        
        .term-item.checked {
            background: rgba(40, 167, 69, 0.1);
            border-color: rgba(40, 167, 69, 0.3);
        }
        
        .term-checkbox {
            width: 24px;
            height: 24px;
            min-width: 24px;
            background: rgba(255,255,255,0.1);
            border: 2px solid rgba(255,255,255,0.2);
            border-radius: 4px;
            margin-right: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .term-item.checked .term-checkbox {
            background: var(--success);
            border-color: var(--success);
        }
        
        .term-checkbox i {
            color: #fff;
            font-size: 12px;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        .term-item.checked .term-checkbox i { opacity: 1; }
        
        .term-text {
            color: rgba(255,255,255,0.8);
            font-size: 0.9rem;
            line-height: 1.5;
        }
        
        .modal-footer {
            padding: 20px 25px;
            border-top: 1px solid rgba(255,255,255,0.1);
            display: flex;
            gap: 15px;
        }
        
        .modal-footer .btn { flex: 1; }
        
        .btn-secondary {
            background: rgba(255,255,255,0.1);
            color: #fff;
        }
        
        .btn-secondary:hover { background: rgba(255,255,255,0.2); }
        
        /* Status messages */
        .status-msg {
            font-size: 0.75rem;
            margin-top: 5px;
        }
        
        .status-msg.available { color: var(--success); }
        .status-msg.taken { color: var(--primary); }
        .status-msg.checking { color: rgba(255,255,255,0.5); }
        
        /* Responsive */
        @media (max-width: 600px) {
            .role-selection { flex-direction: column; }
            .form-row { flex-direction: column; gap: 0; }
            .signup-box { padding: 25px 20px; }
            .modal-footer { flex-direction: column; }
        }
        
        .spinner-border {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            border: 2px solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: spinner 0.75s linear infinite;
        }
        
        @keyframes spinner {
            to { transform: rotate(360deg); }
        }

/* ============================================ */
/* DISTRIBUTOR APPLICATION FORM STYLES */
/* ============================================ */

/* Radio Group Styles */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-option .radio-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.radio-option .radio-label i {
    font-size: 1.8rem;
    color: #dc3545;
    min-width: 35px;
}

.radio-option .radio-label strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 3px;
}

.radio-option .radio-label small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.radio-option input[type="radio"]:checked + .radio-label {
    background: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
}

.radio-option:hover .radio-label {
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-option .checkbox-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-option .checkbox-label::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-label::before {
    background: #dc3545;
    border-color: #dc3545;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 0.9rem;
}

.checkbox-option .checkbox-label i {
    font-size: 1.8rem;
    color: #dc3545;
    min-width: 35px;
    margin-left: 35px;
}

.checkbox-option .checkbox-label strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 3px;
}

.checkbox-option .checkbox-label small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-label {
    background: rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
}

.checkbox-option:hover .checkbox-label {
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Terms Box Styles */
.terms-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.terms-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: rgba(220, 53, 69, 0.5);
    border-radius: 4px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 53, 69, 0.7);
}

.terms-content h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.terms-content ol {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    padding-left: 25px;
}

.terms-content ol li {
    margin-bottom: 12px;
}

.terms-note {
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    padding: 12px 15px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.terms-note i {
    color: #dc3545;
    margin-right: 8px;
}

/* Checkbox Agreement Styles */
.checkbox-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-agreement input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-agreement span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-agreement:hover {
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-agreement input[type="checkbox"]:checked + span {
    color: #fff;
}

/* Alert Info */
.alert-info {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid rgba(33, 150, 243, 0.3);
    color: #2196f3;
}

/* Distributor Terms List with Individual Checkboxes */
.distributor-terms-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.term-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.term-checkbox-item:hover {
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.term-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: #dc3545;
}

.term-checkbox-item .term-number {
    color: #dc3545;
    font-weight: 700;
    font-size: 1rem;
    min-width: 25px;
    flex-shrink: 0;
}

.term-checkbox-item .term-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.term-checkbox-item input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.term-checkbox-item:has(input[type="checkbox"]:checked) {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.4);
}

.term-checkbox-item:has(input[type="checkbox"]:checked) .term-text {
    color: rgba(255, 255, 255, 0.95);
}

.terms-intro {
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .radio-option .radio-label,
    .checkbox-option .checkbox-label {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .checkbox-option .checkbox-label i {
        margin-left: 0;
    }
    
    .terms-content {
        max-height: 300px;
    }
}