body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 550px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
}

h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
}

.form-group select,
.form-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group select:focus,
.form-group input[type="text"]:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.inline-fields {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Adds space between the inline fields */
}

.inline-fields > div {
    flex: 1; /* Allows fields to take equal width */
}


button[type="submit"] {
    background-color: #4a90e2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #357abd;
}

#result {
    margin-top: 25px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1em;
}

.success {
    background-color: #e8f5e9; /* Light green */
    color: #2e7d32; /* Dark green */
    border: 1px solid #a5d6a7;
    padding: 10px;
    border-radius: 4px;
}

.error {
    background-color: #ffebee; /* Light red */
    color: #c62828; /* Dark red */
    border: 1px solid #ef9a9a;
    padding: 10px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        margin: 20px;
        padding: 20px;
    }

    h1 {
        font-size: 1.8em;
    }

    .inline-fields {
        flex-direction: column; /* Stack fields vertically on small screens */
        gap: 0; /* Remove gap when stacked if desired, or adjust */
    }
     .inline-fields > div {
        margin-bottom: 15px; /* Add margin between stacked fields */
    }
    .inline-fields > div:last-child {
        margin-bottom: 0;
    }
}