/* --- 1. GLOBAL & RESET STYLES --- */
:root {
    --primary-color: #007bff;
    /* Biru cerah untuk tombol dan link */
    --primary-hover-color: #0056b3;
    /* Biru lebih gelap saat hover */
    --text-color: #333;
    /* Warna teks utama */
    --border-color: #ddd;
    /* Warna border yang soft */
    --background-light: #f9f9f9;
    /* Latar belakang untuk section */
    --font-family: 'Roboto', sans-serif;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 10px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- 2. HEADER & SHARED ELEMENTS --- */
.main-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.separator {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 2rem 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* --- 3. INDEX PAGE (Job List) --- */
#job-list-container {
    display: grid;
    gap: 1rem;
}

.job-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.job-card .job-title {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
}

.job-card .job-details {
    color: #666;
}

.job-card .job-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.job-card:hover .job-arrow {
    transform: translateX(5px);
}

/* --- 4. DETAIL PAGE & APPLICATION FORM --- */
#job-detail-container h3 {
    margin-top: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.form-section {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

#application-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group input[type="file"] {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

#submit-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

#submit-button:hover {
    background-color: var(--primary-hover-color);
}

#submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#form-status {
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}


/* --- 5. RESPONSIVE STYLES (Untuk Tablet ke Atas) --- */
@media (min-width: 768px) {
    .container {
        padding: 40px;
    }

    /* Membuat form menjadi 2 kolom di layar lebar */
    #application-form {
        grid-template-columns: 1fr 1fr;
        /* Dua kolom sama besar */
        gap: 2rem;
    }

    /* Beberapa elemen form yang butuh lebar penuh */
    .form-group:has(#alamat),
    .form-group:has(#alasan_melamar) {
        grid-column: 1 / -1;
        /* Mengambil lebar penuh 2 kolom */
    }

    #submit-button {
        grid-column: 1 / -1;
        /* Tombol juga mengambil lebar penuh */
    }
}