/* Enquire Now Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.custom-modal.show {
    display: flex !important;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background-color: #fefefe;
    padding: 40px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.custom-modal.show .custom-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.close-modal {
    color: #000;
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 34px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s, transform 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--brand-orange);
    text-decoration: none;
    cursor: pointer;
    transform: rotate(90deg);
}

.formheading {
    font-family: 'Ajensonpro', serif;
    font-size: 2vw;
    color: #212529;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .embedded-enquiry-form-section .modal-input {
        font-size: 14px !important;
    }

    .formheading {
        font-size: 25px !important;
    }
}

/* Modal Internal Form Overrides */
.enquire-form .modal-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #000000;
    padding: 10px 0;
    margin-bottom: 25px;
    font-family: 'Rubik', sans-serif;
    font-size: 1vw;
    background: transparent;
    outline: none;
    color: #000;
}

.enquire-form .modal-input::placeholder {
    color: #000;
}

.enquire-form .phone-input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
    margin-bottom: 25px;
}

.enquire-form .flag-prefix {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Rubik', sans-serif;
    font-size: 1vw;
    color: #000;
}

.enquire-form .flag-prefix img {
    width: 20px;
}

.enquire-form .phone-input-group input {
    border: none;
    width: 100%;
    padding: 10px 0;
    background: transparent;
    outline: none;
    font-family: 'Rubik', sans-serif;
    font-size: 0.8vw;
}

.enquire-form .round_btn, .enquire-form1 .round_btn {
    font-size: 1vw !important;
    padding: 10px 30px !important;
    border-radius: 0px !important;
    margin-top: 10px;
    justify-content: center;
    font-weight: 400;
    background-color: var(--brand-orange) !important;
    color: #fff;
    border: none;
    transition: all 0.3s ease;
}

.enquire-form .round_btn:hover,
.enquire-form1 .round_btn:hover {
    background-color: var(--brand-orange) !important;
    transform: scale(1.05) !important;
}

.error-msg {
    color: red;
    font-size: 11px;
    margin-top: -20px;
    margin-bottom: 10px;
    display: none;
    text-align: left;
    font-family: 'Rubik', sans-serif;
}

.privacy_policy-error {
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}

.contact-form-minimal .error-msg {
    margin-top: 5px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {

    .enquire-form .modal-input,
    .enquire-form .flag-prefix,
    .enquire-form .phone-input-group input {
        font-size: 13px;
    }

    .enquire-form .round_btn {
        font-size: 13px !important;
    }
}

/* Custom Checkbox Styling */
.chk-container {
    display: flex;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 13px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    line-height: 1.4;
    align-items: center;
    min-height: 22px;
}

/* Hide the browser's default checkbox */
.chk-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    border: 1px solid #ccc;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* On mouse-over, add a border color */
.chk-container:hover input ~ .checkmark {
    border-color: var(--brand-orange);
}

/* When the checkbox is checked, keep the border */
.chk-container input:checked ~ .checkmark {
    border-color: var(--brand-orange);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.chk-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator (square inside) */
.chk-container .checkmark:after {
    left: 3px;
    top: 3px;
    width: 10px;
    height: 10px;
    background: var(--brand-orange);
}
