/* ============================================================
   JANNATA GROUP — PENDAFTARAN KERJA PAGE STYLESHEET
   Figma Spec Pixel-Perfect Implementation
   Mobile (<768px), Tablet (768px-1023px), Desktop (>=1024px)
   ============================================================ */

.pk-page-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding: 120px 24px 80px;
    background: linear-gradient(180deg, #F9F9F9 0%, #F9F9F9 100%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.pk-header-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.pk-header-tag {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #204093;
    margin: 0;
}

.pk-header-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 32px;
    line-height: 44px;
    color: #000000;
    margin: 0;
}

.pk-header-line {
    width: 301px;
    height: 0px;
    border: none;
    border-top: 2px solid #0C45B5;
    margin: 4px 0 0 0;
    box-sizing: border-box;
}

/* Card Container */
.pk-form-card {
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(0deg, #F8FAFC 0%, #F1F5F9 100%);
    border-radius: 48px;
    padding: 36px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.pk-form-card form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.pk-section-title {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 36px;
    color: #1E2939;
    margin: 0;
}

/* Form Grids */
.pk-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.pk-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.pk-form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
}

.pk-label {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #364153;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.pk-req {
    color: #DB2225;
    font-weight: 600;
}

.pk-input,
.pk-select,
.pk-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 0.8px solid #D1D5DC;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08), 0px 1px 2px -1px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333333;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pk-input {
    height: 48px;
    padding: 8px 14px;
}

.pk-input::placeholder,
.pk-textarea::placeholder {
    color: #99A1AF;
    font-family: 'Inter', sans-serif;
}

.pk-input:focus,
.pk-select:focus,
.pk-textarea:focus {
    border-color: #0C45B5;
    box-shadow: 0 0 0 3px rgba(12, 69, 181, 0.15);
}

.pk-textarea {
    min-height: 98px;
    padding: 12px 14px;
    line-height: 20px;
    resize: vertical;
}

/* Custom Dropdown Select */
.pk-select-wrap {
    position: relative;
    width: 100%;
}

.pk-select {
    height: 48px;
    padding: 8px 36px 8px 14px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-color: #FFFFFF;
}

.pk-select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 16px;
    height: 16px;
    stroke: #4A5565;
}

/* Custom File Upload */
.pk-file-upload-wrap {
    position: relative;
    width: 100%;
}

.pk-file-upload-box {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    border: 0.8px solid #D1D5DC;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08), 0px 1px 2px -1px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pk-file-upload-box:hover {
    border-color: #0C45B5;
}

.pk-file-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #99A1AF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 85%;
}

.pk-file-btn-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #0C45B5;
    background: rgba(12, 69, 181, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    flex-shrink: 0;
}

.pk-file-input-real {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.pk-file-subtext {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #6A7282;
    margin: 4px 0 0 0;
}

/* Divider */
.pk-divider {
    box-sizing: border-box;
    width: 100%;
    height: 0px;
    border: none;
    border-top: 0.8px solid #E5E7EB;
    margin: 8px 0;
}

/* Agreement Checkbox */
.pk-agreement-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.pk-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 4px;
    border: 1px solid #767676;
    cursor: pointer;
    accent-color: #0075FF;
    margin: 0;
}

.pk-agreement-label {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #364153;
    margin: 0;
}

.pk-red-link {
    color: #DB2225;
    text-decoration: none;
    font-weight: 500;
}

.pk-red-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.pk-submit-btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 14px 20px;
    width: 100%;
    height: 51px;
    background: #204093;
    border-radius: 100px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #FFFFFF;
    cursor: pointer;
    margin-top: 12px;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pk-submit-btn:hover {
    background: #0A3995;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(10, 57, 149, 0.3);
}

.pk-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation Alert & Error messages */
.pk-error-msg {
    font-size: 12px;
    color: #DB2225;
    margin-top: 2px;
}

.pk-input.is-invalid,
.pk-select.is-invalid,
.pk-textarea.is-invalid {
    border-color: #DB2225 !important;
}

.pk-success-alert {
    background: #EBFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .pk-page-section {
        padding: 100px 32px 60px;
    }

    .pk-form-card {
        padding: 32px 28px;
        border-radius: 36px;
    }

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

    .pk-grid-3 .pk-form-group:last-child {
        grid-column: span 2;
    }

    .pk-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .pk-page-section {
        padding: 90px 16px 40px;
    }

    .pk-header-wrap {
        gap: 12px;
        margin-bottom: 28px;
    }

    .pk-header-tag {
        font-size: 15px;
    }

    .pk-header-title {
        font-size: 24px;
        line-height: 32px;
    }

    .pk-header-line {
        width: 200px;
    }

    .pk-form-card {
        padding: 24px 16px;
        border-radius: 28px;
        gap: 20px;
    }

    .pk-section-title {
        font-size: 20px;
        line-height: 28px;
    }

    .pk-grid-3,
    .pk-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pk-agreement-row {
        align-items: flex-start;
        gap: 10px;
    }

    .pk-agreement-label {
        font-size: 13px;
        line-height: 18px;
    }

    .pk-submit-btn {
        height: 48px;
        font-size: 15px;
    }
}
