/* ---------- OVERLAY ---------- */
.job-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.65);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

/* ---------- POPUP WINDOW ---------- */
.job-popup-window {
    background: white;
    width: 90%;
    max-width: 1200px;
    padding: 40px;
    border-radius: 12px;
    position: relative;
    animation: popupFade .25s ease-out;
}

@keyframes popupFade {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Close Button */
.job-popup-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #444;
}
button.job-popup-close:hover{
    position: absolute;
    top: 0px;
    right: 0px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #444;
}

.job-popup-content {
    display: flex;
    gap: 40px;
}

/* LEFT SIDE */
.job-popup-left {
    flex: 0 0 48%;
}

#job-popup-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

/* RIGHT SIDE (Form) */
.job-popup-right {
    flex: 0 0 48%;
    background: #6FC7E6;
    padding: 30px;
    border-radius: 12px;
}

/* FORM Styling */
.wpcf7 label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.wpcf7 input,
.wpcf7 textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

/* Submit button */
.wpcf7-submit {
    background: #F4B329;
    color: #fff;
    border: none;
    padding: 14px 28px ;
    border-radius: 3px ;
    font-size: 16px;
    cursor: pointer;
}

/* ---------- DESCRIPTION LARGE (LEFT SIDE) ---------- */
.job-popup-tag {
    position: relative;                 /* referencia para el círculo blanco */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #6FC7E6;
    color: #003049;
    font-size: 14px;
    padding: 6px 16px 6px 18px;
    border-radius: 7px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Pin de ubicación */
.job-popup-tag::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    background: #003049;
    transform: rotate(-45deg);
    display: inline-block;
}

/* Punto blanco dentro del pin */
.job-popup-tag::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    left: 25px;
    top: 50%;
    transform: translate(-50%, -55%);
}

#job-popup-description p {
    margin-bottom: 15px;
    line-height: 1.6em;
    font-size: 16px;
}

#job-popup-description ul,
#job-popup-description ol {
    margin: 15px 0 15px 25px;
}

#job-popup-description li {
    margin-bottom: 10px;
    line-height: 1.6em;
}

#job-popup-description strong {
    font-weight: 700;
}

#job-popup-description h2,
#job-popup-description h3,
#job-popup-description h4 {
    margin: 20px 0 10px;
    font-weight: 700;
}

/*FORM  JOB*/
.container-job-form .row-job-form p, .container-job-form .row-job-form{
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
    gap: 5px; 
    padding: 0px;
    margin: 0px;
}
.container-job-form .row-job-form.displayblock p{
    display: block;
    width: 100%;
}

.container-job-form .row-job-form.displayblock p textarea{resize: none;height: 100px;}

.container-job-form .row-job-form .item-carreer-input p{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 5px;     
}

.container-job-form .row-job-form .item-carreer-input label{
    width: 100%
}

.container-job-form .row-job-form .item-fileup p{
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

/* ==========================
   FILE UPLOAD - CAJA AZUL
   ========================== */

.container-job-form .item-fileup {
    position: relative;
}

.container-job-form .item-fileup .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    position: relative;
}

/* Caja visual */
.container-job-form .item-fileup input[type="file"] {
    width: 100%;
    height: 140px;
    padding: 0; /* quitamos padding para centrar mejor */
    border: 2px dashed #2D97C8;
    border-radius: 10px;
    background: #BEEAFB;
    cursor: pointer;
    color: transparent; /* oculta texto nativo */
    position: relative;
}

/* Ocultar botón de archivo nativo */
.container-job-form .item-fileup input[type="file"]::file-selector-button {
    display: none;
}

/* ---------- CONTENIDO INTERNO DE LA CAJA (icono + texto) ---------- */
.container-job-form .item-fileup .wpcf7-form-control-wrap::before {
    content: "";
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' fill='%23003049' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l6 6h-4v8h-4V8H6l6-6zm-7 16v2h14v-2H5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index:1;
}

/* Texto por defecto */
.container-job-form .item-fileup .wpcf7-form-control-wrap::after {
    content: "Drag & Drop or Choose file to upload\A JPG, PDF, CVS";
    white-space: pre;
    text-align: center;
    font-size: 13px;
    line-height: 1.3em;
    color: #003049;
    font-weight: 600;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Cuando hay archivo cargado → mostrar nombre */
.container-job-form .item-fileup .wpcf7-form-control-wrap[data-file-name]::after {
    content: attr(data-file-name);
    white-space: normal;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #003049;
    font-weight: 700;
}

/* Opcional: icono cambia a "check" */
.container-job-form .item-fileup .wpcf7-form-control-wrap[data-file-name]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' fill='%2300A86B' viewBox='0 0 24 24'%3E%3Cpath d='M20.29 5.71l-11 11a1 1 0 01-1.42 0l-5-5a1 1 0 011.42-1.42L9 14.59l10.29-10.3a1 1 0 011.42 1.42z'/%3E%3C/svg%3E");
}

/* Ajustar labels arriba de la caja */
.container-job-form .item-fileup label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #003049;
}