
header {
    background-color: rgb(208, 241, 141);
    padding: 10px;
    text-align: center;
}

form h2 {
    margin-top: 5px;
    color: green;
    text-align: center;

}

main {
    padding: 30px;
    display: flex;
    flex-direction: column; 
    align-items: center;
}

form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 750px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.form-section {
    background-color:  #f5f5dc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

legend, .form-section h3 {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.field {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: green;
}


input, select {
    margin-top: 5px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input:focus, select:focus {
    outline: none;
    border-color: green;
}

.radios {
    margin-top: 10px;
}

.radio-box {
    margin-right: 15px;
    color: green;
}

.buttons {
    text-align: center;
    margin-top: 20px;
}

button {
    background-color: green;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background-color: darkgreen;
}

button[type="reset"] {
    background-color: gray;
}

button[type="reset"]:hover {
    background-color: #444;
}

.buttonnav {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 128, 0, 0.2); 
}

.buttonnav a {
    text-decoration: none;
    color: green; 
    margin: 0 5px;
    transition: 0.3s;
}

.buttonnav a:hover {
    color: #004d40; 
    text-decoration: underline;
}

.result-card {
    background-color: #f5f5dc; 
    max-width: 750px;
    width: 100%;            
    box-sizing: border-box;
    margin: 30px auto;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 2px solid #d0f18d; 
    display: none;
}

.result-card h2 {
    color: green;
    margin-bottom: 15px;
}

.result-card ul {
    text-align: left;
    display: inline-block;
    margin: 15px 0;
    color: #333;
}

.result-card li {
    margin-bottom: 8px;
}

.result-card a {
    color: green;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 768px) {
    form {
        width: 95%;
    }

    .form-row {
        flex-direction: column;
    }
}
