.py-request {
    padding-top: 80px;
    padding-bottom: 80px;
}

.container-request {
    max-width: 1364px;
    margin-left: auto;
    padding-left: 34px;
}

.request-heading {
    font-size: 32px;
    font-weight: 600;
    line-height: 125%;
    color: black;
    position: relative;
}

.request-heading::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 121px;
    height: 3px;
    background-color: #DB3632;
}

.from-spacing {
    margin-top: 70px;
}

.max-w-721 {
    max-width: 721px;
}

.form-label {
    font-weight: 400;
    font-size: 24px;
    line-height: 125%;
    color: black;
    margin-bottom: 11px !important;
}

/* --- COMMON INPUT STYLES --- */
.common-input {
    width: 100%;
    min-height: 57px;
    background: #D9D9D9;
    border-radius: 20px !important;
    border: none;
    outline: none;
    padding: 0 12px;
}

input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mt-40 {
    margin-top: 40px;
}

.form-textarea {
    resize: none;
    border: none;
    background: #D9D9D9;
    border-radius: 20px;
    min-height: 140px;
    width: 100%;
    padding: 5px 12px;
}

.cursor-pointer {
    cursor: pointer;
}

/* --- BUTTON STYLES --- */
.form-submit-btn {
    max-width: 260px;
    min-height: 69px;
    padding: 17px 0 22px 0;
    border: none;
    background-color: #4A6486;
    border-radius: 50px;
    font-weight: 500;
    font-size: 24px;
    line-height: 100%;
    color: white;
    transition: all 300ms linear;
}

.form-submit-btn:enabled:hover {
    background-color: #4A6486;
}

.form-submit-btn:enabled:active {
    scale: 0.95;
}

.date-wrapper {
    position: relative;
    width: 250px;
}

/* Hide default date icon (for Chrome, Edge, Safari) */
input[type="date"]::-webkit-calendar-picker-indicator {
    width: 32px;
    height: 32px;
    transform: scale(1.1);
}

/* Placeholder Simulation */
.date-picker:before {
    content: "DD-MM-YYYY";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    text-transform: uppercase;
}

.date-picker:valid:before {
    content: "";
}

.form-select, .common-input {
    height: 40px;
    border-radius: 4px;
}
   .common-input-uni {
        width: 100%;
        min-height: 57px;
        background: #D9D9D9;
        border-radius: 20px;
        border: none;
        outline: none;
        padding: 0 12px;
    }
/* --- MEDIA QUERIES --- */
@media (min-width:992px) {
    .mt-30 {
        margin-top: 30px !important;
    }
    .max-w-308 {
        max-width: 336px;
    }
    .common-input {
        max-width: 336px;
        width: 100%;
        min-height: 57px;
        background: #D9D9D9;
        border-radius: 20px;
        border: none;
        outline: none;
        padding: 0 12px;
    }
 
    .common-input.poc-uni {
        width: 100%;
    }
}

@media (min-width:1024px) {
    .request-img {
        width: 434px;
        object-fit: cover;
    }
}

@media (min-width:1200px) {
    .request-img {
        width: unset;
    }
}

@media (max-width:992px) {
    .request-img {
        width: 100%;
        object-fit: cover;
    }
    .from-spacing {
        margin-top: 44px;
    }
    .py-request {
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

@media (max-width:768px) {
    .form-label {
        font-size: 20px;
        margin-bottom: 8px !important;
    }
    .mt-40 {
        margin-top: 17px;
    }
}

@media (max-width:640px) {
    .py-request {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .request-heading {
        font-size: 26px;
    }
    .from-spacing {
        margin-top: 36px;
    }
    .form-submit-btn {
        min-height: 59px;
        max-width: 223px;
    }
}

/* --- 1. VALIDATION ERROR STYLING --- */
/* Red border for invalid fields */
.common-input.wpcf7-not-valid,
.form-textarea.wpcf7-not-valid {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
    transition: border-color 0.3s ease;
}

/* Error text below fields */
span.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 2. Style the Input Border when Error occurs */
.wpcf7-not-valid {
    background-color: #D9D9D9 !important;
}

/* --- 3. CUSTOM SUCCESS MESSAGE STYLING --- */
.cxus-success-message {
    margin-top: 30px;
    padding: 20px;
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
    border-radius: 8px;
    display: none; /* Hidden by default, JS shows it */
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
}

.cxus-success-message i {
    font-size: 24px;
    color: #198754;
}

.cxus-success-message span {
    font-size: 18px;
    font-weight: 600;
}

/* --- 4. THE ANIMATION --- */
.animate-success {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================= */
/* --- ROBUST PHONE LAYOUT FIX (LOCKED) --- */
/* ========================================= */

/* 1. Main Container: Never wrap, keep items in a row */
.phone-input-main {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 57px !important;
    position: relative;
    background-color: #D9D9D9;
    border-radius: 20px;
    overflow: visible !important; /* Allow errors to float outside */
}

/* Support for <p> tags if CF7 adds them */
.phone-input-main p {
    display: flex !important;
    width: 100%;
    margin: 0 !important;
    gap: 0 !important;
}

/* 2. Country Code Wrapper: STRICTLY LOCKED TO 60px */
.phone-input-main .wpcf7-form-control-wrap[data-name="country-code"] {
    width: 60px !important;
    min-width: 60px !important; /* Never smaller */
    max-width: 60px !important; /* Never bigger */
    flex: 0 0 60px !important; /* Do not grow, do not shrink */
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* 3. Phone Number Wrapper: Fill the rest */
.phone-input-main .wpcf7-form-control-wrap[data-name="your-phone"] {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* 4. Country Code Input Style (The '91') */
.phone-input-main input.country-code-input {
    width: 100% !important;
    height: 100% !important;
    border-radius: 20px 0 0 20px !important;
    border: none !important;
    border-right: 1px solid rgba(0,0,0,0.2) !important; /* Separator line */
    background-color: #D9D9D9 !important;
    text-align: center;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* 5. Phone Number Input Style (The typing area) */
.phone-input-main input.phone-input {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 20px 20px 0 !important;
    border: none !important;
    background: transparent !important;
    padding-left: 15px !important;
    margin: 0 !important;
    background-color: #D9D9D9 !important;
}

/* 6. Fix Error Messages to float below (Don't break layout) */
.phone-input-main .wpcf7-not-valid-tip {
    position: absolute !important;
    top: 52px !important;
    left: 0;
    z-index: 100;
    width: 200px;
}

/* Clean up paragraphs */
p {
    margin-bottom: 0;
}

/* --- DROPDOWN STYLE --- */
select.common-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    background-color: #e0e0e0;
    color: #333;
    padding-right: 2rem;
    cursor: pointer;
}

/* Ensure the wrapper doesn't hide anything */
.service-dropdown-container {
    display: block !important;
    visibility: visible !important;
}

/* --- HIDE DEFAULT CF7 MESSAGES --- */
.wpcf7-response-output {
    display: none !important;
}

/* neww */
/* Custom Country Code Alert */
.country-code-alert {
    display: none; /* Hidden by default */
    position: absolute;
    bottom: -22px; /* Push it below the grey box */
    left: 20px;
    color: #dc3545; /* Red color */
    font-size: 12px;
    font-weight: 500;
    z-index: 101;
}

p:has(.form-label) {
  margin-bottom:0;
}