﻿/* ========== REGISTRATION MODAL - FULL SCREEN ========== */
.register-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.register-modal-fullscreen {
    width: 95%;
    height: 95vh;
    max-width: 1200px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Improved Header */
.register-modal-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

    .register-modal-header .header-left,
    .register-modal-header .header-center,
    .register-modal-header .header-right {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .register-modal-header .header-left {
        justify-content: flex-start;
    }

    .register-modal-header .header-center {
        justify-content: center;
        min-width: 400px;
        max-width: 600px;
    }

    .register-modal-header .header-right {
        justify-content: flex-end;
    }

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.title-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.modal-title-text h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.modal-title-text .subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* Improved Step Progress Design */
.step-progress-container-improved {
    width: 100%;
    position: relative;
    /*padding: 0 40px;*/
}

.step-indicators-improved {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-item-improved {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    min-width: 100px;
}

.step-circle-improved {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid transparent;
    position: relative;
    transition: all 0.4s ease;
}

.step-item-improved.active .step-circle-improved {
    background: #60a5fa;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.3);
    transform: scale(1.1);
}

.step-item-improved.completed .step-circle-improved {
    background: #10b981;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.step-check {
    display: none;
    position: absolute;
    font-size: 14px;
}

.step-item-improved.completed .step-number {
    display: none;
}

.step-item-improved.completed .step-check {
    display: block;
}

.step-label-improved {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.step-item-improved.active .step-label-improved {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.step-connector {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 100px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step-progress-track {
    position: absolute;
    top: 18px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    border-radius: 1px;
    overflow: hidden;
}

.step-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
    border-radius: 1px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg);
    }

/* Full Screen Content */
.register-modal-content-full {
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
    padding: 30px;
}

.step-content {
    min-height: 100%;
}

.step-container {
    height: 100%;
}

/* Step 1: Company Details */
.company-details-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    height: 100%;
}

.details-column,
.preview-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-section-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-header-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.section-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.section-header-compact h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.form-fields-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-compact {
    margin-bottom: 0;
}

.form-label-small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.field-hint {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.3;
}

.required {
    color: #ef4444;
}

.form-input-small {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    color: #1f2937;
    transition: all 0.2s ease;
}

    .form-input-small:focus {
        outline: none;
        border-color: #3b82f6;
        background: white;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.form-row-compact {
    display: flex;
    gap: 20px;
}

    .form-row-compact.triple {
        gap: 15px;
    }

        .form-row-compact.triple .form-group-compact {
            flex: 1;
        }

.address-textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.4;
    font-size: 13px;
}

/* Logo Section */
.logo-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-preview-container {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo-image-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: white;
    padding: 12px;
}

    .logo-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.logo-actions {
    display: flex;
    gap: 10px;
}

.logo-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

    .logo-action-btn.view {
        background: #3b82f6;
        color: white;
    }

    .logo-action-btn.remove {
        background: #ef4444;
        color: white;
    }

.logo-upload-placeholder {
    text-align: center;
    padding: 40px;
}

.upload-icon {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.upload-text {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.upload-info {
    font-size: 11px;
    color: #6b7280;
}

.logo-tips {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .logo-tips i {
        color: #f59e0b;
    }

/* Tips Section */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.tip-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-title {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
}

.tip-desc {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

/* Step 2: Module Selection */
.module-selection-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selection-info h2 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .selection-info h2 i {
        color: #3b82f6;
    }

.selection-desc {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.selection-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.select-all {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .select-all input[type="checkbox"] {
        display: none;
    }

    .select-all label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        user-select: none;
    }

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .checkmark::after {
        content: '✓';
        color: white;
        font-size: 10px;
        font-weight: bold;
        opacity: 0;
    }

.select-all input[type="checkbox"]:checked + label .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

    .select-all input[type="checkbox"]:checked + label .checkmark::after {
        opacity: 1;
    }

.label-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.selection-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
}

.selected-count {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
}

.selected-text {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Module Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 5px;
}

.module-section-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.module-section-header {
    padding: 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.module-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.module-meta {
    margin-top: 3px;
}

.module-count {
    font-size: 10px;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 10px;
}

.module-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .module-toggle input[type="checkbox"] {
        width: 14px;
        height: 14px;
        accent-color: #10b981;
    }

    .module-toggle label {
        font-size: 11px;
        color: #6b7280;
        cursor: pointer;
    }

.module-forms-container {
    max-height: 180px;
    overflow-y: auto;
    padding: 15px;
}

.forms-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

    .form-item input[type="checkbox"] {
        width: 14px;
        height: 14px;
        accent-color: #3b82f6;
    }

    .form-item label {
        flex: 1;
        cursor: pointer;
        margin: 0;
    }

.form-name {
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.3;
}

/* Step 3: Complete - Row Layout */
.completion-content {
    padding: 40px 20px;
    text-align: center;
}

.completion-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 36px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.completion-details {
    max-width: 800px;
    margin: 0 auto;
}

.completion-title {
    margin: 0 0 15px;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.completion-message {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.completion-summary-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.summary-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 220px;
    flex: 1;
    max-width: 250px;
}

.summary-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.summary-content h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.summary-content p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.completion-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.note-icon {
    color: #d97706;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.note-text p {
    margin: 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
    text-align: left;
}

/* Full Screen Footer */
.register-modal-footer-full {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.footer-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    transition: all 0.3s ease;
}

    .nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none !important;
    }

.prev-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

    .prev-btn:hover:not(:disabled) {
        background: #e2e8f0;
        transform: translateY(-1px);
    }

.next-btn {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
}

    .next-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #2563eb, #1e3a8a);
        transform: translateY(-1px);
    }

.complete-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

    .complete-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-1px);
    }

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-dots {
    display: flex;
    gap: 6px;
}

    .step-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #cbd5e1;
        transition: all 0.3s ease;
    }

        .step-dots .dot.active {
            background: #3b82f6;
            transform: scale(1.2);
        }

.step-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    width: max-content;
}

/* Scrollbar */
.modules-grid::-webkit-scrollbar,
.module-forms-container::-webkit-scrollbar,
.register-modal-content-full::-webkit-scrollbar {
    width: 6px;
}

.modules-grid::-webkit-scrollbar-track,
.module-forms-container::-webkit-scrollbar-track,
.register-modal-content-full::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.modules-grid::-webkit-scrollbar-thumb,
.module-forms-container::-webkit-scrollbar-thumb,
.register-modal-content-full::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .modules-grid::-webkit-scrollbar-thumb:hover,
    .module-forms-container::-webkit-scrollbar-thumb:hover,
    .register-modal-content-full::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Responsive */
@media (max-width: 1024px) {
    .register-modal-fullscreen {
        width: 98%;
        height: 98vh;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-details-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step-progress-container-improved {
        padding: 0 20px;
    }

    .step-item-improved {
        min-width: 80px;
    }

    .step-connector {
        width: 80px;
    }

    .step-progress-track {
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    .register-modal-fullscreen {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .register-modal-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

        .register-modal-header .header-left,
        .register-modal-header .header-center,
        .register-modal-header .header-right {
            width: 100%;
            justify-content: center;
        }

        .register-modal-header .header-center {
            min-width: unset;
        }

    .modules-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }

    .module-selection-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .completion-summary-row {
        flex-direction: column;
        align-items: center;
    }

    .summary-card {
        max-width: 100%;
        width: 100%;
    }

    .footer-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .step-indicators-improved {
        gap: 10px;
    }

    .step-item-improved {
        min-width: 60px;
    }

    .step-connector {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .register-modal-content-full {
        padding: 15px;
    }

    .form-section-card {
        padding: 15px;
    }

    .form-row-compact {
        flex-direction: column;
        gap: 15px;
    }

        .form-row-compact.triple {
            flex-direction: column;
        }

    .step-progress-container-improved {
        padding: 0 10px;
    }

    .step-item-improved {
        min-width: 50px;
    }

    .step-circle-improved {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .step-connector {
        width: 50px;
    }

    .step-label-improved {
        font-size: 10px;
    }
}

/* ========== EMAIL VERIFICATION MODAL ========== */
.email-verification-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

.email-verification-modal {
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.verification-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.header-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.close-verification-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .close-verification-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .close-verification-btn:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.25);
    }

.email-modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
}

/* Email Sending Loader */
.email-sending-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.loader-content {
    text-align: center;
    padding: 30px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-content h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #4f46e5;
}

.loader-content p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Verification Content */
.status-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

    .status-icon.pending {
        background: #fef3c7;
        color: #f59e0b;
        animation: pulse 2s infinite;
    }

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.status-icon.verified {
    background: #d1fae5;
    color: #10b981;
}

.status-details h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.email-display {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #4b5563;
}

    .email-display i {
        color: #4f46e5;
        margin-right: 8px;
    }

/* Timer */
.timer-section {
    background: #1e293b;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    color: white;
    animation: slideIn 0.5s ease;
}

.timer-label {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #cbd5e1;
}

    .timer-label i {
        color: #60a5fa;
        margin-right: 8px;
    }

.timer-display {
    display: flex;
    align-items: center;
    gap: 15px;
}

.linear-timer {
    flex: 1;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 3px;
    transition: width 1s linear;
}

.timer-text {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #fbbf24;
    min-width: 60px;
}

.timer-note {
    font-size: 12px;
    color: #94a3b8;
    margin: 8px 0 0;
    text-align: center;
}

/* Status Message */
.status-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    animation: fadeIn 0.6s ease;
}

    .status-message.pending {
        background: #fef3c7;
        border: 1px solid #fde68a;
    }

    .status-message.verified {
        background: #d1fae5;
        border: 1px solid #a7f3d0;
    }

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .message-content i {
        font-size: 16px;
        flex-shrink: 0;
        margin-top: 2px;
    }

.status-message.pending .message-content i {
    color: #f59e0b;
}

.status-message.verified .message-content i {
    color: #10b981;
}

.message-content p {
    margin: 0;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.5;
}

/* Instructions */
.instructions-section {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    animation: slideIn 0.6s ease;
}

    .instructions-section h4 {
        margin: 0 0 15px;
        font-size: 14px;
        font-weight: 600;
        color: #0369a1;
        display: flex;
        align-items: center;
    }

        .instructions-section h4 i {
            margin-right: 8px;
        }

.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: #4f46e5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h5 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.step-content p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* Processing Loader */
.processing-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .process-step.active {
        background: #f0f9ff;
        border-color: #4f46e5;
        transform: translateX(5px);
    }

    .process-step.completed {
        background: #ecfdf5;
        border-color: #10b981;
    }

.step-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
}

.process-step.active .step-indicator {
    background: #4f46e5;
    animation: pulse 1.5s infinite;
}

.process-step.completed .step-indicator {
    background: #10b981;
}

.step-text {
    font-size: 12px;
    color: #6b7280;
    width: max-content;
}

.process-step.active .step-text {
    color: #4f46e5;
    font-weight: 600;
}

.process-step.completed .step-text {
    color: #10b981;
}

/* Email Modal Footer */
.email-modal-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-action {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 140px;
    transition: all 0.3s ease;
}

    .btn-action:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.btn-resend {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

    .btn-resend:hover:not(:disabled) {
        background: #e5e7eb;
        transform: translateY(-1px);
    }

.btn-check-status {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

    .btn-check-status:hover:not(:disabled) {
        background: linear-gradient(135deg, #4338ca, #6d28d9);
        transform: translateY(-1px);
    }

.btn-cancel {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

    .btn-cancel:hover:not(:disabled) {
        background: #f3f4f6;
        transform: translateY(-1px);
    }

/* ========== ALTERNATE MOBILE MODAL ========== */
.alternate-mobile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease;
}

.alternate-mobile-modal {
    width: 95%;
    max-width: 450px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.alternate-modal-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alternate-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alternate-title-icon {
    font-size: 24px;
    opacity: 0.9;
}

.alternate-title-text h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.alternate-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.alternate-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .alternate-close-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .alternate-close-btn:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Content */
.alternate-modal-content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: #f8fafc;
}

.alternate-alert-section {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    animation: slideIn 0.4s ease;
}

.alternate-alert-icon {
    color: #d97706;
    font-size: 20px;
    flex-shrink: 0;
}

.alternate-alert-content h4 {
    margin: 0 0 8px;
    color: #92400e;
    font-size: 15px;
}

.alternate-alert-content p {
    margin: 0 0 8px;
    color: #92400e;
    font-size: 13px;
    line-height: 1.4;
}

    .alternate-alert-content p:last-child {
        margin-bottom: 0;
    }

/* Input Section */
.alternate-input-section {
    margin-bottom: 20px;
    animation: slideIn 0.5s ease;
}

.alternate-form-group {
    margin-bottom: 15px;
}

.alternate-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    display: flex;
    align-items: center;
}

    .alternate-form-label i {
        margin-right: 8px;
    }

.alternate-mobile-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

    .alternate-mobile-input:focus {
        outline: none;
        border-color: #f59e0b;
        box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
        transform: translateY(-1px);
    }

    .alternate-mobile-input.input-error {
        border-color: #ef4444;
    }

    .alternate-mobile-input:disabled {
        background-color: #f9fafb;
        cursor: not-allowed;
    }

.alternate-input-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .alternate-input-hint i {
        color: #9ca3af;
    }

.alternate-error-message {
    margin-top: 10px;
    color: #ef4444;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Info Box */
.alternate-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    animation: slideIn 0.6s ease;
}

.alternate-info-icon {
    color: #0284c7;
    font-size: 18px;
    margin-bottom: 8px;
}

.alternate-info-content p {
    margin: 0 0 8px;
    color: #0369a1;
    font-size: 13px;
    line-height: 1.4;
}

.alternate-info-content ul {
    margin: 8px 0 0;
    padding-left: 20px;
    color: #0369a1;
    font-size: 12px;
}

.alternate-info-content li {
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Footer */
.alternate-modal-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.alternate-btn-cancel {
    padding: 10px 20px;
    background: #9ca3af;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

    .alternate-btn-cancel:hover:not(:disabled) {
        background: #6b7280;
        transform: translateY(-1px);
    }

    .alternate-btn-cancel:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.alternate-btn-submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .alternate-btn-submit:hover:not(:disabled) {
        background: linear-gradient(135deg, #d97706, #b45309);
        transform: translateY(-1px);
    }

    .alternate-btn-submit:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.alternate-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Scrollbar for alternate modal */
.alternate-modal-content::-webkit-scrollbar {
    width: 6px;
}

.alternate-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.alternate-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .alternate-modal-content::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Responsive for alternate modal */
@media (max-width: 576px) {
    .alternate-mobile-modal {
        width: 95%;
        max-height: 85vh;
    }

    .alternate-modal-header {
        padding: 15px;
    }

    .alternate-modal-content {
        padding: 15px;
    }

    .alternate-modal-footer {
        padding: 15px;
        flex-direction: column;
    }

    .alternate-btn-cancel,
    .alternate-btn-submit {
        width: 100%;
        justify-content: center;
    }
}


/* Registration Processing Loader */
.registration-processing-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    border-radius: 12px;
}

.registration-loader-content {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 400px;
    max-width: 500px;
}

.registration-loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.registration-loader-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.registration-loader-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.registration-process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    position: relative;
}

    .registration-process-steps::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: #e5e7eb;
        z-index: 1;
    }

.registration-process-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.registration-step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.registration-process-step.active .registration-step-indicator {
    border-color: #4f46e5;
    background: #4f46e5;
    color: white;
}

.registration-process-step.completed .registration-step-indicator {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

    .registration-process-step.completed .registration-step-indicator::after {
        content: '✓';
        font-size: 14px;
        font-weight: bold;
    }

.registration-step-text {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
    max-width: 80px;
    line-height: 1.3;
}

.registration-process-step.active .registration-step-text {
    color: #4f46e5;
    font-weight: 600;
}

.registration-process-step.completed .registration-step-text {
    color: #10b981;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}