:root {
  --primary-red: #ED1B2E;
  --primary-black: #000000;
  --primary-white: #FFFFFF;
  --primary-blue-gray: #E5EAEF;
  --primary-light-gray: #F7F7F7;
  --primary-medium-gray: #EEEEEE;

  --secondary-dark-blue: #1B365D;
  --secondary-beige: #A89968;
  --secondary-silver: #8D9093;
  --secondary-gold: #A18B6B;
  --secondary-dark-grey: #D8D8D8;
  --secondary-gainsboro: #DDDDDD;
  --secondary-spanish-gray: #999999;
  --secondary-prudential-gray: #DDDDDD;
  --secondary-philippine-silver: #B4B4B4;
  --secondary-sonic-silver: #757575;
  --secondary-eerie-black: #1F1F1F;
  --secondary-red-gradient: linear-gradient(270deg, #FF9892 0%, #FF5F59 100%);
  --secondary-cultured: #F5F5F5;
  --secondary-gray-gradient: linear-gradient(0deg, #E9E9E9 0%, #F5F5F5 100%);
  --secondary-orange: #E87722;
  --secondary-yellow: #F2C75C;
  --secondary-peach: #ECC3B2;
  --secondary-coral: #F09491;
  --secondary-teal-green: #5CB8B2;
  --secondary-sky-blue: #009CBD;
  --secondary-light-blue: #8DB9CA;

}

:root body,
:root body a,
:root body label,
:root body span,
:root body div,
h1,
h2,
h3,
p,
div,
a{
    font-family: 'Open Sans';
}

html:lang(zh):root body,
html:lang(zh):root body a,
html:lang(zh):root body label,
html:lang(zh):root body span,
html:lang(zh):root body div,
html:lang(zh) h1,
html:lang(zh) h2,
html:lang(zh) h3,
html:lang(zh) p,
html:lang(zh) div,
html:lang(zh) a{
    font-family: 'Noto Sans TC';
}

body.freeze {
  height: 100%;
  overflow: hidden !important;;
}

h1 {
    font-weight: 300;
    font-size: 36px;
    line-height: 48px;
}

h2 {
    font-weight: 300;
    font-size: 28px;
    line-height: 36px;
}

h3 {
    font-weight: 300;
    font-size: 24px;
    line-height: 32px;
}

h4 {
    font-weight: 300;
    font-size: 20px;
    line-height: 28px;
}

h5 {
    font-weight: 300;
    font-size: 18px;
    line-height: 28px;
}

.font-bold {
    font-weight: 700;
}

.font-regular-large {
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}

.font-semi-bold-small {
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
}
.font-semi-bold-small:lang(en) {
    font-weight: 600;
}

html:lang(en) .en-font-italic {
    font-style: italic;
}

.text-color-black {
    color: var(--primary-black) !important;
}

.text-dark-blue {
    color: var(--secondary-dark-blue) !important;
}

.primary_button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    gap: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    display: flex;
    align-items: center;
    text-align: center;
    background: var(--primary-red);
    color: var(--primary-white);
    border-radius: 52px;
    border: none;
    transition: all .2s ease-in-out;
}

.primary_button:hover {
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.24);
    transform: scale(1.02);
}

.primary_button:disabled {
    background: var(--secondary-gainsboro);
    color: var(--secondary-spanish-gray);
}

.secondary_button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    gap: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    display: flex;
    align-items: center;
    text-align: center;
    background: var(--primary-white);
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    border-radius: 52px;

}

.secondary_button:hover {
    box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.24);
}

.secondary_button:disabled {
    background: var(--secondary-gainsboro);
    color: var(--secondary-spanish-gray);
}

.primary_link {
    color: var(--primary-black);
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
}

.primary_link:after {
    color: var(--primary-red);
    font-family: 'icomoon';
    content: "\e91d";
}

.text_links {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--primary-red);
}

.text_links:hover {
    text-decoration-line: underline;
}

input[type="radio"] {
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--primary-white);
    margin: 0;
    font: inherit;
    color: currentColor;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.05);
    width: 24px;
    height: 24px;
    margin-right: 10px;
    display: grid;
    place-content: center;
}

input[type="radio"]::before {
    display: block;
    position: absolute;
    content: "";
    width: 60%;
    height: 60%;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 24px 24px var(--primary-red);
    left: 20%;
    top: 20%;
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

input[type="radio"]:focus {
    border: 2px solid rgba(0, 0, 0, 0.5);
}

.input-wrapper .parsley-error > div:first-child{
    border: 2px solid var(--primary-red);
}

.input-wrapper > div:first-child{
    position: relative;
    padding: 0 24px;
}

.input-wrapper > div:first-child > div:first-child{
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    border-radius: 8px;
    height: 70px;
    width: 100%;
    box-shadow: 0px 26px 30px rgba(0, 0, 0, 0.05);
}


.input-wrapper input {
    border: none !important;
}

.input-wrapper .mt-form__input-line:after{
    border: none !important;
}

.input-wrapper .mt-form {
    height: 70px;
    padding-top: 33px !important;
}

.input-wrapper .mt-form input {
    font-weight: 300;
    height: 28px !important;
    font-size: 20px !important;
    line-height: 28px !important;
}

.form-group.form-group--lg .input-wrapper .mt-form .form-control ~ label {
    color: var(--primary-black);
    font-weight: 300;
    font-size: 20px;
    line-height: 28px;
}

.input-wrapper .mt-form__iconbtn {
    padding-bottom: 15px !important;
    cursor: pointer;
}

.input-wrapper input , .input-wrapper input:focus {
    color: var(--primary-black);
}

.parsley-errors-list.filled {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 22px;
}
.parsley-errors-list.filled:lang(zh) {
    font-weight: 500;
}

.input-wrapper .input-tips:nth-child(2){
    margin-top: 10px;
}

.input-wrapper .input-tips{
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
}

.input-wrapper .parsley-errors-list.filled:before{
    font-family: 'icomoon' !important;
    content: "\e918";
    position: absolute;
    left: 0;
}

.form-group.form-group--lg .mt-form.mt-form--notempty .form-control ~ label, .form-group.form-group--lg .mt-form.mt-form--labelfixed .form-control ~ label, .form-group.form-group--lg .mt-form .form-control:focus:not(:disabled) ~ label, .form-group.form-group--lg .mt-form select.form-control ~ label {
    font-weight: 600;
    font-size: 22px;
    line-height: 24px;
    margin-top: 9px;
}

.form-group.form-group--lg .mt-form input.form-control:focus:not(:disabled) ~ label, .form-group.form-group--lg .mt-form select.form-control:focus:not(:disabled) ~ label {
    color: var(--primary-black);
    font-size: 22px;
}

.mt-form.mt-form--hasicon .form-control ~ button.mt-form__iconbtn:hover, .mt-form.mt-form--hasicon .form-control ~ button.mt-form__iconbtn:focus, .mt-form.mt-form--hasicon .form-control ~ button.mt-form__iconbtn.focus {
    color: var(--primary-black);
}

.mt-form.mt-form--hasicon .form-control ~ button.mt-form__iconbtn:not(:disabled):not(.disabled):active, .mt-form.mt-form--hasicon .form-control ~ button.mt-form__iconbtn:not(:disabled):not(.disabled).active {
    color: var(--primary-black);
}

.flex-center {
    display: flex;
    justify-content: center;
}

.select-wrapper {
    position: relative;
    text-wrap: nowrap;
}

.select-wrapper > a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.select-wrapper > a.active ~ .select-wrapper-options {
    display: unset !important;
}

.select-wrapper-options {
    position: absolute;
    background-color: var(--primary-white);
    z-index: 3;
    width: fit-content;
    min-width: 150px;
    top: calc(100% + 2px);
    border-radius: 10px;
    box-shadow: 0px 0px 80px 0px rgba(0, 0, 0, 0.08);
}

.select-wrapper-options > option, .select-wrapper-options > div {
    padding: 20px 10px 20px 26px;
    cursor: pointer;
}

.select-wrapper-options > option:hover , .select-wrapper-options > div:hover{
    color: var(--primary-white);
    background-color: var(--primary-blue-gray);
}

@media only screen and (min-width: 992px) {
    h1 {
        font-weight: 300;
        font-size: 48px;
        line-height: 60px;
    }

    h2 {
        font-weight: 300;
        font-size: 38px;
        line-height: 48px;
    }

    h3 {
        font-weight: 300;
        font-size: 30px;
        line-height: 40px;
    }

    h4 {
        font-weight: 300;
        font-size: 24px;
        line-height: 34px;
    }

    h5 {
        font-weight: 300;
        font-size: 20px;
        line-height: 28px;
    }

    .font-regular-large {
        font-weight: 400;
        font-size: 18px;
        line-height: 28px;
    }

       .font-semi-bold-small {
           font-weight: 500;
           font-size: 14px;
           line-height: 22px;
       }
       .font-semi-bold-small:lang(en) {
           font-weight: 600;
       }

}
