/* Pop-up Enquiry Form Styles */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: linear-gradient(135deg, #111420 0%, #1e2033 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    padding: 35px 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
                opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.popup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 184, 255, 0.1), transparent 60%);
    pointer-events: none;
}

.popup-overlay.active .popup-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-header {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.popup-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00b8ff, #00ff88);
    border-radius: 3px;
}

.popup-title {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.popup-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
}

/* Form styles inside popup */
.popup-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.popup-form .form-group {
    display: flex;
    flex-direction: column;
    width: 48%;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
}

.popup-form .form-group.full-width {
    width: 100%;
}

.popup-form label {
    color: #00b8ff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.popup-form input,
.popup-form select,
.popup-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s ease;
}

.popup-form input:focus,
.popup-form select:focus,
.popup-form textarea:focus {
    border-color: #00b8ff;
    background: rgba(0, 184, 255, 0.05);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 184, 255, 0.2);
}

.popup-form input::placeholder,
.popup-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.popup-form button[type="submit"] {
    background: linear-gradient(90deg, #00b8ff, #00ff88);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.popup-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.popup-form button[type="submit"]:hover::before {
    left: 100%;
}

.popup-form button[type="submit"]:hover {
    box-shadow: 0 5px 15px rgba(0, 184, 255, 0.4);
    transform: translateY(-2px);
}

.popup-success-message {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid #4CAF50;
    padding: 12px;
    margin-top: 16px;
    border-radius: 4px;
    display: none;
}

.popup-error-message {
    color: #ff4a57;
    background: rgba(255, 74, 87, 0.1);
    border-left: 3px solid #ff4a57;
    padding: 12px;
    margin-top: 16px;
    border-radius: 4px;
    display: none;
}

/* Animation for form groups */
.popup-overlay.active .popup-form .form-group {
    animation: fadeInUp 0.5s forwards;
}

.popup-overlay.active .popup-form .form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.popup-overlay.active .popup-form .form-group:nth-child(3) {
    animation-delay: 0.2s;
}

.popup-overlay.active .popup-form .form-group:nth-child(4) {
    animation-delay: 0.3s;
}

.popup-overlay.active .popup-form .form-group:nth-child(5) {
    animation-delay: 0.4s;
}

.popup-overlay.active .popup-form .form-group:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .popup-container {
        padding: 25px 20px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .popup-form .form-group {
        width: 100%;
    }
}
