/* ========================================
   Popup Form Styles
======================================== */

.custom_popup_form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

/* Active state - Popup is visible */
.custom_popup_form.active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

/* ========================================
   Overlay Background (nested under parent)
======================================== */
.custom_popup_form .popup_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ========================================
   Popup Content Box (nested under parent)
======================================== */
.custom_popup_form .popup_content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    /* border-radius: 16px; */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding:15px 10px;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

/* Animate popup content when active */
.custom_popup_form.active .popup_content {
    transform: scale(1) translateY(0);
}

/* ========================================
   Close Button (X) (nested under parent)
======================================== */
.custom_popup_form .popup_close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f3f4;
    color: #5f6368;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom_popup_form .popup_close:hover {
    background: #e8eaed;
    color: #202124;
    /* transform: rotate(90deg); */
}

/* ========================================
   Popup Header (nested under parent)
======================================== */
.custom_popup_form .popup_header {
    text-align: center;
    margin-bottom: 00px;
}

.custom_popup_form .popup_header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin: 0px;
    line-height: normal;
}

.custom_popup_form .popup_header p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
}

/* ========================================
   Form Styles (nested under parent)
======================================== */
.custom_popup_form .popup_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Group - Label + Input wrapper */
.custom_popup_form .form_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom_popup_form .form_group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

/* Input & Textarea Styles */
.custom_popup_form .form_group input,
.custom_popup_form .form_group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #1f2937;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

.custom_popup_form .form_group input::placeholder,
.custom_popup_form .form_group textarea::placeholder {
    color: #9ca3af;
}

/* Focus State */
.custom_popup_form .form_group input:focus,
.custom_popup_form .form_group textarea:focus {
    background: #fff;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Textarea specific */
.custom_popup_form .form_group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========================================
   Submit Button (nested under parent)
======================================== */
.custom_popup_form .submit_btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    background: var(--primary-yellow);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.custom_popup_form .submit_btn:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.custom_popup_form .submit_btn:active {
    transform: translateY(0);
}

/* ========================================
   Scrollbar Styling (nested under parent)
======================================== */
.custom_popup_form .popup_content::-webkit-scrollbar {
    width: 6px;
}

.custom_popup_form .popup_content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom_popup_form .popup_content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.custom_popup_form .popup_content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.custom_popup_form .row.contactFormElements {
    margin: 0 !important;
    padding: 0 !important;
}

.custom_popup_form .contactFormElements label {
	font-size: 14px !important;
}
.custom_popup_form .contactFormElements textarea{
	width: 100% !important;
    outline: none !important;
}

.custom_popup_form  .wpcf7 .contactFormElements span.wpcf7-form-control-wrap.recaptcha {
    transform: scale(0.77);
    -webkit-transform: scale(0.70);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
}

.custom_popup_form .contactFormElements input[type="text"],
.custom_popup_form .contactFormElements input[type="email"],
.custom_popup_form .contactFormElements textarea,
.custom_popup_form .contactFormElements select,
.custom_popup_form .intl-tel-input input[type=tel]
	{
		padding: 10px;
		border: 1px solid #e5e7eb !important;
	}

.custom_popup_form .row.contactFormElements .col-lg-12.col-sm-12.col-xs-12 {
    margin-top: 0 !important;
}

.custom_popup_form .intl-tel-input .flag-container{
   		height: 42px !important;
}

.custom_popup_form .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-3 input, 
.custom_popup_form .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-3 input[type=text], 
.custom_popup_form .intl-tel-input.separate-dial-code.allow-dropdown.iti-sdc-3 input[type=tel],
.custom_popup_form .intl-tel-input input[type=tel] {
    padding-left: 84px;
}

.custom_popup_form input.wpcf7-form-control.wpcf7-submit{
    margin: 0px;
    padding: 10px 30px;
    position: relative;
    top: -10px;
    line-height: normal;
}

.custom_popup_form .wpcf7-not-valid-tip, .custom_popup_form .wpcf7-form label.error {
    font-size: 12px !important;
    color: #ff0000 !important;
    padding: 0px;
}

.custom_popup_form .row.contactFormElements .col-lg-12.col-sm-12.col-xs-12 p label {
    /* background: yellow; */
    padding: 10px 0 0px 0;
    height: auto;
}

.custom_popup_form .row.contactFormElements #file {
    margin-top: -10px;
}

.custom_popup_form .contactCheckbox {
    margin: 10px 0;
}

/* .custom_popup_form .popup_content .col-lg-6.col-sm-6.col-xs-12,
.custom_popup_form .popup_content .col-lg-12.col-sm-12.col-xs-12 {
    padding: 8px;
} */

/* ========================================
   Responsive Styles - Tablet
======================================== */
@media (max-width: 768px) {
    .custom_popup_form .popup_content {
        padding: 30px 25px;
        max-width: 95%;
    }

    .custom_popup_form .popup_header h2 {
        font-size: 24px;
    }

    .custom_popup_form .popup_header p {
        font-size: 14px;
    }
}

/* ========================================
   Responsive Styles - Mobile
======================================== */
@media (max-width: 480px) {
    .custom_popup_form .popup_content {
        width: 95%;
        padding: 25px 20px;
        margin: 10px;
        max-height: 95vh;
        border-radius: 12px;
    }

    .custom_popup_form .popup_close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }

    .custom_popup_form .popup_header {
        margin-bottom: 20px;
    }

    .custom_popup_form .popup_header h2 {
        font-size: 22px;
    }

    .custom_popup_form .popup_form {
        gap: 16px;
    }

    .custom_popup_form .form_group input,
    .custom_popup_form .form_group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .custom_popup_form .submit_btn {
        padding: 14px;
    }
	
}
a.ctapopupform.shortcode-button {
    margin: 0;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 20px;
    line-height: 40px;
    color: #000 !important;
    background: var(--primary-yellow);
    border-radius: 0px;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    -webkit-transition: all .4s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
    text-decoration: none  !important;
    font-family: 'Mulish', sans-serif;
}
a.ctapopupform.shortcode-button:hover {
    background: var(--yellow-hover);
    text-decoration: none;
}
.popup_content  span.wpcf7-not-valid-tip {display: block !important;} 
form.wpcf7-form.invalid span.wpcf7-not-valid-tip {display: block !important;} 
body.page-id-707 .wpcf7 .contactFormElements span.wpcf7-not-valid-tip {display: block !important;} 
.popup_content form.wpcf7-form.invalid .recaptcha_wrap span.wpcf7-not-valid-tip{    font-size: 16px !important;}
button.remove_file.valid {
    background: none !important;
    border: 0 !important;
    color: #000;
    margin-top: 5px;
    font-weight: 600;
}
span.custom-recaptcha-error{
    color: #ff0000 !important;
    font-size: 16px !important;
    margin-bottom: 20px;
       position: relative;
    top: 10px;
}
.contact-section .contactFormElements label.error {
      font-size: 14px !important;
    color: #ff0000 !important
}

body.popup_open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}
