/* Enhanced Popup Styles */
.luxury-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    padding: 20px;
    box-sizing: border-box;
}

.luxury-popup {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    padding: 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
}

.popup-header h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: white;
    margin: 0;
    font-size: 1.4rem;
}

.popup-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-body {
    padding: 24px;
}

.popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 600;
}

.popup-subtitle {
    color: #666;
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.popup-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.popup-form .form-control:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
    outline: none;
}

.phone-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.country-code-select {
    flex: 0 0 140px;
    position: relative;
}

.country-code-select::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 0.8rem;
}

/* .country-code-select select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    appearance: none;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
} */

#popupOverlay .country-code-select select {
    width: 100%;
    background: transparent;
    /* border: none; */
   border: 2px solid #e9ecef;
    border-radius: 0;
    padding: 12px 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
}

#popupOverlay .country-code-select select:focus {
    border-color: #b8860b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
     border: 2px solid #b8860b;
}

.phone-number-input {
    flex: 1;
}

.popup-footer {
    padding: 20px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    background: #f8f9fa;
}

.btn-luxury-primary {
    background: linear-gradient(135deg, #b8860b, #daa520);
    border: none;
    color: white;
    padding: 12px 32px;
    /* border-radius: 8px; */
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}
#popupOverlay .btn-luxury-primary {
   margin-top: 30px!important;
}


.btn-luxury-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.3);
}

/* Popup Types */
.popup-type-project .popup-header {
    background: linear-gradient(135deg, #b8860b, #daa520);
}

.popup-type-success .popup-body {
    text-align: center;
    padding: 40px 24px;
}

.popup-type-success .popup-title {
    color: #28a745;
    margin-bottom: 16px;
}

.popup-type-success .popup-subtitle {
    color: #666;
    font-size: 1rem;
}

/* Field Errors */
.field-error {
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* --------------------------------------------------------------------------------- */


        /* Popup overlay */
        .luxury-popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        .luxury-popup {
            background-color: white;
            /* padding: 20px; */
            border-radius: 8px;
            max-width: 500px;
            width: 100%;
        }
        .luxury-popup-overlay.active {
            display: flex;
        }
        .popup-close {
            background: transparent;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }
        .luxury-popup-overlay .popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .luxury-popup-overlay .popup-body {
            margin-top: 20px;
        }

        /* ---- */

 



/* Responsive Design */
@media (max-width: 768px) {
    .luxury-popup-overlay {
        padding: 10px;
    }
    
    .luxury-popup {
        max-height: 95vh;
    }
    
    .popup-header,
    .popup-body,
    .popup-footer {
        padding: 20px;
    }
    
    .phone-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .country-code-select {
        flex: 1;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
}

/* Scrollbar Styling */
.luxury-popup::-webkit-scrollbar {
    width: 6px;
}

.luxury-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.luxury-popup::-webkit-scrollbar-thumb {
    background: #b8860b;
    border-radius: 3px;
}

.luxury-popup::-webkit-scrollbar-thumb:hover {
    background: #daa520;
}