/**
 * Speedy Go Popup Modal Styles
 * Beautiful modal/popup for validation messages
 */

/* Modal Overlay */
.speedygo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.speedygo-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.speedygo-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: slideIn 0.3s ease forwards;
    font-family: "Poppins", sans-serif;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.speedygo-modal-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    justify-content: space-between;
}

.speedygo-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.speedygo-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.speedygo-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.speedygo-modal-close:hover {
    color: #333;
}

/* Modal Body */
.speedygo-modal-body {
    padding: 20px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

/* Modal Footer */
.speedygo-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Modal Buttons */
.speedygo-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.speedygo-modal-btn-primary {
    background: #2271b1;
    color: white;
}

.speedygo-modal-btn-primary:hover {
    background: #1d5aa0;
}

.speedygo-modal-btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.speedygo-modal-btn-secondary:hover {
    background: #e0e0e0;
}

/* Success Style */
.speedygo-modal.modal-success .speedygo-modal-icon {
    background: #28a745;
}

.speedygo-modal.modal-success .speedygo-modal-title {
    color: #28a745;
}

/* Error Style */
.speedygo-modal.modal-error .speedygo-modal-icon {
    background: #dc3545;
}

.speedygo-modal.modal-error .speedygo-modal-title {
    color: #dc3545;
}

/* Warning Style */
.speedygo-modal.modal-warning .speedygo-modal-icon {
    background: #ffc107;
    color: #333 !important;
}

.speedygo-modal.modal-warning .speedygo-modal-title {
    color: #ffc107;
}

/* Info Style */
.speedygo-modal.modal-info .speedygo-modal-icon {
    background: #17a2b8;
}

.speedygo-modal.modal-info .speedygo-modal-title {
    color: #17a2b8;
}

/* Responsive */
@media (max-width: 600px) {
    .speedygo-modal {
        width: 95%;
        max-width: 100%;
    }

    .speedygo-modal-header {
        padding: 15px;
    }

    .speedygo-modal-body {
        padding: 15px;
    }

    .speedygo-modal-footer {
        padding: 10px 15px;
        flex-direction: column;
    }

    .speedygo-modal-btn {
        width: 100%;
    }
}
