/* =========================================================
   UDJ APPLY FORM
========================================================= */

.udj-apply-page,
.udj-apply-form {
    box-sizing: border-box;
}

.udj-apply-form {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0;
    font-family: "Poppins", sans-serif;
    color: #1d3665;
}


/* =========================================================
   ALERTS
========================================================= */

.udj-alert,
.udj-success,
.udj-warning {
    max-width: 900px;
    margin: 30px auto;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.6;
}

.udj-alert {
    background: #fff3f3;
    border: 1px solid #f0caca;
    color: #a00000;
}

.udj-success {
    background: #eefaf3;
    border: 1px solid #b8e4c8;
    color: #18733a;
}

.udj-warning {
    background: #fff8e8;
    border: 1px solid #f0d58a;
    color: #8a6500;
}


/* =========================================================
   REVIEW CARD
========================================================= */

.udj-review-card {
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(29, 54, 101, 0.06);
}

.udj-review-card h2 {
    margin: 0 0 25px;
    color: #1d3665;
    font-size: 25px;
    font-weight: 700;
}

.udj-review-card p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #52627a;
}

.udj-review-card p:last-child {
    margin-bottom: 0;
}

.udj-review-card strong {
    color: #1d3665;
}


/* =========================================================
   FORM FIELD
========================================================= */

.udj-field {
    margin-bottom: 22px;
}

.udj-field label {
    display: block;
    margin-bottom: 8px;
    color: #1d3665;
    font-size: 15px;
    font-weight: 600;
}

.udj-field input[type="text"],
.udj-field input[type="email"],
.udj-field input[type="date"],
.udj-field input[type="number"],
.udj-field textarea,
.udj-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid #d9dfe9;
    border-radius: 9px;
    background: #ffffff;
    color: #26364f;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.udj-field input[type="text"]:focus,
.udj-field input[type="email"]:focus,
.udj-field input[type="date"]:focus,
.udj-field input[type="number"]:focus,
.udj-field textarea:focus,
.udj-field select:focus {
    border-color: #1d3665;
    box-shadow: 0 0 0 3px rgba(29, 54, 101, 0.08);
}


/* =========================================================
   READONLY FIELDS
========================================================= */

.udj-field input[readonly] {
    background: #f6f8fb;
    color: #53627a;
    cursor: not-allowed;
}


/* =========================================================
   TEXTAREA
========================================================= */

.udj-field textarea {
    min-height: 160px;
    resize: vertical;
}


/* =========================================================
   RESUME CARD
========================================================= */

.udj-apply-form .udj-review-card p {
    margin-bottom: 0;
}


/* =========================================================
   CHECKBOX
========================================================= */

.udj-field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: #52627a;
}

.udj-field input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: #a9248e;
    flex: 0 0 auto;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.udj-apply-form .udj-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    padding: 14px 28px;
    margin-top: 8px;
    border: 0;
    border-radius: 9px;
    background: #a9248e;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                background 0.2s ease;
}

.udj-apply-form .udj-btn:hover {
    background: #921d7b;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(169, 36, 142, 0.22);
}

.udj-apply-form .udj-btn:active {
    transform: translateY(0);
}


/* =========================================================
   FORM SPACING
========================================================= */

.udj-apply-form > .udj-field:first-of-type {
    margin-top: 28px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .udj-apply-form {
        width: calc(100% - 30px);
        margin: 25px auto 50px;
    }

    .udj-review-card {
        padding: 22px 20px;
        border-radius: 13px;
    }

    .udj-review-card h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .udj-field {
        margin-bottom: 18px;
    }

    .udj-field input[type="text"],
    .udj-field input[type="email"],
    .udj-field input[type="date"],
    .udj-field input[type="number"],
    .udj-field textarea,
    .udj-field select {
        padding: 12px 13px;
        font-size: 14px;
    }

    .udj-apply-form .udj-btn {
        width: 100%;
        min-width: 0;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .udj-apply-form {
        width: calc(100% - 20px);
    }

    .udj-review-card {
        padding: 18px 16px;
    }

    .udj-review-card h2 {
        font-size: 20px;
    }

    .udj-field label {
        font-size: 14px;
    }

}

/* =========================================================
   CONFIRMATION CHECKBOX - FINAL
========================================================= */

.udj-apply-form .udj-confirm-field .udj-confirm-label {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;

    width: auto !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 10px !important;

    cursor: pointer;
    color: #1d3665 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;

    white-space: nowrap !important;
}

.udj-apply-form .udj-confirm-field .udj-confirm-label input[type="checkbox"] {
    display: inline-block !important;

    width: 18px !important;
    height: 18px !important;

    min-width: 18px !important;
    max-width: 18px !important;

    flex: 0 0 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    cursor: pointer;
    accent-color: #a9248e;
}

.udj-apply-form .udj-confirm-field .udj-confirm-label span {
    display: inline !important;

    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;

    white-space: nowrap !important;
}