/* Import Font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #007bff; /* Biru cerah, untuk link/tombol */
    --secondary-color: #ff6f61; /* Coral, untuk aksen */
    --background-light: #f4f7f6;
    --card-background: #ffffff;
    --text-dark: #333;
    --border-light: #ddd;
    --shadow-light: rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-background);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
}

/* --- HEADER STYLES --- */
.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
}

/* Container untuk Logo dan Teks Judul (BARU) */
.header-content {
    display: flex; /* Menggunakan Flexbox untuk sejajar */
    align-items: center; /* Menjaga vertikal sejajar di tengah */
    justify-content: center; /* Pusatkan secara horizontal */
    margin-bottom: 10px;
}

.school-logo {
    width: 80px; /* Ukuran logo yang proporsional */
    height: auto;
    margin-right: 15px; /* Jarak antara logo dan teks */
}

.header-text {
    text-align: left; /* Teks judul rata kiri */
}

.form-header h1 {
    color: var(--primary-color);
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 0px;
}

.form-header p {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 0;
    margin-bottom: 10px;
}

.form-header h2 {
    color: var(--text-dark);
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 15px;
}

.form-header h3 {
    color: var(--secondary-color);
    font-size: 1.2em;
    font-weight: 400;
}

/* --- SECTION STYLES --- */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--border-light);
}

.section-title .icon {
    font-size: 1.5em;
    margin-right: 10px;
}

.section-title h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- LAYOUT GRID --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px; /* Ditingkatkan untuk jarak yang lega */
}

.full-width {
    grid-column: span 2;
}

/* Khusus untuk Tempat & Tanggal Lahir */
.form-group:nth-child(4) {
    display: flex;
    flex-direction: column;
}
.form-group:nth-child(4) input {
    margin-top: 5px; 
}

/* Penyesuaian Alamat Lengkap */
.address-line input {
    flex-grow: 1;
}

.form-group .inline-input input[type="number"] {
    width: 65px; 
}

/* --- FORM GROUP STYLES (Label & Input) --- */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group input[type="number"] {
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Grouping untuk radio dan checkbox */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.radio-group label, .checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: var(--secondary-color);
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

/* Input dengan Prefix (Rp.) */
.input-prefix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}

.input-prefix span {
    padding: 10px;
    background-color: #eee;
    font-weight: 600;
    color: var(--text-dark);
}

.input-prefix input {
    border: none;
    flex-grow: 1;
    border-radius: 0 8px 8px 0;
}

/* Input Inline (Anak ke) */
.inline-input {
    display: flex;
    align-items: center;
    gap: 10px;
}
.inline-input input[type="number"] {
    width: 65px !important;
    padding: 8px 5px; 
    text-align: center;
}

/* CATATAN */
.note {
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 10px;
    border-left: 3px solid var(--primary-color);
    padding-left: 10px;
}
.important-note {
    color: var(--secondary-color);
    font-weight: 600;
    border-left: 3px solid var(--secondary-color);
}

/* DATA ORANG TUA Sub-Header */
.form-section h4 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 1px solid #ffefe0;
    padding-bottom: 5px;
}
.mt-40 {
    margin-top: 40px;
}

/* KEAHLIAN PILIHAN RADIO (BARU) */
.keahlian-pilihan {
    flex-direction: column; 
    gap: 12px;
}

.keahlian-pilihan .radio-item {
    background: #fff0f0; 
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    transition: background 0.3s;
}

.keahlian-pilihan .radio-item:hover {
    background: #ffe3e3;
}

.keahlian-pilihan input[type="radio"] {
    accent-color: var(--secondary-color);
}


/* --- STYLES UNTUK BERKAS UPLOAD (BARU) --- */

.document-upload-list {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.upload-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px dashed var(--primary-color);
    border-radius: 10px;
    background-color: #f7fcff; 
}

.upload-item label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1em;
}

.upload-item input[type="file"] {
    padding: 10px;
    background-color: var(--card-background);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
}

.note-optional {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
}

.mt-20 {
    margin-top: 20px;
}

/* --- FOOTER FORM --- */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
    padding-top: 20px;
}

.signature-area {
    text-align: center;
}

.signature-area p {
    font-weight: 600;
    margin-bottom: 5px;
}

.signature-box {
    width: 180px;
    height: 80px;
    border: 1px dashed var(--text-dark);
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    font-size: 0.8em;
    color: #888;
}

.small-input {
    width: 150px;
    border: none;
    border-bottom: 1px solid var(--text-dark);
    text-align: center;
    font-weight: 600;
}

/* --- TOMBOL SUBMIT --- */
.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.submit-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .full-width {
        grid-column: span 1;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .school-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .header-text {
        text-align: center;
    }

    .form-footer {
        flex-direction: column;
        align-items: center;
    }

    .signature-area {
        margin-top: 20px;
    }
}

/* --- NOTIFIKASI ERROR (Untuk dipasang di index.html) --- */
.error-notification {
    max-width: 900px;
    margin: 20px auto;
    background-color: #f8d7da; /* Latar merah muda */
    color: #721c24; /* Teks merah tua */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    font-weight: 600;
    text-align: center;
}
/* Tambahkan bagian ini di style.css Anda */
.header-image-banner {
    width: 100%; /* Membuat gambar mengisi seluruh lebar header */
    height: auto; /* Mempertahankan aspek rasio gambar */
    display: block;
    margin-bottom: 20px; /* Jarak antara gambar dan form */
    border-radius: 15px; /* Opsional: memberikan sudut melengkung */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
/* Anda juga bisa menghapus atau mengomentari style lama untuk .form-header, .header-content, dll. */