/* Enquiry Button in Navigation Menu */
.cs_enquiry_menu_item {
    margin-left: 10px;
}

.cs_enquiry_nav_btn {
    background: #EB0087;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.cs_enquiry_nav_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(235, 0, 135, 0.4);
    background: #d0007a;
}

.cs_enquiry_nav_btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(235, 0, 135, 0.3);
}

/* Enquiry Form Popup Styles */

.cs_enquiry_popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
}

.cs_enquiry_popup_content {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 90%;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: popup-animation 0.3s ease-out;
}

@keyframes popup-animation {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cs_enquiry_popup_header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    background: linear-gradient(90deg, #EB0087 0%, #8A2892 100%);
    border-radius: 10px 10px 0 0;
}

.cs_enquiry_popup_header h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    text-align: center;
}

.cs_enquiry_popup_close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.cs_enquiry_popup_close:hover {
    color: #f0f0f0;
}

.cs_enquiry_popup_body {
    padding: 30px;
}

.cs_enquiry_form {
    width: 100%;
}

.cs_form_group {
    position: relative;
    margin-bottom: 25px;
}

.cs_form_control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.cs_form_control:focus {
    border-color: #EB0087;
    box-shadow: 0 0 0 2px rgba(235, 0, 135, 0.2);
    outline: none;
    background-color: #fff;
}

.cs_form_label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #777;
    pointer-events: none;
    transition: all 0.3s ease;
}

.cs_form_control:focus ~ .cs_form_label,
.cs_form_label.cs_active {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background-color: #fff;
    padding: 0 5px;
    color: #EB0087;
}

textarea.cs_form_control ~ .cs_form_label {
    top: 20px;
}

textarea.cs_form_control:focus ~ .cs_form_label,
textarea.cs_form_control ~ .cs_form_label.cs_active {
    top: -10px;
}

select.cs_form_control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23777" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-top: 12px;
    padding-bottom: 12px;
    color: #333;
}

select.cs_form_control:focus ~ .cs_form_label,
select.cs_form_control:valid ~ .cs_form_label,
select.cs_form_control:not([value=""]):valid ~ .cs_form_label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background-color: #fff;
    padding: 0 5px;
    color: #EB0087;
}

.cs_form_group select.cs_form_control + .cs_form_label {
    top: 12px;
}

.cs_form_submit {
    text-align: center;
    margin-top: 30px;
}

.cs_form_submit .cs_btn {
    padding: 12px 30px;
    border: none;
    background: linear-gradient(90deg, #EB0087 0%, #8A2892 100%);
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.cs_form_submit .cs_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 0, 135, 0.3);
}

.cs_success_message {
    text-align: center;
    padding: 30px 0;
}

.cs_success_message i {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
    display: block;
}

.cs_success_message p {
    font-size: 18px;
    color: #333;
}

/* Loading spinner */
.fa-spinner {
    margin-right: 5px;
    animation: spin 1s infinite linear;
}

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

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.g-recaptcha {
    transform-origin: center;
    -webkit-transform-origin: center;
}

.captcha-error {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none; /* Only shown when there's an error */
}

/* CAPTCHA responsive styles */
@media screen and (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
        -webkit-transform: scale(0.85);
        margin-left: -22px;
    }
}

@media screen and (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.75);
        -webkit-transform: scale(0.75);
        margin-left: -32px;
    }
}

/* Success Popup Styles */
.cs_success_popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.cs_success_popup_content {
    position: relative;
    background: #fff;
    max-width: 500px;
    width: 90%;
    margin: 50px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: popup-animation 0.5s ease-out;
    text-align: center;
    padding: 40px 30px;
}

.cs_success_popup_icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(90deg, #EB0087 0%, #8A2892 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: success-icon-animation 0.5s ease-out 0.3s both;
}

@keyframes success-icon-animation {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.cs_success_popup_icon i {
    color: #fff;
    font-size: 40px;
}

.cs_success_popup_title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.cs_success_popup_message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.cs_success_popup_btn {
    padding: 12px 30px;
    border: none;
    background: linear-gradient(90deg, #EB0087 0%, #8A2892 100%);
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.cs_success_popup_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(235, 0, 135, 0.3);
}

@media screen and (max-width: 768px) {
    .cs_success_popup_content {
        width: 95%;
        margin: 30px auto;
        padding: 30px 20px;
    }

    .cs_success_popup_icon {
        width: 70px;
        height: 70px;
    }

    .cs_success_popup_icon i {
        font-size: 35px;
    }

    .cs_success_popup_title {
        font-size: 20px;
    }

    .cs_success_popup_message {
        font-size: 14px;
    }

    .cs_success_popup_btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Enquiry Button Container */
.cs_mobile_enquiry {
    display: block;
    position: relative;
}

/* Ensure the header layout works on all devices */
.cs_site_header.cs_style1 .cs_main_header_right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Large Desktop (1400px and up) */
@media screen and (min-width: 1400px) {
    .cs_enquiry_nav_btn {
        padding: 12px 25px;
        font-size: 16px;
    }
}

/* Desktop (1200px and up) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .cs_enquiry_nav_btn {
        padding: 11px 22px;
        font-size: 15px;
    }
}

/* Small Desktop and Large Tablets (992px and up) */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    .cs_enquiry_nav_btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Tablets (768px to 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
    /* Hide the enquiry button in the menu on mobile */
    .cs_enquiry_menu_item {
        display: none;
    }

    /* Adjust button size for tablets */
    .cs_enquiry_nav_btn {
        padding: 10px 18px;
        font-size: 14px;
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Large Mobile (576px to 767px) */
@media screen and (min-width: 576px) and (max-width: 767px) {
    .cs_enquiry_nav_btn {
        padding: 9px 16px;
        font-size: 14px;
        position: absolute;
        right: 55px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Medium Mobile (480px to 575px) */
@media screen and (min-width: 480px) and (max-width: 575px) {
    .cs_enquiry_nav_btn {
        padding: 8px 14px;
        font-size: 13px;
        position: absolute;
        right: 55px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Small Mobile (320px to 479px) */
@media screen and (max-width: 479px) {
    .cs_enquiry_nav_btn {
        padding: 7px 12px;
        font-size: 12px;
        position: absolute;
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* Popup styles for mobile */
@media screen and (max-width: 768px) {
    .cs_enquiry_popup_content {
        width: 95%;
        margin: 30px auto;
    }

    .cs_enquiry_popup_header h3 {
        font-size: 20px;
    }

    .cs_enquiry_popup_body {
        padding: 20px;
    }

    .cs_form_control {
        padding: 10px 12px;
        font-size: 14px;
    }

    .cs_form_label {
        font-size: 14px;
    }

    .cs_form_submit .cs_btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

/* Fix for body scroll when popup is open */
body.cs_popup_open {
    overflow: hidden;
}

/* Extra Small Mobile (375px and below) */
@media screen and (max-width: 375px) {
    .cs_enquiry_nav_btn {
        padding: 6px 10px;
        font-size: 11px;
        right: 45px;
    }
}

/* Specific small mobile sizes */
@media screen and (max-width: 390px) {
    .cs_enquiry_nav_btn {
        padding: 6px 10px;
        font-size: 11px;
        right: 45px;
    }
}

@media screen and (max-width: 360px) {
    .cs_enquiry_nav_btn {
        padding: 5px 9px;
        font-size: 10px;
        right: 45px;
    }
}

@media screen and (max-width: 320px) {
    .cs_enquiry_nav_btn {
        padding: 5px 8px;
        font-size: 10px;
        right: 40px;
    }
}
/* Extremely small devices */
@media screen and (max-width: 344px) {
    .cs_enquiry_nav_btn {
        padding: 4px 7px;
        font-size: 9px;
        right: 40px;
    }
}