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

:root {
    --rh-wizard-primary: var(--e-global-color-primary, var(--wp--preset--color--primary, #5f6b7a));
    --rh-wizard-secondary: var(--e-global-color-secondary, var(--wp--preset--color--secondary, #8a94a6));
    --rh-wizard-text: var(--e-global-color-text, var(--wp--preset--color--foreground, #2f3440));
    --rh-wizard-muted: var(--wp--preset--color--contrast-2, #6b7280);
    --rh-wizard-success: var(--e-global-color-secondary, #8a94a6);
    --rh-wizard-success-2: var(--e-global-color-accent, #7b8699);
    --rh-wizard-font: var(--e-global-typography-primary-font-family, var(--e-global-typography-text-font-family, var(--wp--preset--font-family--body, var(--wp--preset--font-family--system-font, inherit))));
}

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

.paystack-wizard-modal,
.paystack-qr-wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paystack-wizard-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rh-wizard-primary), var(--rh-wizard-secondary));
    background: linear-gradient(135deg, color-mix(in srgb, var(--rh-wizard-primary) 90%, #000 10%), color-mix(in srgb, var(--rh-wizard-secondary) 90%, #000 10%));
}

.paystack-wizard-modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    width: 90%;
    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;
    z-index: 1;
    font-family: var(--rh-wizard-font);
    color: var(--rh-wizard-text);
}

@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, var(--rh-wizard-primary), var(--rh-wizard-secondary));
    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, var(--rh-wizard-success), var(--rh-wizard-success-2));
    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: var(--rh-wizard-text);
    margin: 0 0 10px;
    font-weight: 700;
}

.paystack-wizard-header p {
    font-size: 16px;
    color: var(--rh-wizard-muted);
    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: var(--rh-wizard-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--rh-wizard-primary) 20%, transparent);
}

.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: var(--rh-wizard-text);
    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: var(--rh-wizard-muted);
    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, var(--rh-wizard-success), var(--rh-wizard-success-2));
    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;
}

.activation-toggles-container {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    text-align: left;
}

.activation-toggles-container h3 {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--rh-wizard-text);
    text-align: center;
}

.toggle-option {
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: border-color 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.toggle-option.is-active {
    border-color: color-mix(in srgb, var(--rh-wizard-success) 70%, #ffffff 30%);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--rh-wizard-success) 18%, transparent);
}

.toggle-option[data-feature="ai"].is-disabled {
    opacity: 0.6;
    background: #f5f5f5;
}

.activation-option-label {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.activation-copy {
    display: block;
    flex: 1;
}

.activation-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--rh-wizard-text);
    margin-bottom: 4px;
}

.activation-description {
    display: block;
    font-size: 13px;
    color: var(--rh-wizard-muted);
    line-height: 1.4;
}

.activation-toggle-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: #c9ced4;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.toggle-switch.is-active {
    background: var(--rh-wizard-success);
}

.toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.toggle-switch.is-active .toggle-slider {
    transform: translateX(24px);
}

.activation-tip {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8e5;
    color: #7a6a22;
    font-size: 12px;
    text-align: center;
}

.qr-activate-bot-btn {
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* ========================================
   QR WIZARD UX
   ======================================== */

.qr-connect-method-choice {
    margin-bottom: 20px;
    padding: 16px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
}

.qr-connect-method-choice h3 {
    margin: 0 0 8px;
    color: var(--rh-wizard-text);
}

.qr-connect-method-choice p {
    margin: 0 0 12px;
    color: var(--rh-wizard-muted);
}

.qr-method-choice-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qr-method-dorito-toggle {
    margin-top: 12px;
    border: none;
    background: transparent;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
}

.qr-dorito {
    display: inline-block;
    transition: transform 0.16s ease;
}

.qr-method-dorito-toggle[aria-expanded="true"] .qr-dorito {
    transform: rotate(90deg);
}

.qr-method-info-card {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
}

.qr-method-info-card h4 {
    margin: 0 0 8px;
    color: var(--rh-wizard-text);
}

.qr-method-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.qr-method-compare-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
}

.qr-method-compare-item strong {
    display: block;
    margin-bottom: 4px;
}

.qr-method-compare-item p {
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.qr-mode-guidance {
    margin-bottom: 16px;
}

.qr-method-steps {
    margin: 0;
    padding-left: 20px;
    line-height: 1.7;
    color: #334155;
}

.qr-status-container {
    text-align: center;
    margin: 20px 0;
}

#qr-status {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--rh-wizard-text);
}

#qr-substatus {
    font-size: 14px;
    margin-bottom: 14px;
}

.qr-connecting-spinner p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--rh-wizard-muted);
}

.qr-spinner-circle {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--rh-wizard-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: qr-spin 1s linear infinite;
    margin: 0 auto;
}

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

.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.qr-wizard-code {
    max-width: 400px;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.qr-pairing-container h4 {
    margin: 0 0 8px;
}

.qr-pairing-container > p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--rh-wizard-muted);
}

.qr-pairing-input-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

#qr-pair-message {
    margin: 8px 0 0;
    font-size: 13px;
}

#qr-pair-code {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 700;
}

.qr-connected-summary {
    margin: 14px 0 10px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #bbf7d0;
    background: #ecfdf3;
}

.qr-connected-summary h3 {
    margin: 0 0 6px;
    color: #166534;
}

.qr-connected-summary p {
    margin: 0;
    color: #166534;
}

.paystack-qr-wizard-modal.is-connected .qr-connect-method-choice,
.paystack-qr-wizard-modal.is-connected .qr-mode-guidance-qr,
.paystack-qr-wizard-modal.is-connected .qr-status-container,
.paystack-qr-wizard-modal.is-connected .qr-code-container,
.paystack-qr-wizard-modal.is-connected .qr-pairing-container {
    display: none !important;
}

/* ========================================
   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;
    }

    .activation-toggles-container {
        padding: 16px;
    }

    .activation-option-label {
        align-items: flex-start;
    }

    .activation-title {
        font-size: 15px;
    }

    .activation-description {
        font-size: 12px;
    }

    .qr-activate-bot-btn {
        max-width: 100%;
        font-size: 15px;
        padding: 14px 16px;
    }

    .qr-method-choice-actions,
    .qr-pairing-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-method-compare-grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   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: var(--rh-wizard-text);
}

.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: var(--rh-wizard-primary);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rh-wizard-primary) 16%, transparent);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--rh-wizard-muted);
    font-size: 12px;
}

.research-start-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--rh-wizard-primary), var(--rh-wizard-secondary));
    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: var(--rh-wizard-text);
    font-size: 24px;
}

.research-status {
    color: var(--rh-wizard-muted);
    font-size: 16px;
    margin-bottom: 30px;
}

.research-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--rh-wizard-primary);
    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: var(--rh-wizard-muted);
    color: color-mix(in srgb, var(--rh-wizard-muted) 75%, #888 25%);
    font-size: 14px;
    transition: all 0.3s ease;
}

.research-step.active {
    background: var(--rh-wizard-primary);
    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: var(--rh-wizard-text);
    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: var(--rh-wizard-text);
    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: var(--rh-wizard-text);
}

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

.paystack-wizard-next-btn,
.company-research-next-btn {
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--rh-wizard-success), var(--rh-wizard-success-2));
    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 var(--rh-wizard-primary);
}

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

/* ========================================
   DOCUMENT REPLIES
   ======================================== */

.document-replies-group {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.document-reply-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#document-reply-upload {
    display: none;
}

#document-reply-upload-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rh-wizard-muted);
}

#document-reply-upload-status.is-uploading {
    color: #d63638;
    font-weight: 600;
}

/* ========================================
   REVIEW IMAGE GALLERY
   ======================================== */

.review-image-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

#review-image-upload {
    display: none;
}

.review-image-gallery {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.review-image-empty {
    grid-column: 1 / -1;
    border: 1px dashed #c9ced6;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    padding: 12px;
    font-size: 13px;
}

.review-image-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: grab;
}

.review-image-card.is-dragging {
    opacity: 0.55;
}

.review-image-card.is-drop-target {
    border-color: var(--rh-wizard-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.review-image-thumb-wrap {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    background: #f1f5f9;
}

.review-image-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-image-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
}

.review-image-index {
    color: #334155;
    font-weight: 600;
}

.review-image-name {
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-image-actions {
    display: flex;
    gap: 4px;
}

.review-image-actions .button {
    padding: 0 6px;
    min-height: 24px;
    line-height: 22px;
}

#review-image-upload-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#review-image-upload-status.is-uploading {
    color: #d63638;
    font-weight: 600;
    animation: reviewUploadPulse 0.9s ease-in-out infinite;
}

#review-image-upload-status.is-uploading::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(214, 54, 56, 0.25);
    border-top-color: #d63638;
    animation: reviewUploadSpin 0.8s linear infinite;
}

@keyframes reviewUploadSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes reviewUploadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (max-width: 768px) {
    .review-image-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    #review-image-upload-btn {
        width: 100%;
    }
}

/* ========================================
   DOCUMENT REPLIES CARDS
   ======================================== */

.document-replies-cards {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.no-documents-message {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.document-reply-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.document-reply-card:hover {
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

.document-reply-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.document-reply-number {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 12px;
}

.document-reply-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

.document-reply-remove:hover {
    background: #ffebee;
    color: #d32f2f;
    transform: scale(1.1);
}

.document-reply-card-body {
    display: grid;
    gap: 12px;
}

.document-reply-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.document-reply-field label {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    transition: all 0.2s ease;
}

.tooltip-icon:hover {
    background: #4CAF50;
    color: white;
}

.document-reply-field input,
.document-reply-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.document-reply-field input:focus,
.document-reply-field textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.document-reply-field textarea {
    resize: vertical;
    min-height: 50px;
    font-family: inherit;
}

/* Responsive grid for larger screens */
@media (min-width: 900px) {
    .document-reply-card-body {
        grid-template-columns: 1fr 1fr;
    }
    
    .document-reply-field:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .paystack-wizard-modal-content {
        max-width: 95%;
        width: 95%;
    }
    
    .document-reply-card {
        padding: 12px;
    }
    
    .document-reply-number {
        font-size: 13px;
        padding: 3px 8px;
    }
}
