/* =========================================================
   CONTACT FORM 7 – JOB APPLICATION MODAL (CLEAN)
========================================================= */

/* Hide CF7 screen reader response */
.screen-reader-response {
    display: none;
}

/* Validation message */
.wpcf7-not-valid-tip {
    color: #5429A0;
    font-size: 14px;
    margin-top: 6px;
}

/* =========================================================
   POPUP OVERLAY
========================================================= */

.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

/* =========================================================
   MODAL WRAPPER
========================================================= */

.custom-job-form {
   
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 99991;
    background: #ffffff;
    width: 50%;
    max-height: 94vh;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
     display: none;
}

/* Mobile */
@media (max-width: 767px) {
    .custom-job-form {
        width: 90%;
    }
}

/* =========================================================
   MODAL HEADER (FIXED)
========================================================= */

.modal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    padding: 16px 20px;
    border-bottom: 1px solid #ececec;
    text-align: right;
}

/* Close button */
.close-btn {
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    color: #626270;
}

.close-btn:hover {
    color: #5429A0;
}

/* =========================================================
   MODAL BODY (SCROLL AREA)
========================================================= */

.modal-body {
    overflow-y: auto;
    padding: 20px;
}

/* =========================================================
   FORM TITLE
========================================================= */

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #626270;
}

/* =========================================================
   ROW / COLUMN LAYOUT
========================================================= */

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-col {
    flex: 0 0 100%;
}

/* =========================================================
   LABELS
========================================================= */

.custom-job-form label {
    display: block;
    margin-bottom: 6px;
    font-family: "Onest", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 20px;
    color: #090717;
}

/* =========================================================
   INPUTS / TEXTAREA / SELECT
========================================================= */

.custom-job-form input,
.custom-job-form textarea,
.custom-job-form select {
    width: 100%;
    padding: 14px 16px;
    font-family: "Onest", sans-serif;
    font-size: 18px;
    font-weight: 400;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: #ffffff;
    color: #000;
    outline: none;
    box-shadow: 0px 4px 20px rgba(63, 63, 63, 0.04);
}

.custom-job-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* =========================================================
   PLACEHOLDERS
========================================================= */

.custom-job-form input::placeholder,
.custom-job-form textarea::placeholder {
    font-family: "Onest", sans-serif;
    font-size: 18px;
    color: #626270;
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */

.custom-job-form input[type="submit"] {
    width: auto;
    padding: 16px 32px;
    background: #5429A0;
    border: none;
    border-radius: 12px;
    font-family: "Onest", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.custom-job-form input[type="submit"]:hover {
    opacity: 0.85;
}

/* CF7 override */
input.wpcf7-form-control.wpcf7-submit {
    background-color: #5429A0 !important;
    color: #ffffff !important;
}

/* =========================================================
   FILE UPLOAD
========================================================= */

.wpcf7-file {
    width: auto;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

/* =========================================================
   REQUIRED NOTICE
========================================================= */

.required-notice {
    font-size: 14px;
    color: #303038;
}

.field_required {
    color: red;
}

/* =========================================================
   HONEYPOT
========================================================= */

.honeypot {
    display: none;
}

/* =========================================================
   CF7 CLEANUP
========================================================= */

/* Remove ONLY unwanted auto <br> added by CF7 */
.wpcf7-form br,.hidden-fields-container {
    display: none;
}

/* Reset <p> styling instead of hiding */
.wpcf7-form p {
    margin: 0;
    padding: 0;
}

/* =========================================================
   File input
========================================================= */
.cf7-file-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cf7-file-wrapper input[type="file"] {
    display: none;
}

.cf7-file-btn {
    padding: 10px 16px!important;
    background: #000!important;
    color: #fff;
    border-radius: 4px!important;
    cursor: pointer;
    border: none;
}

.cf7-file-btn:hover {
    opacity: 0.9;
}

.cf7-file-label {
    font-size: 14px;
    color: #666;
}
