/* Figma registration-card styling. It is scoped to /dang-ky markup only. */
.hd-register-form-card {
    width: 770px !important;
    max-width: 100%;
    margin: 0 auto !important;
    float: none !important;
    /* The legacy .title/.feildcont are floated.  Resetting them below keeps
       the card's border wrapped around the complete form. */
    border: 1px solid #e3e3e3 !important;
    background: #fff;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, .08);
}

.hd-register-form-card::after {
    display: table;
    clear: both;
    content: "";
}

.hd-register-form-card .hd-register-form-heading {
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 22px 20px 20px !important;
    border: 0;
    background: #f3f3f3;
    text-align: center;
}

.hd-register-form-card .hd-register-form-heading h3 {
    margin: 0 !important;
    color: #2a363f;
    font-family: Roboto, Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .5px;
    line-height: 28px;
    text-transform: uppercase;
}

.hd-register-form-card .hd-register-form-heading p {
    margin: 3px 0 0 !important;
    color: #000;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 12px;
    line-height: 23px;
}

.hd-register-form-card .hd-register-form-heading a,
.hd-register-form-card #register-form .agreement a { color: #3fc35f; }

.hd-register-form-card .hd-register-form-body {
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 39px 0 28px !important;
    background: #fff;
}

.hd-register-form-card #register-form {
    width: 523px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}

.hd-register-form-card #register-form .one-line {
    width: 100%;
    margin: 0 0 18px !important;
}

.hd-register-form-card #register-form .hd-register-two-columns {
    display: block;
}

.hd-register-form-card #register-form .hd-register-two-columns::after {
    display: table;
    clear: both;
    content: "";
}

.hd-register-form-card #register-form .one-line > label,
.hd-register-form-card #register-form .one_half > label {
    display: block;
    margin: 0 0 5px !important;
    color: #727272;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 23px;
}

.hd-register-form-card #register-form label em { color: #3fc35f; font-style: normal; }

.hd-register-form-card #register-form .one_half,
.hd-register-form-card #register-form .one_half.last {
    float: left !important;
    width: calc((100% - 20.91px) / 2) !important;
    margin: 0 !important;
}

.hd-register-form-card #register-form .one_half.last { float: right !important; }

.hd-register-form-card #register-form input:not([type="hidden"]),
.hd-register-form-card #register-form select {
    width: 100% !important;
    height: 39px !important;
    min-height: 39px;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #2a363f;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 21px;
}

.hd-register-form-card #register-form input::placeholder { color: #c2c2c2; opacity: 1; }
.hd-register-form-card #register-form input:focus,
.hd-register-form-card #register-form select:focus {
    border-color: #3fc35f !important;
    box-shadow: 0 0 0 2px rgba(63, 195, 95, .13) !important;
    outline: 0;
}

.hd-register-form-card #register-form .input-group {
    display: block !important;
    position: relative !important;
    /* The legacy label is floated.  Clear it before positioning the suffix,
       otherwise the absolute suffix starts on the label's line. */
    clear: both;
    height: 39px;
    width: 100%;
    margin: 0 !important;
}

.hd-register-form-card #register-form .input-group .input-two-third {
    display: block !important;
    float: none !important;
    width: calc(100% - 181px) !important;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 5px 0 0 5px !important;
    border-right: 0 !important;
}

.hd-register-form-card #register-form .input-group-append {
    display: block !important;
    position: absolute !important;
    top: 0;
    right: 0;
    float: none !important;
    width: 181px !important;
    height: 39px;
    margin-left: 0 !important;
}
.hd-register-form-card #register-form .input-group-text {
    display: flex;
    align-items: center;
    height: 39px;
    padding: 8px 12px;
    width: 100%;
    border: 1px solid #e3e3e3;
    border-left: 0;
    border-radius: 0 5px 5px 0;
    box-sizing: border-box;
    background: #e9ecef;
    color: #727272;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 14px;
    line-height: 21px;
}

.hd-register-form-card #register-form .agreement {
    margin: 2px 0 17px !important;
    color: #000;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
    line-height: 23px;
    text-align: left;
}

.hd-register-form-card #register-form .agreement i { font-style: italic; }
.hd-register-form-card #register-form .text_center { text-align: center; }
.hd-register-form-card #register-form .fbut.open_confirm {
    width: 205px;
    height: 49px;
    margin: 0 auto !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: #3fc35f !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: Roboto, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 49px;
    text-transform: uppercase;
}

.hd-register-form-card #register-form .fbut.open_confirm:hover,
.hd-register-form-card #register-form .fbut.open_confirm:focus { background: #2eae4d !important; }

.hd-register-form-card #register-form .hd-register-promotion {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 101px;
    margin: 19px -2px 0 !important;
    padding: 11px 20px !important;
    border-radius: 10px !important;
    background-color: #f3faf2 !important;
    color: #111;
    text-align: left;
}

.hd-register-form-card #register-form .hd-register-promotion-icon {
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 5px rgba(0, 0, 0, .21);
    color: #20b960;
    font-size: 36px;
}

.hd-register-form-card #register-form .hd-register-promotion p {
    margin: 0;
    color: #111 !important;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 12px;
    line-height: 25px;
}

.hd-register-form-card #register-form .hd-register-promotion strong {
    color: #111 !important;
    font-size: 13px;
    font-weight: 700;
}

.hd-register-form-card #register-form .hd-register-promotion b { color: #ff5b3f !important; }
.hd-register-form-card #register-form label.error { margin-top: 4px; color: #df4e4e; font-size: 12px; }

@media (max-width: 600px) {
    .hd-register-form-card .hd-register-form-body { padding: 29px 0 24px !important; }
    .hd-register-form-card #register-form { max-width: calc(100% - 32px); }
    .hd-register-form-card #register-form .one-line { display: block; margin-bottom: 14px !important; }
    .hd-register-form-card #register-form .one_half,
    .hd-register-form-card #register-form .one_half.last { float: none !important; width: 100% !important; margin-bottom: 14px !important; }
    .hd-register-form-card #register-form .one_half.last { margin-bottom: 0 !important; }
    .hd-register-form-card #register-form .hd-register-promotion { gap: 12px; padding: 12px !important; }
    .hd-register-form-card #register-form .hd-register-promotion-icon { width: 58px; height: 58px; flex-basis: 58px; font-size: 28px; }
}
