/**
 * Frontend form CSS for CWP Du Toan Keo.
 */

#cwp-du-toan-form-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: sans-serif;
}

.cwp-du-toan-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    /* border-bottom: 1px solid #eee; */ /* Replaced by hr */
    position: relative;
}

.cwp-du-toan-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cwp-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.cwp-form-group {
    display: flex;
    flex-direction: column;
}

.cwp-form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.cwp-form-group select,
.cwp-form-group input[type="number"],
.cwp-form-group input[type="text"],
.cwp-form-group input[type="tel"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
    color: #000;
    font-size: 16px;
}

.cwp-form-group input[type="number"] {
    padding-right: 10px; /* No arrow for number input */
    &::-webkit-inner-spin-button,
    &::-webkit-outer-spin-button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        margin: 0;
    }
}


.cwp-remove-item-btn,
#cwp-add-item-btn,
#cwp-view-results-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cwp-remove-item-btn {
    background: transparent;
    color: #b71c1c;
    border: 1.5px solid #e0e0e0;
    border-radius: 50%;
    padding: 7px 9px;
    font-size: 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: none;
    transition: background 0.18s, color 0.18s, border 0.18s, transform 0.15s;
    cursor: pointer;
    outline: none;
    min-width: 36px;
    min-height: 36px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.cwp-remove-item-btn:focus {
    color: #d32f2f;
}
.cwp-remove-item-btn:hover svg {
    color: #d32f2f;
}
.cwp-remove-item-btn:active svg {
    color: #b71c1c;
}
.cwp-remove-item-btn .dashicons { display: none; }
.cwp-remove-item-btn .cwp-remove-label {
    display: none;
}
@media (max-width: 600px) {
    .cwp-remove-item-btn {
        top: 6px;
        right: 6px;
        min-width: 32px;
        min-height: 32px;
        padding: 6px 7px;
    }
}

#cwp-add-item-btn {
    background-color: #fff; /* White background */
    color: #004A55; /* Dark teal text */
    border: 1px solid #004A55;
}

#cwp-view-results-btn {
    background-color: #004A55; /* Dark teal background */
    color: white;
}

.cwp-form-actions {
    margin-top: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cwp-form-actions button svg {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    line-height: inherit;
}

/* Modal Styling */
#cwp-du-toan-results-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex; /* Using flex to center */
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Allow scroll if content is too long */
}

#cwp-du-toan-results-modal h2,
#cwp-du-toan-results-modal h3 {
    color: #004A55;
}

#cwp-du-toan-results-modal form,
#cwp-du-toan-results-modal #cwp-du-toan-results-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 10px; /* Added for spacing in case of multiple elements if layout changes */
}

#cwp-du-toan-results-modal .cwp-form-group {
    margin-bottom: 15px;
}

#cwp-du-toan-results-modal input[type="text"],
#cwp-du-toan-results-modal input[type="tel"],
#cwp-du-toan-results-modal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    /* Resetting specific styles for modal inputs if different from main form */
    background-color: #fff; 
    color: #333;
}

#cwp-submit-final-btn {
    background-color: #000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#cwp-submit-final-btn svg{
    width: 20px;
    height: 20px;
    line-height: inherit;
}
/* Initial hide for remove button if only one item */
.cwp-du-toan-item:first-child .cwp-remove-item-btn {
    /* display: none; JS handles this now, but can be a fallback */
}

/* Placeholder for input fields to match the design image */
::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    color:    #a0b8bd; /* Lighter teal for placeholder */
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color:    #a0b8bd;
   opacity:  1;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
   color:    #a0b8bd;
   opacity:  1;
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
   color:    #a0b8bd;
}
::-ms-input-placeholder { /* Microsoft Edge */
   color:    #a0b8bd;
}

::placeholder { /* Most modern browsers */
  color: #a0b8bd;
}

/* ===========================
   VALIDATION STYLES
   =========================== */

/* Field validation states */
.cwp-field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Error messages */
.cwp-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
    line-height: 1.3;
}

.cwp-modal-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

/* Form group with validation */
.cwp-form-group {
    position: relative;
    margin-bottom: 1rem;
}

/* Field help text */
.cwp-field-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #666;
    line-height: 1.3;
    font-style: italic;
}

/* ===========================
   ANIMATION STYLES
   =========================== */

/* Focus ring animation */
.cwp-focus-animation {
    animation: focusRing 1s ease-out;
}

@keyframes focusRing {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Slide in animation for error messages */
.cwp-slide-in {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from { 
        transform: translateY(10px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* ===========================
   BUTTON STATES
   =========================== */

/* Success button state */
.cwp-success-btn {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
    transition: all 0.3s ease;
}

.cwp-success-btn:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* Error button state */
.cwp-error-btn {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
    transition: all 0.3s ease;
}

.cwp-error-btn:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Loading state */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ===========================
   ADMIN VALIDATION STYLES
   =========================== */

/* Admin field errors */
.cwp-admin-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
    display: block;
}

/* ===========================
   RESPONSIVE STYLES
   =========================== */

@media (max-width: 768px) {
    .cwp-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

/* ===========================
   ACCESSIBILITY IMPROVEMENTS
   =========================== */

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus improvements */
.cwp-field-error:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.cwp-field-valid:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cwp-field-error {
        border-width: 2px !important;
    }
    
    .cwp-field-valid {
        border-width: 2px !important;
    }
    
    .cwp-error-message {
        font-weight: bold;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cwp-focus-animation,
    .cwp-slide-in,
    .cwp-toast {
        animation: none;
    }
    
    .cwp-success-btn,
    .cwp-error-btn {
        transition: none;
    }
}

/* Removal animation */
.cwp-du-toan-item.cwp-removing {
    animation: cwpFadeOutLeft 0.4s forwards;
}
@keyframes cwpFadeOutLeft {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: scale(0.95); }
}

/* --- SVG TRASH ICON STYLING --- */
.cwp-trash-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    line-height: 1;
}

/* Remove toast and undo styles */
/* .cwp-toast, .cwp-toast.cwp-toast-visible, .cwp-toast .cwp-undo-btn, .cwp-toast .cwp-undo-btn:focus { display: none !important; } */

/* Modal Close Button */
.cwp-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
    z-index: 10;
}

.cwp-modal-close-btn:hover {
    background-color: #f5f5f5;
    color: #333;
    transform: scale(1.1);
}

.cwp-modal-close-btn:focus {
    outline: 2px solid #004A55;
    outline-offset: 2px;
    background-color: #f5f5f5;
    color: #333;
}

.cwp-modal-close-btn:active {
    transform: scale(0.95);
    background-color: #e0e0e0;
}

.cwp-modal-close-btn svg {
    width: 20px;
    height: 20px;
}

#cwp-du-toan-results-modal form {
    position: relative;
}

@media (max-width: 600px) {
    .cwp-modal-close-btn {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .cwp-modal-close-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ===========================
   PROCESSING OVERLAY (Step 7.2)
   =========================== */

.cwp-processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.cwp-processing-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: cwpFadeInScale 0.3s ease-out;
}

.cwp-processing-content h3 {
    margin: 20px 0 10px 0;
    color: #004A55;
    font-size: 1.5rem;
    font-weight: 600;
}

.cwp-processing-content p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Spinner Animation */
.cwp-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #004A55;
    border-radius: 50%;
    animation: cwpSpin 1s linear infinite;
    margin: 0 auto;
}

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

@keyframes cwpFadeInScale {
    0% { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}

/* Prevent body scroll when processing */
body.cwp-processing-active {
    overflow: hidden;
}

/* ===========================
   TOAST NOTIFICATIONS (Step 7.2)
   =========================== */

.cwp-error-toast,
.cwp-success-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    animation: cwpSlideInRight 0.3s ease-out;
}

.cwp-error-toast {
    border-left: 4px solid #dc3545;
}

.cwp-success-toast {
    border-left: 4px solid #28a745;
}

.cwp-toast-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.cwp-toast-icon {
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.cwp-toast-message {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.cwp-toast-close {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.cwp-toast-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.cwp-toast-close:focus {
    outline: 2px solid #004A55;
    outline-offset: 2px;
}

@keyframes cwpSlideInRight {
    0% { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    100% { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Mobile toast adjustments */
@media (max-width: 600px) {
    .cwp-error-toast,
    .cwp-success-toast {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .cwp-toast-content {
        padding: 12px;
        gap: 10px;
    }
    
    .cwp-toast-message {
        font-size: 0.9rem;
    }
}

/* ===========================
   PROCESSING STATE IMPROVEMENTS
   =========================== */

/* Processing overlay responsive design */
@media (max-width: 600px) {
    .cwp-processing-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .cwp-processing-content h3 {
        font-size: 1.3rem;
    }
    
    .cwp-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}

/* Reduced motion support for new animations */
@media (prefers-reduced-motion: reduce) {
    .cwp-processing-overlay,
    .cwp-error-toast,
    .cwp-success-toast {
        animation: none;
    }
    
    .cwp-spinner {
        animation: none;
        border-top-color: transparent;
        background: #004A55;
        border-radius: 50%;
    }
}

/* High contrast mode support for new elements */
@media (prefers-contrast: high) {
    .cwp-processing-content {
        border: 2px solid #000;
    }
    
    .cwp-error-toast,
    .cwp-success-toast {
        border: 2px solid #000;
    }
    
    .cwp-spinner {
        border-width: 6px;
    }
}

/* ========================================
 * SUCCESS MODAL STYLES (Step 7.3)
 * ======================================== */

#cwp-du-toan-success-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001; /* Higher than contact modal */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease-in-out;
}

#cwp-du-toan-success-modal.cwp-modal-visible {
    opacity: 1;
}

.cwp-success-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 20px;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#cwp-du-toan-success-modal.cwp-modal-visible .cwp-success-modal-content {
    transform: scale(1) translateY(0);
}

.cwp-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background-color: #00C851;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cwpSuccessIcon 0.6s ease-out 0.2s both;
}

.cwp-success-icon svg {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2;
}

@keyframes cwpSuccessIcon {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(-10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.cwp-success-modal-content h2 {
    color: #004A55;
    margin: 0 0 15px 0;
    font-size: 1.5em;
    font-weight: 600;
}

.cwp-success-message {
    color: #555;
    font-size: 1em;
    line-height: 1.5;
    margin: 0 0 25px 0;
}

.cwp-zalo-notification {
    margin: 15px 0 25px 0;
    transition: all 0.3s ease;
    animation: cwpZaloSlideIn 0.4s ease-out;
}

/* Zalo Button Styles */
.cwp-zalo-button-container {
    text-align: center;
}

.cwp-zalo-btn {
    background: #0068ff !important;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-height: 44px;
    width: 100%;
}

.cwp-zalo-btn:hover {
    background: #0056D6 !important;
    color: #fff !important;
}

.cwp-zalo-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes cwpZaloSlideIn {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.cwp-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 25px;
}

.cwp-btn-primary,
.cwp-btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
    min-height: 44px; /* Touch-friendly */
}

.cwp-btn-primary {
    background: linear-gradient(135deg, #004A55 0%, #006064 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 74, 85, 0.3);
}

.cwp-btn-primary:hover {
    background: linear-gradient(135deg, #003940 0%, #004D50 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 74, 85, 0.4);
}

.cwp-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 74, 85, 0.3);
}

.cwp-btn-secondary {
    background-color: #f5f5f5;
    color: #004A55;
    border: 1px solid #ddd;
}

.cwp-btn-secondary:hover {
    background-color: #eeeeee;
    border-color: #004A55;
    transform: translateY(-1px);
}

.cwp-btn-secondary:active {
    transform: translateY(0);
    background-color: #e0e0e0;
}

.cwp-btn-primary svg,
.cwp-btn-secondary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cwp-success-error {
    background-color: #FFEBEE;
    border: 1px solid #E57373;
    border-radius: 6px;
    padding: 12px;
    margin: 15px 0;
    color: #C62828;
    font-size: 0.9em;
    display: none;
}

/* Success Modal Close Button - Override */
#cwp-du-toan-success-modal .cwp-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

#cwp-du-toan-success-modal .cwp-modal-close-btn:hover {
    background-color: #f5f5f5;
    color: #666;
}

#cwp-du-toan-success-modal .cwp-modal-close-btn:focus {
    outline: 2px solid #004A55;
    outline-offset: 2px;
}

#cwp-du-toan-success-modal .cwp-modal-close-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design for Success Modal */
@media (max-width: 600px) {
    .cwp-success-modal-content {
        padding: 20px;
        margin: 10px;
        border-radius: 8px;
    }
    
    .cwp-success-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 15px;
    }
    
    .cwp-success-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .cwp-success-modal-content h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
    }
    
    .cwp-success-message {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    
    .cwp-success-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cwp-btn-primary,
    .cwp-btn-secondary {
        width: 100%;
        padding: 14px 20px;
        font-size: 1em;
    }
    
    .cwp-zalo-notification {
        padding: 12px;
        margin: 12px 0 20px 0;
    }
    
    .cwp-zalo-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1em;
    }
}

/* Focus Management and Accessibility */
.cwp-btn-primary:focus,
.cwp-btn-secondary:focus {
    outline: 2px solid #004A55;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cwp-success-modal-content {
        border: 2px solid #000;
    }
    
    .cwp-success-icon {
        background-color: #000;
        border: 2px solid #fff;
    }
    
    .cwp-btn-primary {
        background: #000;
        border: 2px solid #fff;
    }
    
    .cwp-btn-secondary {
        background: #fff;
        border: 2px solid #000;
        color: #000;
    }
    
    .cwp-zalo-btn {
        background: #0068FF;
        border: 2px solid #fff;
    }
}

/* Toast Zalo Integration Styles (Fallback) */
.cwp-toast-zalo-success,
.cwp-toast-zalo-error {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.cwp-toast-zalo-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.cwp-toast-zalo-error {
    background-color: rgba(255, 87, 34, 0.1);
    color: #E65100;
    border: 1px solid rgba(255, 87, 34, 0.3);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    #cwp-du-toan-success-modal,
    .cwp-success-modal-content,
    .cwp-success-icon,
    .cwp-btn-primary,
    .cwp-btn-secondary,
    .cwp-zalo-notification,
    .cwp-zalo-btn {
        transition: none;
        animation: none;
    }
    
    .cwp-success-modal-content {
        transform: none;
    }
    
    .cwp-success-icon {
        animation: none;
    }
}