/* ===========================================
   JP - FRONTEND UNIFICADO PARA JOBPORTAL GT
=========================================== */

/* ===========================================
   FORMULARIOS INLINE Y MODAL
=========================================== */
.jp-form-container {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(10,26,47,0.12);
    color: #0A1A2F !important;
    max-width: 900px;
    margin: 40px auto;
    border-top: 6px solid #6A0DAD;
}

.jp-form-content h2,
.jp-form-content h3,
.jp-form-content label {
    color: #0A1A2F !important;
    font-weight: 600;
}

.jp-form-content h2 {
    font-size: 26px;
    margin-bottom: 24px;
}

.jp-form-content h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.jp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.jp-grid .wide {
    grid-column: span 2;
}

.jp-form-content input,
.jp-form-content select,
.jp-form-content textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid #d1d1d1;
    background: #fafafa !important;
    color: #0A1A2F !important;
    font-size: 15px;
}

.jp-form-content textarea {
    min-height: 120px;
    resize: vertical;
}

.jp-form-content input:focus,
.jp-form-content select:focus,
.jp-form-content textarea:focus {
    border-color: #6A0DAD !important;
    background: #fff !important;
    box-shadow: 0 0 6px rgba(106, 13, 173, 0.25);
}

.jp-btn, .jp-btn-cancel {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.4;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.jp-btn:hover {
    background: #FF7A00 !important;
}

.jp-success {
    background: #e9ffea;
    padding: 12px 16px;
    border-radius: 8px;
    color: #217821;
    border-left: 5px solid #217821;
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* CAMPOS DINÁMICOS */
.jp-form-content .dynamic-field select,
.jp-form-content .dynamic-field input {
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.jp-form-content .dynamic-field button {
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
}

/* ===========================================
   MODAL APLICACIÓN RÁPIDA
=========================================== */
#jp-quick-apply-modal {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    pointer-events: none;
}

#jp-quick-apply-modal.open {
    display: flex;
    pointer-events: auto;
}

#jp-quick-apply-modal .jp-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}

#jp-quick-apply-modal .jp-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    width: 92%;
    max-width: 600px;
    box-shadow: 0 8px 30px rgba(10,26,47,0.12);
    color: #0A1A2F !important;
}

#jp-quick-apply-modal .jp-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

.jp-loading {
    text-align: center;
    padding: 18px 10px;
    color: #6A0DAD;
    font-weight: 700;
}

/* ===========================================
   LISTADO DE VACANTES
=========================================== */
.jp-job-list-container {
    max-width: 950px;
    margin: 40px auto;
}

.jp-job-list-container .jp-section-title {
    color: #6A0DAD;
    font-size: 28px;
    margin-bottom: 6px;
}

.jp-job-list-container .jp-section-subtitle {
    color: #0A1A2F;
    font-size: 15px;
    margin-bottom: 24px;
}

.jp-job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.jp-job-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 28px rgba(10,26,47,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.jp-job-card:hover {
    transform: translateY(-2px);
}

.jp-job-card h3.jp-job-title {
    font-size: 18px;
    margin-bottom: 6px;
    color: #0A1A2F;
}

.jp-job-card span.jp-job-company {
    font-size: 14px;
    color: #6A0DAD;
}

.jp-job-card .jp-job-body p {
    font-size: 13px;
    color: #0A1A2F;
    margin: 4px 0;
}

.jp-job-card .jp-job-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.jp-job-card .jp-btn {
    font-size: 14px;
    padding: 10px 18px;
}

.jp-job-card.compact {
    padding: 16px;
    font-size: 14px;
}

.jp-job-card.compact .jp-job-title {
    font-size: 16px;
}

.jp-job-card.compact .jp-job-body p {
    font-size: 13px;
}

/* ===========================================
   DASHBOARD CANDIDATO - CUADRO DE POSTULACIONES
=========================================== */
.jp-candidate-dashboard {
    max-width: 950px;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(10,26,47,0.12);
    font-family: 'Inter', sans-serif;
    color: #0A1A2F;
}

.jp-candidate-dashboard h2 {
    color: #6A0DAD;
    font-size: 28px;
    margin-bottom: 20px;
}

.jp-candidate-dashboard p {
    font-size: 15px;
    color: #0A1A2F;
    margin-bottom: 12px;
}

/* Contenedor único tipo cuadro para postulaciones */
.jp-postulaciones-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cada postulación dentro del cuadro */
.jp-postulacion-item {
    padding: 16px 20px;
    border-radius: 12px;
    background: #fafafa;
    box-shadow: 0 4px 16px rgba(10,26,47,0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 4px solid #6A0DAD;
}

.jp-postulacion-item h3.jp-job-title {
    font-size: 16px;
    margin-bottom: 4px;
    color: #0A1A2F;
}

.jp-postulacion-item p {
    font-size: 14px;
    color: #0A1A2F;
    margin: 2px 0;
}

.jp-postulacion-item .jp-job-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
}

.jp-postulacion-item .jp-btn {
    font-size: 14px;
    padding: 8px 16px;
}

.jp-postulacion-item .jp-btn.jp-btn-delete {
    background: #FF4C4C !important;
    color: #fff !important;
}

.jp-postulacion-item .jp-btn.jp-btn-delete:hover {
    background: #FF7A00 !important;
}

/* Mensajes de estado */
.jp-candidate-dashboard .jp-success,
.jp-candidate-dashboard .jp-error {
    margin: 16px 0;
}

.jp-cv-field {
    margin-bottom: 20px;
}

/* ===========================================
   PAGINACIÓN JOB LIST
=========================================== */
.jp-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.jp-page-link {
    display: inline-block;
    padding: 8px 14px;
    background: #f4f0fa;
    color: #6A0DAD;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.jp-page-link:hover {
    background: #6A0DAD;
    color: #fff;
}

.jp-page-link.active {
    background: #6A0DAD;
    color: #fff;
    cursor: default;
}

