﻿* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    padding: 10px;
    display: flex;
    min-height: 100vh;
    background-color: #f0f0f0;
}

form {
    background-color: floralwhite;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
 
}

h1 {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0;
}

.form-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px
}


.form-row {
    display: flex;
    flex-wrap: wrap;
}

.form-row .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

    input[type="radio"], input[type="checkbox"] {
        margin-right: 5px;
    }

    button, input[type="button"] {
        padding: 10px;
        background-color: #4CAF50;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

        button:hover, input[type="button"]:hover {
            background-color: #45a049;
        }

.full-width {
    grid-column: 1 / -1;
}

.button-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 5px;
}

@media (max-width:600px) {
    form {
        grid-template-columns: 1fr;
    }
    .form-group {
        width: 100%;
    }
}
