.cpp-contact-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 1);
    font-family: 'Poppins', sans-serif;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
    box-sizing: border-box;
    overflow-y: scroll;
    -ms-overflow-style: none; 
}

.cpp-contact-form-heading {
    font-size: 24px !important;
    font-weight: 600;
    font-family: "Poppins";
    margin-bottom: 22px;
	margin-top: 30px !important;
}

.cpp-contact-form-check {
    display: flex !important;
    padding-left: 0px !important;
    margin-bottom: 0px !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}

.cpp-contact-modal-content {
    background-color: #fff;
    padding: 30px 25px;
    border: none;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    margin: auto;
}

.wrap .cpp-contact-custom-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 15px !important;
}

.cpp-contact-btn-arrow {
    height: 20px !important;
}

.cpp-contact-note {
    font-size: 14px !important;
}

.cpp-contact-close {
    float: right !important;
    color: #aaa !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    padding: 6px 10px !important;
    color: #ffffff;
    font-family: inherit;
    border: 1px none #ffffff;
    border-radius: 0px;
    box-shadow: 1px 1px 3px 0px rgba(2, 2, 2, 0.23);
    text-shadow: 0px 0px 0px rgba(0, 0, 0, 0.23);
	position: relative;
	left: 4px;
}

.cpp-contact-close:hover,
.cpp-contact-close:focus {
    color: #000 !important;
    text-decoration: none !important;
}

/* Shared Form Styling */
.cpp-contact-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    font-family: 'Poppins', sans-serif !important;
}

.cpp-contact-form input,
.cpp-contact-form textarea {
    margin-bottom: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-family: 'Poppins', sans-serif !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    margin-top: 0px !important;
    border-radius: 10px;
    background: #f8f8ff;
    padding: 10px;
    font-weight: 500;
    font-size: 14px;
    color: #a0a0a0;
}

.cpp-contact-form input:focus,
.cpp-contact-form textarea:focus {
    outline: none !important;
    border-color: #252525 !important;
    box-shadow: 0 0 5px rgba(37, 37, 37, 0.3) !important;
}

.cpp-contact-form textarea {
    resize: vertical !important;
    min-height: 100px !important;
    background: #f8f8ff !important;
}

.cpp-contact-form button.cpp-contact-submit-btn {
    background-color: #252525 !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 10px 20px !important;
    border: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    width: auto !important;
    box-shadow: 5px 9px 21.7px rgba(0, 0, 0, 0.10) !important;
    max-width: 200px !important;
    margin: 10px auto 0 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
}

.cpp-contact-form button.cpp-contact-submit-btn:hover {
    background-color: none !important;
    color: #fff !important;
    border: none !important;
}

.cpp-contact-form button.cpp-contact-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    background-color: #252525 !important;
    border: none !important;
}

/* reCAPTCHA v2 Styling */
.cpp-contact-form .g-recaptcha {
    margin: 10px auto !important;
    display: flex !important;
    justify-content: flex-start !important;
}

/* Message Styling with Higher Specificity */
.cpp-contact-form + #cpp-contact-message,
#cpp-contact-form-static + #cpp-contact-message {
    margin-top: 10px !important;
    font-weight: 500 !important;
    text-align: center !important;
    font-family: 'Poppins', sans-serif !important;
    min-height: 24px !important;
    z-index: 10001 !important;
}

.cpp-contact-form + #cpp-contact-message span,
#cpp-contact-form-static + #cpp-contact-message span {
    display: inline-block !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    animation: fadeIn 0.5s ease-in-out !important;
}

.cpp-contact-form + #cpp-contact-message span[style*="color: green"],
#cpp-contact-form-static + #cpp-contact-message span[style*="color: green"] {
    color: green !important;
    background-color: #e6ffe6 !important;
}

.cpp-contact-form + #cpp-contact-message span[style*="color: red"],
#cpp-contact-form-static + #cpp-contact-message span[style*="color: red"] {
    color: red !important;
    background-color: #ffe6e6 !important;
}

/* Static Form Container */
.cpp-contact-static-form {
    background-color: #fff !important;
    padding: 20px !important;
    border: none !important;
    width: 90% !important;
    max-width: 600px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px !important;
    font-family: 'Poppins', sans-serif !important;
}

.cpp-contact-static-form.sticky {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    max-width: 600px !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px !important;
    z-index: 1000 !important;
}

/* Ensure static form inherits popup form styles */
#cpp-contact-form-static {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    font-family: 'Poppins', sans-serif !important;
}

#cpp-contact-form-static input,
#cpp-contact-form-static textarea {
    margin-bottom: 0 !important;
    padding: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-family: 'Poppins', sans-serif !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

#cpp-contact-form-static input:focus,
#cpp-contact-form-static textarea:focus {
    outline: none !important;
    border-color: #252525 !important;
    box-shadow: 0 0 5px rgba(37, 37, 37, 0.3) !important;
}

#cpp-contact-form-static textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

#cpp-contact-form-static button.cpp-contact-submit-btn {
    background-color: #252525 !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 10px 20px !important;
    border: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    width: auto !important;
    box-shadow: 5px 9px 21.7px rgba(0, 0, 0, 0.10) !important;
    max-width: 200px !important;
    margin: 10px auto 0 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
}

#cpp-contact-form-static button.cpp-contact-submit-btn:hover {
    background-color: #fff !important;
    color: #252525 !important;
    border: none !important;
}

#cpp-contact-form-static button.cpp-contact-submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    background-color: #252525 !important;
    border: none !important;
}

.cpp-contact-loading-spinner {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #fff !important;
    border-top: 2px solid #252525 !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-right: 8px !important;
    vertical-align: middle !important;
}

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

.cpp-contact-data-table th,
.cpp-contact-data-table td {
    padding: 12px !important;
    text-align: left !important;
    font-family: 'Poppins', sans-serif !important;
}

.cpp-contact-data-table th {
    background: #f9f9f9 !important;
    font-weight: 600 !important;
}

.cpp-contact-custom-row {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 15px !important;
}

.cpp-contact-custom-row form {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.cpp-contact-custom-row input[type="search"] {
    width: 200px !important;
    max-width: 100% !important;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .cpp-contact-modal-content,
    .cpp-contact-static-form {
        width: 95% !important;
        max-width: 450px !important;
        padding: 14px !important;
    }
    .cpp-contact-form input,
    .cpp-contact-form textarea,
    #cpp-contact-form-static input,
    #cpp-contact-form-static textarea {
        font-size: 14px !important;
        padding: 10px !important;
    }
    .cpp-contact-form button.cpp-contact-submit-btn,
    #cpp-contact-form-static button.cpp-contact-submit-btn {
        font-size: 14px !important;
        padding: 8px 16px !important;
        max-width: 180px !important;
    }
    .cpp-contact-custom-row {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: flex-start !important;
    }
    .cpp-contact-custom-row form {
        width: 100% !important;
    }
    .cpp-contact-custom-row input[type="search"] {
        width: 100% !important;
    }
    .cpp-contact-data-table th,
    .cpp-contact-data-table td {
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .cpp-contact-form-heading {
        font-size: 18px !important;
    }
	.cpp-contact-form-check
	{
	  font-size: 13px !important;

	}
    .cpp-contact-modal-content,
    .cpp-contact-static-form {
        width: 90% !important;
        padding: 12px !important;
        border-radius: 8px !important;
    }
    .cpp-contact-form input,
    .cpp-contact-form textarea,
    #cpp-contact-form-static input,
    #cpp-contact-form-static textarea {
        font-size: 13px !important;
        padding: 8px !important;
    }
    .cpp-contact-form button.cpp-contact-submit-btn,
    #cpp-contact-form-static button.cpp-contact-submit-btn {
        font-size: 13px !important;
        padding: 8px 16px !important;
        max-width: 160px !important;
    }
    .cpp-contact-close {
        font-size: 16px !important;
    }
    .cpp-contact-data-table th,
    .cpp-contact-data-table td {
        padding: 8px !important;
        font-size: 12px !important;
    }
}

@media (min-width: 1200px) {
    .cpp-contact-modal-content,
    .cpp-contact-static-form {
        max-width: 550px !important;
    }
    .cpp-contact-form input,
    .cpp-contact-form textarea,
    #cpp-contact-form-static input,
    #cpp-contact-form-static textarea {
        font-size: 16px !important;
    }
    .cpp-contact-form button.cpp-contact-submit-btn,
    #cpp-contact-form-static button.cpp-contact-submit-btn {
        font-size: 18px !important;
        max-width: 220px !important;
    }
}