/* CSS for the E-Waste & ITAD Operational Risk Audit Plugin */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ewaste-audit-container-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1F2937;
    margin: 30px auto;
    max-width: 680px;
    width: 100%;
    box-sizing: border-box;
}

.ewaste-audit-container-wrap * {
    box-sizing: border-box;
}

.ewaste-audit-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress Area */
.ewaste-audit-progress-wrapper {
    margin-bottom: 32px;
}

.ewaste-audit-progress-text-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

#ewaste-audit-progress-step-text {
    color: #4F46E5;
}

.ewaste-audit-progress-bar {
    background: #F3F4F6;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    width: 100%;
}

.ewaste-audit-progress-fill {
    background: linear-gradient(90deg, #4F46E5 0%, #818CF8 100%);
    border-radius: 9999px;
    height: 100%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Badges & Titles */
.ewaste-audit-section-badge {
    display: inline-block;
    background-color: #EEF2F6;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.ewaste-audit-question-title {
    color: #1E0E62;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.ewaste-audit-question-text {
    color: #4B5563;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Options selectors */
.ewaste-audit-options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.ewaste-audit-option-btn {
    background: #ffffff;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 20px 24px;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ewaste-audit-option-btn:hover {
    border-color: #818CF8;
    background-color: #F9FAFB;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.ewaste-audit-option-btn:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

/* Option selected state */
.ewaste-audit-option-btn.ewaste-audit-selected[data-value="yes"] {
    border-color: #10B981;
    background-color: #ECFDF5;
}

.ewaste-audit-option-btn.ewaste-audit-selected[data-value="yes"] .ewaste-audit-radio-circle {
    border-color: #10B981;
    background-color: #10B981;
}

.ewaste-audit-option-btn.ewaste-audit-selected[data-value="no"] {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.ewaste-audit-option-btn.ewaste-audit-selected[data-value="no"] .ewaste-audit-radio-circle {
    border-color: #EF4444;
    background-color: #EF4444;
}

.ewaste-audit-radio-circle {
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    height: 22px;
    margin-right: 16px;
    min-width: 22px;
    position: relative;
    transition: all 0.2s ease;
    width: 22px;
}

.ewaste-audit-radio-circle::after {
    content: '';
    background: #ffffff;
    border-radius: 50%;
    height: 8px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 8px;
}

.ewaste-audit-option-btn.ewaste-audit-selected .ewaste-audit-radio-circle::after {
    transform: translate(-50%, -50%) scale(1);
}

.ewaste-audit-option-label {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
}

.ewaste-audit-option-btn.ewaste-audit-selected .ewaste-audit-option-label {
    color: #111827;
}

/* Controls */
.ewaste-audit-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F3F4F6;
    padding-top: 24px;
}

.ewaste-audit-nav-btn {
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    justify-content: center;
    padding: 12px 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.ewaste-audit-btn-primary {
    background-color: #4F46E5;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2), 0 2px 4px -1px rgba(79, 70, 229, 0.1);
}

.ewaste-audit-btn-primary:hover:not(:disabled) {
    background-color: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(79, 70, 229, 0.25), 0 4px 6px -1px rgba(79, 70, 229, 0.15);
}

.ewaste-audit-btn-primary:disabled {
    background-color: #9CA3AF;
    box-shadow: none;
    cursor: not-allowed;
}

.ewaste-audit-btn-secondary {
    background-color: #ffffff;
    color: #4B5563 !important;
    border: 1px solid #D1D5DB;
}

.ewaste-audit-btn-secondary:hover:not(:disabled) {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
    color: #1F2937 !important;
}

.ewaste-audit-btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ewaste-audit-btn-icon {
    font-size: 16px;
    line-height: 1;
}
#ewaste-audit-prev-btn .ewaste-audit-btn-icon { margin-right: 6px; }
#ewaste-audit-next-btn .ewaste-audit-btn-icon { margin-left: 6px; }

/* Alerts */
.ewaste-audit-error-alert {
    background-color: #FEF2F2;
    border-left: 4px solid #EF4444;
    color: #B91C1C;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
    animation: ewasteFadeIn 0.3s ease;
}

/* Lead View Form */
.ewaste-audit-lead-header {
    text-align: center;
    margin-bottom: 30px;
}

.ewaste-audit-lead-header h2 {
    color: #1E0E62;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 10px 0;
}

.ewaste-audit-lead-header p {
    color: #6B7280;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    padding: 0 10px;
}

.ewaste-audit-form {
    margin-top: 20px;
}

.ewaste-audit-form-group {
    margin-bottom: 24px;
    text-align: left;
}

.ewaste-audit-form-label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ewaste-audit-required {
    color: #EF4444;
}

.ewaste-audit-form-input {
    background-color: #ffffff;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    color: #1F2937;
    font-family: inherit;
    font-size: 16px;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ewaste-audit-form-input:focus {
    border-color: #4F46E5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15), inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.ewaste-audit-form-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F3F4F6;
    padding-top: 24px;
    margin-top: 30px;
}

/* Thank You View */
.ewaste-audit-thanks-content {
    text-align: center;
    padding: 20px 10px;
}

.ewaste-audit-success-icon {
    background-color: #D1FAE5;
    color: #059669;
    font-size: 32px;
    height: 72px;
    width: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-weight: bold;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
}

.ewaste-audit-thanks-content h2 {
    color: #1E0E62;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px 0;
}

.ewaste-audit-thanks-content p {
    color: #4B5563;
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 10px auto;
}

.ewaste-audit-thanks-detail {
    color: #6B7280 !important;
    font-size: 14px !important;
    margin-bottom: 30px !important;
}

/* CTA Box in Thank You Screen */
.ewaste-audit-thanks-cta-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px 30px;
    margin-top: 24px;
    position: relative;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.ewaste-audit-cta-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #4F46E5;
}

.ewaste-audit-thanks-cta-box h4 {
    color: #1E0E62;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.ewaste-audit-thanks-cta-box p {
    color: #4B5563;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
    text-align: left;
}

.ewaste-audit-cta-btn {
    display: inline-block;
    background-color: #4F46E5;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.15);
}

.ewaste-audit-cta-btn:hover {
    background-color: #4338CA;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
    text-decoration: none !important;
}

/* Animations */
@keyframes ewasteFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.ewaste-audit-fade {
    animation: ewasteFadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading Spinner for submit button */
.ewaste-audit-loading {
    pointer-events: none;
    opacity: 0.8;
}

.ewaste-audit-loading #ewaste-audit-submit-btn {
    color: transparent !important;
    position: relative;
}

.ewaste-audit-loading #ewaste-audit-submit-btn::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: ewasteSpin 0.6s linear infinite;
}

@keyframes ewasteSpin {
    to { transform: rotate(360deg); }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .ewaste-audit-card {
        padding: 24px 20px;
    }
    
    .ewaste-audit-options-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ewaste-audit-option-btn {
        padding: 16px 20px;
    }

    .ewaste-audit-form-submit-row {
        flex-direction: column-reverse;
        gap: 12px;
    }

    .ewaste-audit-form-submit-row .ewaste-audit-nav-btn {
        width: 100%;
    }
}
