/* Custom Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-overlay.show {
    display: flex;
}

.popup-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    position: relative;
}

.popup-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.popup-success .popup-icon {
    color: #28a745;
}

.popup-error .popup-icon {
    color: #dc3545;
}

.popup-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: "Montserrat", sans-serif;
}

.popup-success .popup-title {
    color: #28a745;
}

.popup-error .popup-title {
    color: #dc3545;
}

.popup-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.popup-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: "Open Sans", sans-serif;
}

.popup-button:hover {
    background: #0b6bd3;
}

.popup-success .popup-button {
    background: #28a745;
}

.popup-success .popup-button:hover {
    background: #218838;
}

.popup-error .popup-button {
    background: #dc3545;
}

.popup-error .popup-button:hover {
    background: #c82333;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #333;
}

/* Loading state for form button */
.contact1-form-btn.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.contact1-form-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.contact1-form-btn.loading span {
    opacity: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Responsive design */
@media (max-width: 576px) {
    .popup-content {
        margin: 20px;
        padding: 25px;
    }
    
    .popup-icon {
        font-size: 50px;
    }
    
    .popup-title {
        font-size: 20px;
    }
    
    .popup-message {
        font-size: 14px;
    }
}