/* General Styles */
 


h1 {
    text-align: center;
    color: #00264d;
    margin-bottom: 20px;
    font-size: 25px;
}

form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Fieldset and Legend */
fieldset {
    border: 2px solid #00264d;
    margin-bottom: 15px;
    padding: 10px;
}

legend {
    font-weight: bold;
    color: #00264d;
    padding: 0 10px;
    text-transform: uppercase;
}

/* Form labels */
label {
    font-weight: bold;
    color: #00264d;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin: 5px 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Radio buttons */
input[type="radio"] {
    margin-right: 5px;
}

/* Submit button */
input[type="submit"] {
    background-color: #00264d;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #004080;
}

/* Align elements better for spacing */
fieldset input,
fieldset textarea,
fieldset select {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

textarea {
    resize: vertical;
}

/* Responsive styles */
@media (max-width: 768px) {

    form{
        padding: 15px;
    }
    fieldset {
        padding: 10px;
    }
    legend {
        font-size: 14px;
    }

    input[type="submit"] {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    form {
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }

    label {
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="tel"],
    textarea {

        width: calc(100% - 10px);
        padding: 8px;
        font-size: 14px;
    }

    input[type="submit"] {
        font-size: 16px;
        padding: 12px;
    }
}