/**
 * BlueMinds Enquiry Popup Styles
 * Responsive popup with smooth animations
 */

/* Overlay */
.enquiry-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.enquiry-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.enquiry-popup-container {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.enquiry-popup-overlay.active .enquiry-popup-container {
    transform: scale(1) translateY(0);
}

/* Close Button */
.enquiry-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.enquiry-popup-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.enquiry-popup-close i {
    font-size: 18px;
    color: #333;
}

/* Popup Content */
.enquiry-popup-content {
    padding: 30px;
}

.enquiry-popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.enquiry-popup-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.enquiry-popup-header p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Form Styles */
.enquiry-popup-form {
    margin-top: 20px;
}

.enquiry-popup-form .form-group {
    margin-bottom: 20px;
}

.enquiry-popup-form label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.enquiry-popup-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enquiry-popup-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.enquiry-popup-form select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Submit Button */
.enquiry-popup-form .btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.enquiry-popup-form .btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.enquiry-popup-form .btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Message Styles */
.popup-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: none;
}

.popup-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.popup-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .enquiry-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .enquiry-popup-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        transform: translateY(100%);
    }

    .enquiry-popup-overlay.active .enquiry-popup-container {
        transform: translateY(0);
    }

    .enquiry-popup-content {
        padding: 25px 20px;
    }

    .enquiry-popup-header h3 {
        font-size: 20px;
    }

    .enquiry-popup-close {
        top: 10px;
        right: 10px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .enquiry-popup-container {
        max-width: 450px;
    }
}

/* Animation for smooth appearance */
@keyframes popupSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
