body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
}

form {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form h1 {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input, select {
    width: calc(100% - 20px); /* Kurangi padding agar pas dengan bingkai */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    color: #333;
}

input:focus, select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.4);
}

button {
    width: 100%; /* Pastikan tombol menyesuaikan lebar form */
    padding: 12px;
    background: #4CAF50;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

button:hover {
    background: #45a049;
}

#pesan {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #ff0000;
}

/* Responsif untuk layar kecil */
@media (max-width: 600px) {
    form {
        padding: 15px;
    }

    label {
        margin-bottom: 6px;
    }

    input, select, button {
        font-size: 1em;
    }
}
