/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    background-image: url(/Assets/BG.png);
    padding: 20px;
}

.Container {
    width: 100%;
    margin: 0 auto;
    margin-top: 80px;
}

.success-container {
    width: 40%;
    margin: 0 auto;
    box-shadow: 0px 4px 6px rgba(0, 128, 0, 0.2);
    text-align: center;
    border: 1px solid #2e8b57;
    border-radius: 8px;
    background-color: #f0fff4;
    /* Light green background */
    padding: 20px;
}

.success-message {
    font-weight: bold;
    font-size: 1.2em;
    color: #2e8b57;
    /* Dark green text */
    margin-top: 10px;
}

.close-window {
    font-style: italic;
    font-size: 1.0em;
    color: #2e8b57;
    /* Dark green text */
    margin-top: 10px;
}

h1 {
    text-align: center;
    color: #fff;
    background-color: #6b1f99;
    border-radius: 20px;
    font-family: "Avenir-LT-W01_85-Heavy1475544";
    width: 38%;
    margin: 0 auto 20px;
    padding: 10px;
}

/* ***** Form Styles ***** */
form {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .form-row fieldset {
        flex: 1;
    }

fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

legend {
    font-weight: bold;
    color: #325aa8;
    padding: 0 5px;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #325aa8;
}

.footnote {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

input[type="text"],
input[type="Email"],
select {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    margin-left: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.Submit {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #6b1f99;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    align-self: center;
}

    .Submit:hover {
        background-color: #0056b3;
    }

#error-message {
    display: none;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #c62828;
    background-color: #fdecea;
    color: #b71c1c;
    font-weight: 600;
    border-radius: 4px;
}

.select-error {
    border: 2px solid #c62828;
    background-color: #fdecea;
}
/* ***** End Form Styles ***** */

/* ***** Reload Styles ***** */
.Reload {
    text-align: center;
    margin-top: 50px;
}

    .Reload p {
        font-size: 18px;
        margin-bottom: 20px;
        font-weight: bold;
    }

    .Reload button {
        padding: 10px 20px;
        font-size: 16px;
    }
/* ***** End Reload Styles ***** */

/* ***** Navbar Styles *****  */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navIMG {
    width: 210px;
    height: 65px;
    border-radius: 5px;
}

.navBUTTON {
    font-size: 16px;
    text-align: center;
    background-color: #6b1f99;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

    .navBUTTON:hover {
        background-color: #0056b3;
    }

.success-container img {
    /* max-width: 100px; */
    width: 250px;
    height: 250px;
    border-radius: 5px;
    /* margin-bottom: 30px; */
}
/* ***** End Navbar Styles *****  */

/* Media Queries for tablet (768px) */
@media (max-width: 768px) {
    form {
        padding: 15px;
        max-width: 100%;
    }

    .form-row {
        flex-direction: column; /* Stack fieldsets vertically */
        gap: 15px; /* Add space between the stacked fieldsets */
    }

    .Submit {
        width: 100%; /* Make the button span full width */
        align-self: center;
    }

    .success-container {
        width: 90%;
        padding: 18px;
    }

    .navIMG {
        width: 160px;
        height: auto;
    }

    .success-message {
        font-size: 1.05em;
    }

    .close-window {
        font-size: 0.95em;
    }

    .success-container img {
        width: 180px;
        height: 180px;
    }
}

/* Media Queries for mobile (480px) */
@media (max-width: 576px) {
    form {
        padding: 10px;
    }

    .form-row {
        flex-direction: column; /* Ensure column layout */
        gap: 10px; /* Reduce spacing for smaller screens */
    }

    h1 {
        width: 50%;
    }

    input[type="text"],
    input[type="Email"],
    select {
        width: 90%; /* Full width inputs for small screens */
        padding: 8px;
    }

    button.Submit {
        width: 100%; /* Full width for the button */
        padding: 8px 12px;
        font-size: 14px;
    }

    .success-container {
        width: 100%;
        padding: 16px;
        border-radius: 10px;
    }

    .success-message {
        font-size: 1em;
    }

    .close-window {
        font-size: 0.9em;
    }

    .success-container img {
        width: 150px;
        height: 150px;
    }
}
