body.pi-form-modal-open {
    overflow: hidden;
}

.pi-form-modal {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 2147483647 !important;
    box-sizing: border-box !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 18px 14px !important;
    overflow: hidden !important;
    transform: none !important;
}

.pi-form-modal.pi-form-modal--open {
    display: flex !important;
}

.pi-form-modal__overlay {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, .62);
    z-index: 0 !important;
}

.pi-form-modal__dialog {
    position: relative !important;
    z-index: 1 !important;
    width: min(940px, calc(100vw - 28px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    margin: 0 auto !important;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    box-sizing: border-box;
}

.pi-form-modal__close {
    position: sticky;
    top: 0;
    float: right;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    font-size: 24px;
    line-height: 36px;
    cursor: pointer;
    z-index: 2;
}

@media (max-width: 768px) {
    .pi-form-modal {
        padding: 0 !important;
    }

    .pi-form-modal__dialog {
        width: 100%;
        max-height: 100vh;
        min-height: 600px;
        margin: 0 !important;
        border-radius: 0;
        padding: 16px;
        overflow-y: scroll !important;
    }
}

.pi-desktop-block-message {
    padding: 24px;
    border: 1px solid #2F4EE8;
    background: #0f172d;
    border-radius: 12px;
    color: #ffffff !important;
    margin-top: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pi-ai-message {
    background: #0f172d !important;
    margin-top: 8px !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    line-height: 16px !important;
}

.pi-ai-loading {
    background: #f3f4f5 !important;
    border: 1px solid #dcdcde !important;
}

.pi-ai-success {
    background: #edfaef !important;
    border: 3px solid #46b450 !important;
}

.pi-ai-warning {
    background: #fff8e5 !important;
    border: 3px solid #f0c36d !important;
}

.pi-ai-error {
    background: #fcf0f1 !important;
    border: 3px solid #d63638 !important;
}

/***************** Pre image fields *********************************/


/* 1. front image field style */
#field_9_24 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-front-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_9_24 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_9_24 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_9_24 {
    display: none;
}

/* 2. front right image field style */
#field_9_37 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-front-right-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_9_37 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_9_37 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_9_37 {
    display: none;
}

/* 3. right image field style */
#field_9_25 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-right-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_9_25 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_9_25 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_9_25 {
    display: none;
}

/* 4. rear right image field style */
#field_9_27 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-rear-right-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_9_27 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_9_27 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_9_27 {
    display: none;
}

/* 5. rear image field style */
#field_9_41 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-rear-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_9_41 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_9_41 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_9_41 {
    display: none;
}

/* 6. rear left image field style */
#field_9_43 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-rear-left-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_9_43 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_9_43 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_9_43 {
    display: none;
}

/* 7. left image field style */
#field_9_26 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-left-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_9_26  input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_9_26  input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_9_26  {
    display: none;
}

/* 8 front left image field style */
#field_9_39 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-front-left-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_9_39  input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_9_39  input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_9_39  {
    display: none;
}


/***************** Return image fields *********************************/


/* 1. front image field style */
#field_10_24 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-front-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_10_24 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_10_24 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_10_24 {
    display: none;
}

/* 2. front right image field style */
#field_10_38 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-front-right-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_10_38 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_10_38 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_10_38 {
    display: none;
}

/* 3. right image field style */
#field_10_25 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-right-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
   background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_10_25 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_10_25 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_10_25 {
    display: none;
}

/* 4. rear right image field style */
#field_10_40 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-rear-right-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_10_40 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_10_40 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_10_40 {
    display: none;
}

/* 5. rear image field style */
#field_10_27 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-rear-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_10_27 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_10_27 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_10_27 {
    display: none;
}

/* 6. rear left image field style */
#field_10_42 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-rear-left-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_10_42 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_10_42 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_10_42 {
    display: none;
}

/* 7.left image field style */
#field_10_26 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-left-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_10_26 input[type="file"]::file-selector-button:hover {
    border-color: #666;
   background-color: #fff;
}

#field_10_26 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_10_26 {
    display: none;
}

/* 8. front left image field style */
#field_10_44 input[type="file"]::file-selector-button {
    background: url('/wp-content/uploads/2026/07/car-front-left-silhouette.jpg') no-repeat center;
    background-size: contain;
   width:100%;
    height: 200px;  /* Adjust size as needed */
    border: 2px dashed #ccc; /* Optional: adds a 'dropzone' look */
    border-radius: 10px;
    color: transparent; /* Hides the "Choose File" text */
    cursor: pointer;
   background-color: #fff;
    transition: all 0.3s ease;
}

/* 2. Hover effect to make it feel interactive */
#field_10_44 input[type="file"]::file-selector-button:hover {
    border-color: #666;
    background-color: #fff;
}

#field_10_44 input[type="file"] {
    font-size: 0;
    height: 200px;
    width: 100%;
    border: 0px;
    box-shadow: none;
}


#gfield_upload_rules_10_44 {
    display: none;
}

.pi-document-links ul li { list-style:none !important; }

/* Photo Inspection order card and PDF links */
.pi-order-actions {
    margin-top: 24px;
    clear: both;
}

.pi-inspection-card {
    border: 1px solid #1A17AE;
    padding: 18px;
    margin-bottom: 18px;
    border-radius: 10px;
    background: transparent;
}

.pi-inspection-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.pi-document-links {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #1A17AE;
    border-radius: 8px;
    background: transparent;
}

.pi-document-links h4 {
    margin: 0 0 10px;
}

.pi-document-links ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pi-document-links a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    background: #2F4EE8;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.pi-document-links a:hover,
.pi-document-links a:focus {
    opacity: 0.9;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .pi-document-links ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .pi-document-links ul {
        grid-template-columns: 1fr;
    }

    .pi-inspection-card {
        padding: 14px;
    }
}
/* Force form labels to be visible on the white modal */
.pi-form-modal__dialog .gform_wrapper .gfield_label,
.pi-form-modal__dialog .gform_wrapper .gsection_title,
.pi-form-modal__dialog .gform_wrapper .gfield_description {
    color: #043679 !important;
    font-weight: 600 !important;
}
/* =========================================
   FORCE BUTTON TEXT WHITE (PLUGIN OVERRIDE)
   ========================================= */
html body button.pi-open-form {
    color: #ffffff !important;
}
/* Fix for AI Checking Message text color */
.pi-checking-message,
.pi-success,
.pi-message {
    color: #0f172d !important; 
}
