:root {
    --primary-color: #27ae60;
    --secondary-color: #2c3e50;
    --bg-color: #f0f4f8;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #7f8c8d;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    margin: 0;
    padding: 40px 20px;
    color: var(--text-main);
}

.registration-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.modern-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    color: var(--secondary-color);
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.form-header p {
    color: var(--text-muted);
    margin-top: 5px;
}

.form-section {
    margin-bottom: 35px;
    padding: 20px;
    border-radius: 12px;
    background: #fafafa;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.section-title h3 {
    margin: 0;
    font-size: 18px;
    color: var(--secondary-color);
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Mengatur input RT/RW agar lebih kecil berjejer */
.input-group.mini {
    grid-column: span 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

input[type="text"],
input[type="date"],
input[type="file"] {
    padding: 12px 15px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.file-input {
    background: #fff;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #219150;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive untuk HP */
@media (max-width: 600px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
    .modern-form {
        padding: 25px;
    }
    .input-group.mini {
        grid-column: span 1;
    }
}

/* Perndaftaran */

/* Import font profesional */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
    --primary: #27ae60;
    --primary-dark: #1e8449;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.registration-wrapper {
    width: 100%;
    max-width: 900px; /* Lebar maksimal di desktop */
    margin: 0 auto;
}

.modern-form {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-header h2 {
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0 0 8px 0;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

.form-section {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.section-title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* GRID SISTEM: Default Mobile (1 Kolom) */
.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-left: 2px;
}

input[type="text"],
input[type="date"],
input[type="file"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

/* File Input Styling */
input[type="file"] {
    padding: 8px;
    font-size: 0.9rem;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(39, 174, 96, 0.3);
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(39, 174, 96, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* --- MEDIA QUERIES UNTUK TABLET & DESKTOP --- */
@media (min-width: 768px) {
    body {
        padding: 40px;
    }

    .modern-form {
        padding: 40px;
    }

    /* Di Desktop, input-grid menjadi 2 kolom */
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* RT & RW berjejer di satu baris (3 kolom dalam satu grid row) */
    .address-row {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr; /* Dusun lebar, RT/RW kecil */
        gap: 16px;
        grid-column: span 2;
    }

    .form-header h2 {
        font-size: 2.25rem;
    }
}