body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 400px;
    margin: 40px auto;
    background: #fff;
    padding: 24px 32px 32px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 24px;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

form input,
form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

#errorField {
    color: #d32f2f;
    margin-bottom: 12px;
    min-height: 18px;
}

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}

button[type="submit"]:disabled {
    background: #90caf9;
    cursor: not-allowed;
}

#resultJson {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
    margin-top: 18px;
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 0.98em;
    white-space: pre-wrap;
}

#astroForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

#astroForm label {
    grid-column: span 1;
    align-self: center;
    margin-bottom: 0;
}

#astroForm input,
#astroForm select {
    grid-column: span 1;
    margin-bottom: 0;
}

#astroForm #errorField,
#astroForm #resultJson,
#astroForm button[type="submit"] {
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    #astroForm {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #astroForm label,
    #astroForm input,
    #astroForm select,
    #astroForm #errorField,
    #astroForm #resultJson,
    #astroForm button[type="submit"] {
        grid-column: 1 / 2;
    }
}

