/**
 * Onboarding Wizard Styles
 * Gamified onboarding experience for new users
 */

/* ========================================
   WIZARD MODAL
   ======================================== */

.paystack-wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
}

.paystack-wizard-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.95), rgba(0, 81, 119, 0.95));
}

.paystack-wizard-modal-content {
    position: relative;
    max-width: 650px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: wizardSlideIn 0.5s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

/* ========================================
   PROGRESS BAR
   ======================================== */

.paystack-wizard-progress {
    background: linear-gradient(135deg, #0073aa, #005177);
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    color: white;
}

.paystack-wizard-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.paystack-wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.paystack-wizard-progress-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
}

/* ========================================
   WIZARD HEADER
   ======================================== */

.paystack-wizard-header {
    text-align: center;
    padding: 40px 30px 20px;
}

.paystack-wizard-icon {
    font-size: 64px;
    margin-bottom: 15px;
    animation: iconBounce 2s ease infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.paystack-wizard-header h2 {
    font-size: 28px;
    color: #333;
    margin: 0 0 10px;
    font-weight: 700;
}

.paystack-wizard-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ========================================
   WIZARD BODY
   ======================================== */

.paystack-wizard-body {
    padding: 20px 30px 30px;
}

/* Ensure steps are hidden by default */
.paystack-wizard-step {
    display: none;
}

.wizard-verification-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wizard-verification-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.wizard-verification-item:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.1);
}

.wizard-verification-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.wizard-verification-icon {
    font-size: 32px;
}

.wizard-verification-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.wizard-email-status,
.wizard-whatsapp-status {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: white;
}

.wizard-verification-item p {
    margin: 0 0 10px 44px;
    color: #666;
    font-size: 14px;
}

.wizard-verification-item button {
    margin-left: 44px;
    transition: all 0.3s ease;
}

.wizard-verification-item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   ENCOURAGEMENT BOX
   ======================================== */

.paystack-wizard-encouragement {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 15px 20px;
    margin-top: 20px;
    text-align: center;
}

.paystack-wizard-encouragement p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #856404;
}

/* ========================================
   WIZARD FOOTER
   ======================================== */

.paystack-wizard-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.paystack-wizard-complete-btn {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.paystack-wizard-complete-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.paystack-wizard-complete-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.wizard-footer-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #999;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .paystack-wizard-modal-content {
        margin: 20px;
        max-width: none;
    }
    
    .paystack-wizard-header {
        padding: 30px 20px 15px;
    }
    
    .paystack-wizard-icon {
        font-size: 48px;
    }
    
    .paystack-wizard-header h2 {
        font-size: 24px;
    }
    
    .paystack-wizard-body {
        padding: 15px 20px 20px;
    }
    
    .wizard-verification-item {
        padding: 15px;
    }
    
    .wizard-verification-item p,
    .wizard-verification-item button {
        margin-left: 0;
    }
}
/* ========================================
   COMPANY RESEARCH STEP
   ======================================== */

.company-research-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.research-start-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.research-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.3);
}

/* ========================================
   RESEARCH ANIMATION
   ======================================== */

.research-animation {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin: 20px 0;
}

.research-animation-content h3 {
    margin: 20px 0 10px;
    color: #333;
    font-size: 24px;
}

.research-status {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.research-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.research-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
    margin: 0 auto;
}

.research-step {
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    transition: all 0.3s ease;
}

.research-step.active {
    background: #0073aa;
    color: white;
    transform: scale(1.05);
}

/* ========================================
   RESEARCH RESULTS
   ======================================== */

.research-results {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
}

.research-results h3 {
    margin: 0 0 25px;
    color: #333;
    font-size: 20px;
    text-align: center;
}

/* ========================================
   REVIEW STEP
   ======================================== */

.review-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-section h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 18px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.review-item {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item strong {
    display: inline-block;
    width: 140px;
    color: #333;
}

/* ========================================
   WIZARD FOOTER BUTTONS
   ======================================== */

.paystack-wizard-next-btn,
.company-research-next-btn {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    margin-bottom: 10px;
}

.paystack-wizard-next-btn:hover:not(:disabled),
.company-research-next-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.paystack-wizard-next-btn:disabled,
.company-research-next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.paystack-wizard-back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.paystack-wizard-back-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* ========================================
   RESPONSIVE UPDATES
   ======================================== */

@media (max-width: 768px) {
    .research-steps {
        max-width: 100%;
    }
    
    .review-item strong {
        display: block;
        width: auto;
        margin-bottom: 4px;
    }
    
    .paystack-wizard-footer {
        padding: 15px 20px 20px;
    }
    
    #instant-replies-table .drag-handle .grip {
        display: none;
    }
}

/* ========================================
   INSTANT REPLIES TABLE
   ======================================== */

#instant-replies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#instant-replies-table th,
#instant-replies-table td {
    padding: 8px;
    vertical-align: top;
    border: 1px solid #e9ecef;
}

#instant-replies-table th {
    background: #f8f9fa;
    font-weight: 600;
    text-align: left;
}

#instant-replies-table .pos.drag-handle {
    cursor: grab;
    white-space: nowrap;
    text-align: center;
}

#instant-replies-table .pos.drag-handle:active {
    cursor: grabbing;
}

#instant-replies-table .grip {
    opacity: 0.6;
    margin-left: 4px;
    font-size: 12px;
}

#instant-replies-table .instant-reply-q,
#instant-replies-table .instant-reply-a {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
}

#instant-replies-table .instant-reply-a {
    resize: vertical;
    font-family: inherit;
}

#instant-replies-table .remove-cell {
    text-align: center;
    width: 40px;
}

#instant-replies-table .instant-reply-trash {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
}

#instant-replies-table .instant-reply-trash:hover,
#instant-replies-table .instant-reply-trash:focus {
    outline: none;
    box-shadow: none;
    transform: scale(1.1);
    background: rgba(220, 53, 69, 0.1);
    border-radius: 4px;
}

#instant-replies-table tbody tr.ui-sortable-helper {
    background: #fffbe7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#instant-replies-table tbody tr.ui-sortable-placeholder td {
    background: #f3f4f6 !important;
    visibility: visible !important;
    border: 2px dashed #0073aa;
}

#instant-replies-table tbody tr.ui-sortable-placeholder * {
    visibility: hidden;
}