#contact-area {
    padding: 50px 15px;
}

#contact-area .contact-description {
    margin-bottom: 72px;
}

.contact-flow-indicator {
    display: flex;
    width: 100%;
    max-width: 840px;
    padding: 4px;
    margin: 0 auto 40px;
    font-size: 1.8rem;
    background: #F2F2F2;
}

.contact-flow-indicator .item {
    flex: 1;
    padding: 12px 20px;
    text-align: center;
    color: #707F89;
    position: relative;
}

.contact-flow-indicator .item.current:after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    border-top: 60px solid transparent;
    border-left: 20px solid #00398D;
}

.contact-flow-indicator .item.current:nth-child(2):before,
.contact-flow-indicator .item.current:nth-child(3):before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;
    border-top: 60px solid #00398D;
    border-left: 20px solid transparent;
}

.contact-flow-indicator .item.current:last-child:after {
    display: none;
}

.contact-flow-indicator .item.current {
    color: #FFFFFF;
    background: #00398D;
}

.contact-form {
    max-width: 840px;
    margin: 0 auto;
    color: #333;
}

.form-group {
    margin-bottom: 28px;
}

.form-item-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    margin-bottom: 6px;
    color: #011540;
}

.contact-form .label-required,
.contact-form .label-optional {
    display: inline-block;
    line-height: 1;
    font-size: 1.4rem;
    font-weight: 700;
    padding: .375em .25em;
    margin-right: 6px;
}

.contact-form .label-required {
    color: #FFFFFF;
    background: #FF0000;
}

.contact-form .label-optional {
    color: #FFFFFF;
    background: #99A6B5;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    background: #F0F3F5;
    color: #333;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #B5BBBF;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #4d90fe;
    background: #FFFFFF;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

.policy-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check {
    width: fit-content;
    font-size: 1.6rem;
    position: relative;
    margin: 0 auto;
}

.form-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.policy-label a {
    color: #00A7FF;
    text-decoration: underline;
}

.form-check a::after {
    display: none;
}

.check-box {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 1.25em;
    height: 1.25em;
    margin-right: .5em;
    border: 2px solid #707070;
    transition: background-color .25s;
}

.check-box::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 10px;
    height: 6px;
    border: 3px solid #FFFFFF;
    border-top: none;
    border-right: none;
    transition: opacity .25s;
}

.form-check:has(input:checked) .check-box {
    background-color: #00A7FF;
}

.form-check:has(input:checked) .check-box::before {
    opacity: 1;
}

.policy-label a:hover {
    text-decoration: underline;
}

.policy-note {
    margin: 8px 0 0;
    font-size: 14px;
}

.policy-group {
    display: grid;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 70px;
    text-align: center;
}

.contact-confirm {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    gap: 40px;
    font-size: 1.6rem;
    margin: 0 0 65px;
    max-width: 840px 0;
}

.confirm-group {
    display: grid;
    grid-column: span 2;
    grid-template-columns: subgrid;
}

.confirm-label {
    font-weight: 700;
}

.confirm-value {
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.confirm-actions .btn-orange {
    margin: 0;
}

#thanks-area {
    padding: 40px 0;
}

#thanks-area .btn-orange {
    margin-top: 0;
    margin-bottom: 0;
}

.thanks-message {
    margin: 0 0 80px;
    text-align: center;
    font-size: 1.8rem;
}

@media screen and (max-width: 768px) {
    #contact-area .contact-description {
        margin-bottom: 40px;
    }

    .contact-flow-indicator {
        padding: 2px;
        font-size: 1.6rem;
    }

    .contact-flow-indicator .item {
        padding: 8px;
    }

    .contact-confirm {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .confirm-group {
        grid-column: 1;
    }

    #thanks-area {
        padding: 0;
    }

    .policy-group {
        margin: 12px 0 40px;
    }

    .thanks-message {
        font-size: 1.4rem;
        margin-bottom: 60px;
    }

    .contact-flow-indicator .item.current:after {
        border-top: 48px solid transparent;
    }

    .contact-flow-indicator .item.current:nth-child(2):before,
    .contact-flow-indicator .item.current:nth-child(3):before {
        border-top: 48px solid #00398D;

    }
}