#head-card {
    background: #EAE4E1;
    width: 80%;
    max-width: 700px;
    padding: 20px 20px 25px 20px;
    display: grid;
    align-items: center;
    border-radius: 10px;
    margin-top: -60px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.container {
    display: grid;
    justify-content: center;
    justify-items: center;
}

#intro-text {
    width: 80%;
    max-width: 1200px;
}

#head-card h1 {
    font-size: 20px;
}

#header-image img {
    width: 100%;
    height: auto;
}

main {
    min-height: 100vh;
    margin-bottom: 150px;
}

#intro-text a {
    color: #9D2235;
}

#intro-text a:focus {
    outline: 2px solid black;
}

#intro-text a:focus:not(:focus-visible) {
    outline: none;
}

#help-text {
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 25px;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
}

#form-card {
    background: #EAE4E1;
    padding: 18px;
    display: grid;
    width: 300px;
    justify-content: center;
    grid-row-gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.input-wrapper {
    display: grid;
}

.input-wrapper label {
    padding-bottom: 8px;
}

.side-stack-grid {
    display: flex;
}

.side-stack {
    display: flex;
    grid-column-gap: 4px;
    align-items: center;
    margin-right: 15px;
}

.input-wrapper select {
    width: 265px;
    height: 30px;
    border: 1px solid black;
    border-radius: 5px;
}

.radio-label {
    padding-bottom: 0 !important;
}

.input-wrapper input[type=radio] {
    width: 16px;
    height: 16px;
}

#button-grid {
    display: grid;
    justify-content: center;
}

.button {
    background: #9D2235;
    color: white !important;
    padding: 8px 14px;
    width: auto;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    border: 2px solid #9D2235;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 30px;
    text-decoration: none !important;
    margin-bottom: 35px;
    display: grid;
    outline: none !important;
}

.button:focus, .button:hover {
    background: white;
    color: black !important;
    border: 2px solid #9D2235;
}

.button:focus:not(:focus-visible) {
    background: #9D2235;
    color: white !important;
}

@media only screen and (min-width: 375px) {
    #form-card {
        width: 345px;
        justify-items: center;
    }

    .input-wrapper select {
        width: 295px;
    }

    .input-wrapper {
        /*width: 295px;*/
        width: 305px;
    }
}

@media only screen and (min-width: 425px) {
    #head-card h1 {
        font-size: 24px;
    }

    #form-card {
        width: 365px;
        padding: 28px 18px;
    }
}

@media only screen and (min-width: 616px) {
    #head-card {
        padding: 35px 20px 40px 20px;
    }
}

@media only screen and (min-width: 1024px) {
    #head-card h1 {
        font-size: 28px;
    }
}
