/* ============================
file name:- forms.css
	   OVERLAY
	   ============================ */
.cv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cv-overlay.cv-active {
    opacity: 1;
    pointer-events: all;
}

/* ============================
	   MODAL BOX
	   ============================ */
.cv-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 660px;
    padding: 36px 40px 32px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(30px);
    transition: transform 0.35s cubic-bezier(.22, .68, 0, 1.2), opacity 0.3s ease;
    opacity: 0;
    max-height: 92vh;
    overflow-y: auto;
}

.cv-overlay.cv-active .cv-modal {
    transform: translateY(0);
    opacity: 1;
}

/* ============================
	   CLOSE BUTTON
	   ============================ */
.cv-close {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    padding: 10px 25px 10px 25px !important;
}

.cv-close:hover {
    color: #222;
}

/* ============================
	   HEADER
	   ============================ */
.cv-modal-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 6px;
}

.cv-modal-header p {
    font-size: 13.5px;
    color: #666;
    margin-bottom: 16px;
}

.cv-divider {
    height: 1px;
    background: #e4e8ee;
    margin-bottom: 24px;
}

/* ============================
	   FORM ROWS & FIELDS
	   ============================ */
.cv-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cv-row {
    display: flex;
    gap: 16px;
}

.cv-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cv-field--full {
    flex: unset;
    width: 100%;
}

.cv-field label {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.cv-field label span {
    color: #c0392b;
}

.cv-field input[type="text"],
.cv-field input[type="email"],
.cv-field input[type="tel"] {
    border: 1.5px solid #d0d8e4;
    border-radius: 25px;
    padding: 11px 18px;
    font-size: 13.5px;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fafbfd;
}

.cv-field input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
    background: #fff;
}

/* ============================
	   DROPZONE
	   ============================ */
.cv-dropzone {
    border: 1.8px dashed #b0bfcf;
    border-radius: 10px;
    background: #f6f8fb;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    padding: 24px 16px;
    text-align: center;
}

.cv-dropzone:hover,
.cv-dropzone.cv-dragover {
    border-color: #1e3a5f;
    background: #eef2f8;
}

.cv-dropzone p {
    font-size: 14px;
    font-weight: 500;
    color: #1e3a5f;
}

.cv-dropzone a {
    color: #1e3a5f;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
}

.cv-file-name {
    font-size: 12px;
    color: #2ecc71;
    margin-top: 6px;
}

/* ============================
	   CHECKBOX & RECAPTCHA
	   ============================ */
.cv-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    color: #555;
}

.cv-checkbox-row input {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #1e3a5f;
}

.cv-checkbox-row a {
    color: #1e3a5f;
    font-weight: 600;
}

/* ============================
	   SUBMIT BUTTON
	   ============================ */
.cv-submit {
    background: #1e3a5f;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
    margin-top: 4px;
}

.cv-submit:hover {
    background: #162d4a;
    transform: translateY(-1px);
}

.cv-submit:active {
    transform: translateY(0);
}

.cv-error {
    color: red;
    font-size: 12px;
    display: block;
}

.cv-invalid {
    border: 1px solid red !important;
}

.cv-valid {
    border: 1px solid green !important;
}

.cv-message {
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.cv-message.success {
    color: green;
}

.cv-message.error {
    color: red;
}

.cv-dropzone.cv-invalid {
    border: 2px dashed red;
}

#fj-toast-container {
    position: fixed;
    top: 40px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fj-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f6f8;
    border-left: 4px solid #1a3a5c;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #1a2332;
    min-width: 220px;

    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.fj-toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* ICON */
.fj-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fj-toast-icon svg {
    width: 20px;
    height: 20px;
    stroke: #1a3a5c;
    stroke-width: 2;
    fill: none;
}

/* TEXT */
.fj-toast-text {
    font-weight: 500;
}

/* =========================================================
   Upload Job Brief Popup – job-brief-popup.css
   Mirrors the CV upload popup design exactly
   ========================================================= */

/* ── Overlay ── */
.job-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.job-overlay.job-active {
    display: flex;
}

/* ── Modal box ── */
.job-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 40px 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    font-family: 'Segoe UI', sans-serif;
    scrollbar-width: thin;
}

/* ── Close button ── */
.job-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}

.job-close:hover {
    color: #111;
}

/* ── Header ── */
.job-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2e4a;
    margin: 0 0 6px;
}

.job-modal-header p {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px;
}

.job-divider {
    height: 2px;
    background: #e0e4ea;
    margin-bottom: 24px;
}

/* ── Rows ── */
.job-row {
    display: grid;
    gap: 16px;
    margin-bottom: 5px;
}

.job-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
    .job-row--3 {
        grid-template-columns: 1fr;
    }

    .job-modal {
        padding: 24px 20px 28px;
    }
}

/* ── Fields ── */
.job-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.job-field--full {
    margin-bottom: 10px;
}

.job-field label {
    font-size: 13px;
    font-weight: 600;
    color: #1a2e4a;
}

.job-field input,
.job-field select,
.job-field textarea {
    height: 42px;
    border: 1.5px solid #d1d8e0;
    border-radius: 50px;
    padding: 0 16px;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.job-field input:focus,
.job-field select:focus {
    border-color: #1a2e4a;
    box-shadow: 0 0 0 3px rgba(26, 46, 74, 0.08);
}

.job-field input::placeholder {
    color: #aaa;
}

/* Select wrapper for custom arrow */
.job-select-wrapper {
    position: relative;
}

.job-select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
    font-size: 12px;
}

.job-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.job-select-wrapper select:invalid,
.job-select-wrapper select option[value=""] {
    color: #aaa;
}

/* Validation states */
.job-field input.job-invalid,
.job-field select.job-invalid {
    border-color: #e53935;
}

.job-field input.job-valid,
.job-field select.job-valid {
    border-color: #2e7d32;
}

/* ── Drop zone ── */
.job-dropzone {
    border: 1px dashed #c5cdd8;
    border-radius: 10px;
    padding: 45px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: #fafbfc;
}

.job-dropzone:hover,
.job-dropzone.job-dragover {
    border-color: #1a2e4a;
    background: #f0f3f7;
}

.job-dropzone.job-invalid {
    border-color: #e53935;
}

.job-dropzone p {
    margin: 0;
    font-size: 13px;
    color: #5f7089;
}

.job-dropzone a {
    color: #5f7089;
    text-decoration: none;
}

.job-dropzone a:hover {
    text-decoration: underline;
}

.job-file-name {
    margin-top: 8px !important;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
}

/* ── Error messages ── */
.job-error {
    font-size: 11px;
    color: #e53935;
    display: block;
}

/* ── Checkbox ── */
.job-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.job-checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #1a2e4a;
    flex-shrink: 0;
    cursor: pointer;
}

.job-checkbox-row label {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.job-checkbox-row label a {
    color: #1a2e4a;
    font-weight: 600;
    text-decoration: none;
}

.job-checkbox-row label a:hover {
    text-decoration: underline;
}

/* ── reCAPTCHA ── */
.job-recaptcha {
    margin-bottom: 22px;
}

/* ── Submit button ── */
.job-submit {
    width: 100%;
    height: 50px;
    background: #1a2e4a;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.1s;
}

.job-submit:hover {
    background: #243d63;
}

.job-submit:active {
    transform: scale(0.99);
}

.job-submit:disabled {
    background: #8fa0b8;
    cursor: not-allowed;
}

/* ── Toast (shared with CV form, add if not already present) ── */
#fj-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fj-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    min-width: 220px;
}

.fj-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.fj-toast.success {
    border-left: 4px solid #2e7d32;
    color: #1a2e4a;
}

.fj-toast.error {
    border-left: 4px solid #e53935;
    color: #1a2e4a;
}

.fj-toast-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fj-toast-icon.success svg {
    stroke: #2e7d32;
    fill: none;
}

.fj-toast-icon.error svg {
    stroke: #e53935;
    fill: none;
}

.fj-toast-icon svg circle {
    fill: transparent;
}

/* ── Message banner (top of modal) ── */
.job-message {
    display: none;
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 500;
}

.job-message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.job-message.error {
    background: #ffebee;
    color: #c62828;
}

/* ═══════════════════════════════════════
   CUSTOM SECTOR DROPDOWN
═══════════════════════════════════════ */
.job-custom-select {
    position: relative;
    width: 100%;
}

.job-custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    border: 1.5px solid #d1d8e0;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: border-color 0.2s;
    user-select: none;
}

.job-custom-select__trigger.has-value {
    color: #222;
}

.job-custom-select__trigger:hover,
.job-custom-select.open .job-custom-select__trigger {
    border-color: #2c3e6b;
}

.job-custom-select__trigger svg {
    width: 16px;
    height: 16px;
    color: #999;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.job-custom-select.open .job-custom-select__trigger svg {
    transform: rotate(180deg);
}

/* Dropdown list */
.job-custom-select__list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
    list-style: none;
    margin: 0;
}

.job-custom-select.open .job-custom-select__list {
    display: block;
}

.job-custom-select__item {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.job-custom-select__item:hover {
    background: #f0f4ff;
    color: #2c3e6b;
}

.job-custom-select__item.selected {
    background: #2c3e6b;
    color: #fff;
    font-weight: 500;
}

/* Error state */
.job-custom-select.job-invalid .job-custom-select__trigger {
    border-color: #e53935 !important;
}