:root {
	--scroll-bar-size: 10px;
	--scroll-bar-thumb-background-color: rgba(0, 0, 0, 0.2);
	--scroll-bar-thumb-background-color-active: rgba(0, 0, 0, 0.5);
    --radius-size: 10px;
}

html.lock {
    overflow: hidden;
}



#contact {
    --font-color: #333;
    --light-color: #ddd;
    --default-color: #707070;
    --highlight-color: #de1828;
    --dark-color: #B1000E;
    --done-color: #729B72;
    margin: 30px auto 0;
}


#contact .scroll::-webkit-scrollbar {
	width: var(--scroll-bar-size);
	height: var(--scroll-bar-size);
	background: transparent;
	cursor: pointer;
}
#contact .scroll::-webkit-scrollbar-thumb {
	background-color: var(--scroll-bar-thumb-background-color);
	border-radius: var(--scroll-bar-size);
	border-color: transparent;
	border-style: solid;
	border-width: calc(var(--scroll-bar-size)/3);
	background-clip: padding-box;
}
#contact .scroll::-webkit-scrollbar-thumb:active {
	background-color: var(--scroll-bar-thumb-background-color-active);
}
#contact .scroll::-webkit-scrollbar-thumb:hover,
#contact .scroll::-webkit-scrollbar-thumb:active {
	border-width: 1px;
	background-color: var(--scroll-bar-thumb-background-color-active);
	cursor: pointer;
}


#contact p.TextStyle5 {
    font-size: 130%;
    padding: 50px 0;
}

#contact > div > h2 {
    display: flex;
    margin-bottom: 20px;
}
#contact > div > h2 i {
    font-size: 220%;
    font-weight: 900;
    color: #B1000E;
    margin-right: 20px;
}

#contact > div > h2 span {
    display: block;
    position: relative;
    padding: 10px 0 5px;
    border: 0;
    font-size: 100%;
    font-weight: 100;
    text-align: left;
    letter-spacing: 2px;
}
#contact > div > h2 span::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 5px;
    background: #B1000E;
}






#contact .flexSet {
    display: flex;
    gap: 30px;
}
#contact a.btn {
    display: flex;
    position: relative;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: var(--radius-size);
    background: #FFF;
    box-sizing: border-box;
    padding: 10px 0;
    cursor: pointer;
    transition: 200ms;
}

#contact a.btn strong {
    display: block;
    line-height: 1;
    padding: 5px 0 10px;
    font-size: 140%;
    transition: 200ms;
}
#contact a.btn p {
    font-size: 90%;
}
 

/* button hover */
#contact a.btn:hover {
    border-color: var(--highlight-color);
    transition: 200ms;
    color: var(--highlight-color);
    background-color: #FFF;
}
#contact a.btn:hover strong {
    color: var(--highlight-color);
}

/* button active */
#contact a.btn.active {
    border-color: var(--dark-color);
    color: #FFF;
    background-color: var(--dark-color);
}
#contact a.btn.active strong {
    color: #FFF;
}

/* button active + hover */
#contact a.btn.active:hover {
    border-color: var(--highlight-color);
    background-color: var(--highlight-color);
}



/**** STEP 1 ****/

#contact .step1 .privacy {
    border: 1px solid #ddd;
    box-sizing: border-box;
    padding: 15px;
    height: 50vh;
    max-height: 300px;
    border-radius: 5px;
    margin: 30px auto;
    background-color: #f3f3f3;
    overflow-y: scroll;
    overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
}
#contact .step1 .privacy #mainContent .Section {
    padding: 0;
    font-size: 83%;
}
#contact .step1 .privacy #mainContent h2 {
    border: 0;
    text-align: left;
}
#contact .step1 .privacy #mainContent h2 span {
    padding: 5px 0 ;
    font-size: 90%;
}
#contact .step1 .privacy #mainContent h2 span a {
    display: none;
}


/**** STEP 2 ****/
#contact .flexSet {
    transition: 400ms;
}
#contact .contactType a.btn {
    padding: 70px 0 10px;
    margin-top: 0px;
    transition: 200ms;
}
#contact .contactType a.btn.active,
#contact .contactType a.btn:hover {
    padding: 50px 0 20px;
}
#contact .contactType a.btn::before {
    content: "";
    display: block;
    position:absolute;
    top: 10px;
    border-radius: 50%;
    border: 3px solid #FFF;
    width: 50px;
    height: 50px;
    background: var(--default-color) 0 0 no-repeat;
    background-size: 100%;
    transition: 100ms ease-out;
}
#contact .contactType a.btn.general::before { background-image: url(/image/astemo/contact/icon_general.svg);}
#contact .contactType a.btn.recruit::before { background-image: url(/image/astemo/contact/icon_recruit.svg);}
#contact .contactType a.btn.sales::before { background-image: url(/image/astemo/contact/icon_sales.svg);}
#contact .contactType a.btn.after::before { background-image: url(/image/astemo/contact/icon_after.svg);}
#contact .contactType a.btn.purchase::before { background-image: url(/image/astemo/contact/icon_purchase.svg);}

#contact a.btn.active::before {
    top: -25px;
    width: 60px;
    height: 60px;
    border-radius: 50% 50% 50% 0;
    border: 3px solid var(--default-color);
    border-color: var(--dark-color);
    background-color: var(--dark-color);
}
#contact a.btn:hover::before {
    top: -25px;
    width: 60px;
    height: 60px;
    border-radius: 50% 50% 50% 0;
    border: 3px solid var(--default-color);
    filter: brightness(120%);
    border-color: var(--highlight-color);
    background-color: var(--highlight-color);
}
#contact a.btn.active:hover::before {
    border-color: var(--highlight-color);
    background-color: var(--highlight-color);
}

#contact a.btn.active {
    animation: press 350ms ease-out;
}

#contact .step2 .form {
    margin-bottom: 30px;
    padding: 14px;
    border: 1px dashed transparent;
}

#contact .step2 .form .flexSet {
    margin-bottom: 0;
}


#contact .step2 h3 {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 0 30px;
    line-height: 12px;
    color: var(--font-color);
}
#contact .step2 h3 i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--default-color);
    margin-right: 10px;
    transition: all 200ms;
}

#contact .step2 .form h3 i::before {
    content: "";
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    background-color: #FFF;
    transition: all 200ms;
    opacity: 0;
}
#contact .step2 .form h3 i::after {
    content: "";
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    background-color: #FFF;
    transition: all 200ms;
    opacity: 0;
}

#contact .step2 .form.isError {
    border-radius: var(--radius-size);
    border: 1px dashed var(--dark-color);
    background-color: rgba(177, 0, 14, .05);
    animation: errorBg 1s infinite alternate-reverse;
}

@keyframes errorBg {
    from{
        background-color: rgba(177, 0, 14, 0);
    }
    to{
        background-color: rgba(177, 0, 14, .05);
    }
}

#contact .step2 .form.isError h3 {
    color: var(--dark-color);
}



#contact .step2 .form.isError h3 i {
    border-color: var(--dark-color);
}

#contact .step2 .form.isError h3 i::before {
    width: 10px;
    height: 2px;
    background-color: var(--dark-color);
    transform: rotateZ(-45deg);
    opacity: 1;
}
#contact .step2 .form.isError h3 i::after {
    width: 10px;
    height: 2px;
    background-color: var(--dark-color);
    transform: rotateZ(45deg);
    opacity: 1;
}

/* 
#contact .step2 .form.done h3 i {
    border-color: var(--dark-color);
    background: var(--dark-color) url(/image/astemo/contact/icon_checked_white.svg) center center no-repeat;
    background-size: 84%;
} */
#contact .step2 .form.done h3 i {
    border-color: var(--done-color);
    background: var(--done-color);
}

#contact .step2 .form.done h3 i::before {
    width: 11px;
    height: 2px;
    transform: rotateZ(-45deg) translate3d(1px,1px,0);
    opacity: 1;
}
#contact .step2 .form.done h3 i::after {
    width: 7px;
    height: 2px;
    transform: rotateZ(45deg) translate3d(-2px,4px,0);
    opacity: 1;
}

#contact .step2 .isError h3 
#contact .step2 .Section {
    padding: 0;
    box-sizing: border-box;
}

#contact .step2 .userInfo {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    position: relative;
}
#contact .step2 .userInfo div {
    display: flex;
    align-items: center;
    position: relative;
    width: calc(50% - 15px);
    padding: 5px 0;
    transition: 500ms;
    border-bottom: 1px solid var(--light-color);
    background: right center no-repeat;
}
#contact .step2 .userInfo div.isError {
    border-bottom: 1px solid var(--dark-color);
}
#contact .step2 .userInfo div.done {
    border-bottom: 1px solid var(--done-color);
}

#contact .step2 .userInfo div label {
    display: inline-block;
    font-size: 120%;
    font-weight: 900;
    color: #333;
    width: 100px;
}
#contact .step2 .userInfo div input {
    border: 0;
    width: auto;
    flex: 1;
    margin-right: 30px;
    line-height: 1.5;
    padding: 5px;
    font-size: 90%;
    background: transparent;
}
#contact .step2 .userInfo div input:focus {
    outline: 0;
}
#contact .step2 .userInfo div.isError {
    background: url(/image/astemo/contact/icon_error.svg) right center no-repeat;
}
#contact .step2 .userInfo div.done {
    background: url(/image/astemo/contact/icon_checked.svg) right center no-repeat;
}
#contact .step2 .userInfo select {
    background: transparent;
}

#contact .step2 textarea {
    padding: 10px;
    width: 100%;
    height: 20vw;
    max-height: 300px;
    border: 1px solid #ddd;
    border-radius: 10px;
    letter-spacing: 1px;
}

#contact .step2 textarea:focus {
    outline: 0;
}

#contact .buttonArea {
    justify-content: center;
}
#contact .buttonArea a.btn.submit {
    width: 20%;
    flex: 0 300px;
    background-color: var(--dark-color);
}

#contact .buttonArea a.btn.submit strong {
    color: #FFF;
    text-align: center;
}
#contact .buttonArea a.btn.submit:hover {
    background-color: var(--highlight-color);
}


  
#contact .buttonArea a.btn.shake {
    animation: shake 1000ms;
}




#contact select {
    padding: 5px;
    border: 0;
    outline: 0;
}
#contact #formConfirm {
    display: none;
    position:fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
}

#contact #formConfirm.show {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(6px);
}
#contact #formConfirm > .mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 600ms;
}

#contact #formConfirm .box {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 765px;
    max-height: 600px;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
    border-radius: 10px;
    border: 1px solid #666;
    background: #FFF;
    box-shadow: 0 0 50px rgb(0 0 0 / 30%);
    overflow: hidden;
    transition: all 300ms ease-in-out;
    z-index: 101;
}
#contact #formConfirm .box.completed {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    height:fit-content;
    min-height: 300px;
    padding: 20px;
}





#contact #formConfirm .box .stepSet {
    transition: 300ms;
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    overflow-scrolling: touch;
    -webkit-overflow-scrolling: touch;
}


#contact #formConfirm .box h3 {
    display: block;
    width: 100%;
    font-size: 140%;
    height: 70px;
    margin-bottom: 0;
    line-height: 3;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
#contact #formConfirm span.closeBtn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: url(/careers/add/image/icon/close.svg) center center no-repeat;
    background-size: 50%;
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
    transition: 200ms;
}

#contact #formConfirm span.closeBtn:hover {
    background-color: #eee;
}
#contact #formConfirm .box dl {
    display: flex;
    flex-direction: row;
    justify-content:flex-start;
    align-content: flex-start;
    flex: 1 100%;
    padding: 30px 0;
    height: fit-content;
    height: 100%;
    flex-wrap: wrap;
    font-size: 100%;
}
#contact #formConfirm .box dt {
    display: inline-block;
    width: 120px;
    margin-bottom: 15px;
    text-align: center;
    padding-right: 20px;
    font-weight: 900;
    color: #333;
    padding: 3px;
    background: #eee;
    border-radius: 20px;
    font-size: 92%;
    align-self: self-start;
}
#contact #formConfirm .box dd {
    display: inline-block;
    width: calc(100% - 120px);
    margin-bottom: 15px;
    padding: 3px 20px;
    font-size: 90%;
}

#contact #formConfirm .box .buttonArea {
    margin: 20px 0 10px;
}
#contact #formConfirm .box .buttonArea.small a strong {
    font-size: 90%;
    font-weight: 100;
    padding: 5px 0;
    line-height: 1.2;
}


.result {
    display: flex;
    justify-content: center;
}
.result span {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    border: 6px solid #FFF;
    background: transparent;
    border-radius: 50%;
    margin: 20px;
    animation-duration: 1.5s;
    animation-fill-mode:forwards;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 0, 0, 0.1);
}
.result span.done {
    animation-name: color-done;
}
.result span.error {
    animation-name: color-error;
}

.result span i {
    display: block;
    position: absolute;
    width: 100px;
    height: 100px;
    background: url(/careers/add/image/icon/mail.svg) center center no-repeat;
    background-size: 100%;
    animation-delay: .5s;
    animation-duration: 1s;
    animation-fill-mode:forwards;
}
.result span.done i {
    animation-name: zoom-done;
}
.result span.error i {
    animation-name: zoom-error;
}

.result span i.done {
    background: url(/careers/add/image/icon/mail_done.svg) center center no-repeat;
    background-size: 70%;
}
.result span i.error {
    background: url(/careers/add/image/icon/mail_error.svg) center center no-repeat;
    background-size: 50%;
}
@keyframes color-done {
    form {
        border: 6px solid #FFF;
    }
    to {
        border: 6px solid #99f2af;
        box-shadow: none;
    }
}
@keyframes zoom-done {
    20% { 
        opacity: 1;
        transform: scale(1);
    }
    48%  { 
        background-image: url(/careers/add/image/icon/mail.svg);
        opacity: 0;
        transform: scale(0);
    }
    50%  { 
        background-image: url(/careers/add/image/icon/mail_done.svg);
        opacity: 0;
        transform: scale(0);
    }
    100%  { 
        background-image: url(/careers/add/image/icon/mail_done.svg);
        opacity: 1;
        transform: scale(1);
    }   
}

@keyframes color-error {
    form {
        border: 6px solid #FFF;
    }
    to {
        border: 6px solid #e99d9f;
        box-shadow: none;
    }
}
@keyframes zoom-error {
    20% { 
        opacity: 1;
        transform: scale(1);
    }
    48%  { 
        background-image: url(/careers/add/image/icon/mail.svg);
        opacity: 0;
        transform: scale(0);
    }
    50%  { 
        background-image: url(/careers/add/image/icon/mail_error.svg);
        opacity: 0;
        transform: scale(0);
    }
    100%  { 
        background-image: url(/careers/add/image/icon/mail_error.svg);
        background-size: 50%;
        opacity: 1;
        transform: scale(1);
    }   
}

/****************** 临时样式 ******************/
#contact .data {
    position:fixed;
    display:block;
    width: 300px;
    height: fit-content;
    font-size: 83%;
    top: 0;
    right: 0;
    padding: 10px;
    background: rgba(255,255,255,.9);
    border: 1px solid #de1828;
    z-index: 1000;
}
/****************** 临时样式 ******************/




@media screen and (max-width: 965px) 
{
    #contact {
        font-size: 90%;
    }

    #contact p.TextStyle5 {
        font-size: 90%;
    }
    #contact h2 span {
        font-size: 90%;
    }
    #contact .flexSet {
        gap: 20px;
    }
    #contact a.btn {
        font-size: 90%;
    }
    #contact .contactType a.btn {
        padding: 50px 0 20px;
        margin-top: 30px;
    }
    #contact .contactType a.btn::before {
        width: 60px;
        height: 60px;
        top: -30px;
    }
}


@media screen and (max-width: 767px) 
{
    .JS body {
        background-color: #FFF;
    }
    #contact > div > h2 span {
        font-size: 80%;
    }
    #contact > div > h2 span::after {
        height: 3px;
    }
    #contact .Section.flexSet {
        padding: 0;
        gap: 10px;
    }
    #contact .step2 .Section {
        padding: 0;
    }
    #contact .step2 h3 {
        margin: 0 0 15px;
    }
    #contact .step2 .userInfo {
        gap: 20px;
    }
    #contact .step2 .form {
        padding: 5px;
    }
    #contact .step2 .contactType {
        flex-wrap: wrap;
    }
    #contact .step2 .contactType a.btn {
        padding: 10px 5px 10px 70px;
        flex: 0 calc(50% - 5px);
        align-items: flex-start;
        margin-top: 0;
    }
    #contact .step2 .contactType a.btn strong,
    #contact .step2 .contactType a.btn p{
        text-align: left;
    }
    #contact .contactType a.btn::before {
        top: auto;
        left: 10px;
        width: 40px;
        height: 40px;
    }

    #contact #formConfirm .box {
        height: 100vh;
        max-height: 100vh;
    }
    #contact #formConfirm span.closeBtn {
        top: 10px;
    }
    /* #contact .contactType a.btn {
        display: block;
        box-sizing: border-box;
        margin-top: 0;
        margin-left: 30px;
        padding: 2px 0 4px 60px;
        height: 64px;
        border-radius: 0 10px 10px 0;
        align-items: flex-start;
    }
    #contact .contactType a.btn::before {
        border-width: 2px;
        top: -1px;
        left: -30px;
    }
    #contact .step2 .flexSet {
        gap: 20px;
    } */
    #contact .step2 .form div {
        display: flex;
        width: 100%;
    }
    #contact .step2 .form label {
        width: 80px;
    }
    #contact .step2 .form input {
        flex: 1;
    }
    #contact .step3 textarea {
        height: 50vw;
    }
    #contact .buttonArea a.btn.submit {
        flex: 1;
    }
}



@media screen and (max-width: 580px) 
{
    #contact #formConfirm span.closeBtn {
        right: 5px;
    }
    #contact #formConfirm .box {
        padding: 0;
    }
    #contact #formConfirm .box dl {
        padding: 20px 10px 20px 20px;
    }
    .JS #contact #formConfirm .box dd:last-child {
        width: 100%;
        padding: 3px;
    }
    #contact #formConfirm .box .buttonArea {
        margin: 0;
        padding: 20px;
    }
}