/* Hide popup by default */
.contact-popup.d_none {
    display: none;
}

/* Fullscreen overlay */
.contact-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* dark semi-transparent overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Centered popup content */
.contact-popup_content {
    background: #fff;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    top: 40%;
    left: 35%;
    padding: 25px 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: absolute;
    animation: popupFadeIn 0.3s ease forwards;
}

/* Popup title */
.contact-popup__title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Close button */
.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.popup-close::before,
.popup-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
}

.popup-close::before {
    transform: rotate(45deg);
}

.popup-close::after {
    transform: rotate(-45deg);
}

/* Input fields */
.floating-label {
    position: relative;
    margin-bottom: 20px;
}

.floating-label input {
    width: 100%;
    padding: 10px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.floating-label label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #aaa;
    pointer-events: none;
    transition: all 0.2s ease;
}

.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label,
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label {
    top: -8px;
    left: 8px;
    font-size: 12px;
    color: #ccc;
    background: #fff;
    padding: 0 4px;
}

/* Error text */
.text-error {
    color: red;
    font-size: 12px;
    margin-top: 4px;
}

/* Red submit button */
.btn.reviews-send-btn {
    width: 100%;
    padding: 10px;
    background-color: #ed1b2f; /* red color */
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.btn.reviews-send-btn:hover {
    background-color: #c0392b;
}
@media screen and (max-width: 991px) {
    .contact-popup_content {
        top:25%;
        left:25%;
    }
}

/* Popup animation */
@keyframes popupFadeIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}