
:root {
    --dark: #4A3825;
    --light: #FFFDF9;
    --theme-light: #8C86AA;
    --theme-mid: #81559B;
    --theme-dark: #5F3C73;
}

body {
    font-family: 'Open Sans',sans-serif;
    font-weight: 400;
    background-color: var(--light);
    color: var(--dark);
    font-size: 150%;
}

main {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bitter', serif;
}


.topnav {
    background-color: var(--dark);
    overflow: hidden;
}

.topnav a {
    float: left;
    display: block;
    color: var(--light);
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: var(--theme-light);
    color: var(--light);
}

.topnav a.active {
    background-color: var(--theme-dark);
    color: var(--light);
}

.topnav .icon {
    display: none;
} 


@media screen and (max-width: 400px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 400px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
} 

.hidden {
    display: none;
}

.button {
    background-color: var(--theme-dark);
    border: .1rem solid var(--dark);
    border-radius: .4rem;
    color: var(--light);
    cursor: pointer;
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700 ;
    height: 3.8rem;
    letter-spacing: .1rem;
    line-height: 3.8rem;
    padding: 0 3.0rem;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover {
    background-color: var(--theme-mid);
}

form {
    background-color: var(--light);
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

label {
    display: block;
    font-size: 75%;
}

input[type=text], select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid var(--dark);
    border-radius: 4px;
    box-sizing: border-box;
}

.radgroup {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1; 
    display: flex;
    flex-direction: column;
}


.custom-date {
    padding: 10px 15px;
    border: 2px solid var(--theme-light);
    border-radius: 6px;
    font-size: 16px;
    color: var(--dark);
    outline: none;
    background-color: var(--light);
}

.custom-date:focus {
    border-color: var(--theme-mid);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

fieldset {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
}

@media (max-width: 480px) {
    fieldset {
        grid-template-columns: 1fr;
    }
}

footer {
    padding: 15px;
    font-size: 75%;
    text-align: center;
}

.req {
    color: #ff0000;
}
