.asterisk
{
    color: #b00020;
}

.contact-container
{
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.contact-wrapper
{
    width: 100%;
    max-width: 800px;
    padding: 0 16px;
    box-sizing: border-box;
}

.contact-title
{
    margin-top: 150px;
}
.contact-title h1
{
    font-size: 40px;
    font-weight: 700;
    color: #8a0021;
}
.contact-title p
{
    font-size: 15px;
    font-weight: 500;
    color: #545454;
}
.contact-title p:first-of-type
{
    margin-top: 36px;
}
.contact-title p:last-of-type
{
    margin-top: 22px;
}

.form-container
{
    margin-top: 64px;
}

.form-row
{
    display: flex;
    flex-direction: column;
    margin-bottom: 26px;
}
.form-row .form-label
{
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.form-row .form-label label
{
    font-size: 16px;
    font-weight: 700;
}
.form-row textarea
{
    height: auto;
    min-height: 116px;
}
.form-row input,
.form-row textarea,
.form-row select
{
    width: 100%;
    padding: 10px;
    text-align: left;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    background-color: #fff;
    box-sizing: border-box;
}
.form-row input::-moz-placeholder,
.form-row textarea::-moz-placeholder,
.form-row select::-moz-placeholder
{
    font-size: 14px;
    font-weight: 400;
    color: #b0b0b0;
}
.form-row input::placeholder,
.form-row textarea::placeholder,
.form-row select::placeholder
{
    font-size: 14px;
    font-weight: 400;
    color: #b0b0b0;
}
.form-row input option,
.form-row textarea option,
.form-row select option
{
    font-size: 17px;
    opacity: 1;
    color: #b2b2b2;
}

.form-row:last-of-type
{
    margin-bottom: 0;
}

select:invalid
{
    font-size: 14px;
    font-weight: 400;
    color: #b0b0b0;
}

.form-box
{
    display: flex;
    gap: 32px;
}
.form-box .form-row
{
    flex: 1;
}
.form-box input
{
    box-sizing: border-box;
    width: 100%;
}

.agree-wrapper
{
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    margin-top: 40px;
}
.agree-wrapper p
{
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: #8f8f8f;
}

.last-btn
{
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 452px;
    margin-top: 68px;
    margin-bottom: 80px;
    text-align: center;
    gap: 30px;
}
.last-btn .agree-btn
{
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.contact-btn
{
    font-size: 14px;
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 13px 0;
    transition: .3s ease;
    text-align: center;
    color: #b0b0b0;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    background-color: #e5e5e5;
}
.contact-btn:not(:disabled)
{
    cursor: pointer;
    opacity: 1;
    color: white;
    background-color: #208e92;
}

a.highlight
{
    position: relative;
    display: inline-block;
    color: #4776ba;
}
a.highlight::after
{
    position: absolute;
    bottom: 0;
    left: 16px;
    width: 86%;
    height: 1px;
    content: "";
    background-color: currentColor;
}

.counter
{
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    color: #8f8f8f;
}

@media all and (max-width: 767px)
{
    .form-box
    {
        display: flex;
        flex-direction: column;
        margin-bottom: 26px;
        gap: 0;
    }
    .form-box .form-row
    {
        flex: 1;
    }
    .last-btn
    {
        margin-bottom: 40px;
    }
    .last-btn .agree-btn
    {
        justify-content: center;
    }
    .contact-title
    {
        margin-top: 100px;
    }
    .contact-title h1
    {
        font-size: 28px;
    }
    .counter
    {
        font-size: 13px;
    }
}
.form-row .is-invalid
{
    border: 1px solid #b00020;
    background-color: #fef6f7;
}

.form-row .form-error
{
    font-size: 14px;
    color: #b00020;
}

.contact-thanks-container
{
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.contact-thanks-wrapper
{
    width: 100%;
    max-width: 800px;
    padding: 0 16px;
    box-sizing: border-box;
}
.contact-thanks-wrapper h1
{
    font-size: 40px;
    font-weight: 700;
    margin-top: 150px;
    margin-bottom: 36px;
    color: #8a0021;
}
.contact-thanks-wrapper h2
{
    font-size: 18px;
    font-weight: 500;
}
.contact-thanks-wrapper h2 span
{
    font-size: 18px;
    font-weight: 700;
}
.contact-thanks-wrapper .contact-thanks-text
{
    margin-top: 62px;
}
.contact-thanks-wrapper .contact-thanks-text div:first-of-type
{
    margin-bottom: 62px;
}
.contact-thanks-wrapper .contact-thanks-text div:first-of-type p
{
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #7b7b7b;
}

.contact-thanks-btn
{
    margin-top: 62px;
    text-align: center;
}
.contact-thanks-btn a
{
    font-size: 14px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 452px;
    margin-bottom: 80px;
    padding: 12px 0;
    transition: .3s ease;
    text-align: center;
    color: #208e92;
    border: 1px solid #208e92;
    border-radius: 50px;
    background-color: #fff;
}
.contact-thanks-btn a:hover
{
    color: #fff;
    border: 1px solid #208e92;
    background-color: #208e92;
}

.sp
{
    display: none;
}

@media all and (max-width: 767px)
{
    .sp
    {
        display: inline-block;
    }
    .contact-thanks-wrapper h1
    {
        font-size: 28px;
        margin-top: 100px;
    }
    .contact-thanks-wrapper h2
    {
        font-size: 15px;
    }
    .contact-thanks-wrapper h2 span
    {
        font-size: 15px;
    }
    .contact-thanks-wrapper .contact-thanks-text div:first-of-type p
    {
        font-size: 14px;
    }
    .contact-thanks-btn a
    {
        margin-bottom: 40px;
    }
}
