body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f4f8;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 960px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #1a73e8;
    margin-bottom: 20px;
}

.rules {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    flex: 1;
    background: #e9f1ff;
    padding: 20px;
    border-radius: 10px;
    min-width: 250px;
}

.card h3 {
    margin-top: 0;
}

ul {
    padding-left: 20px;
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"], select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
}

fieldset legend {
    font-weight: bold;
}

label {
    display: block;
    margin-bottom: 5px;
}

button {
    padding: 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #0c56c2;
}

/* Responsif */
@media (max-width: 768px) {
    .rules {
        flex-direction: column;
    }
}

.result-box {
    background: #f8fff1;
    border-left: 6px solid #4caf50;
    padding: 20px;
    margin-top: 30px;
    border-radius: 10px;
}

.result-box .highlight {
    font-weight: bold;
    color: #2e7d32;
    font-size: 18px;
}
