/**
 * SignalBridge Checkout Validation Styles
 */

/* Modal Overlay */
.sb-validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    backdrop-filter: blur(4px);
}

/* Modal Container */
.sb-validation-modal {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon */
.sb-modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.sb-modal-icon.warning {
    color: #f59e0b;
}

.sb-modal-icon.info {
    color: #3b82f6;
}

.sb-modal-icon.error {
    color: #ef4444;
}

/* Content */
.sb-modal-content {
    margin-bottom: 25px;
}

.sb-error-title {
    font-size: 22px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.sb-error-message {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 15px;
}

.sb-error-suggestion {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
    margin-top: 15px;
}

/* Close Button */
.sb-modal-close {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.sb-modal-close:hover {
    background: #2563eb;
}

.sb-modal-close:active {
    transform: scale(0.98);
}

/* Email Input States */
input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .sb-validation-modal {
        padding: 20px;
        width: 95%;
    }

    .sb-error-title {
        font-size: 18px;
    }

    .sb-error-message {
        font-size: 14px;
    }

    .sb-modal-icon {
        font-size: 36px;
    }
}
