/* Thiết lập chung cho form */
#REPORT {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    /* width: 100vw; */
    padding: 0px 200px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#hd_doubleForm {
    max-width: 1024px;
    width: 100%;
    margin: auto;
    text-align: center;
}

.hd_double-child {
    width: 40%;
    display: flex;
    flex-wrap: wrap;
    padding: 0px;
    gap: 15px;
    position: relative;
    justify-content: center;
    align-content: flex-start;
}

.hd_double-child #fullname1,
.hd_double-child #fullname2 {
    width: 100%;
}

.hd_double-child #date1,
.hd_double-child #date2 {
    width: 50%;
}

.hd_double-child #time1,
.hd_double-child #time2 {
    width: 50%;
}

.hd_double-child #birthplace1,
.hd_double-child #birthplace2 {
    width: 100%;
}

/* #hd_doubleForm input {
    padding: 10px 15px;
    border-radius: 5px;
    color: #000;
    background-color: #ffffff9e;
    margin-bottom: 5px;
    border: 0;
    text-align: center;
} */

#hd_doubleForm input::placeholder {
    color: #000;
}

#hd_doubleForm button {
    text-align: center;
    cursor: pointer;
}



/* Điều chỉnh khoảng cách giữa 2 cột */
.hd_double .hd_double-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    column-gap: 100px;
    gap: 50px;
}

/* Xử lý lỗi */
#error-message,
.error-message {
    margin-top: 10px;
    display: none;
    color: red;
    width: 100%;
}

.dh_double_imd {
    position: absolute;
    top: -100px;
    width: 140px;
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {

    /* Thiết lập chiều rộng 100% cho mỗi cột trên màn hình nhỏ */
    .hd_double-child {
        width: 100%;
        padding: 0;
    }
}

#error-message,
.error-message {
    margin-top: 10px;
    display: none;
    color: red;
}

.auto-wrapper.auto-is-active ul {
    list-style-type: none;
    padding-left: 0 !important;
    margin-bottom: 0px;
    text-align: left;
}

.auto-wrapper.auto-is-active ul {
    background-color: #fff;
    list-style: none;
    padding-left: 0px;
    max-height: 150px;
    overflow: auto;
    position: relative;
    text-align: left;
    width: 100%;
    left: 0;
}

.auto-wrapper.auto-is-active ul li {
    border-bottom: 1px solid #ccc;
    padding: 5px;
    font-size: 16px;
    cursor: pointer;
}

.auto-wrapper.auto-is-active ul li:hover {
    background-color: #ccc;
}

.auto-clear {
    display: none !important;
}

.auto-wrapper {
    display: none;
}

.auto-wrapper.auto-is-active {
    display: block;
    width: 100%;
    position: relative;
}

#tracuu-loading {
    text-align: center;
    padding: 50px 0;
}

/* #tracuu-loading img {
    max-height: 90px;
} */

#tracuu-loading p {
    color: #fff;
}

#hddouble_chart {
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 30px 0px 0px 0px;
    margin: auto;
    text-align: center;
}

#hddouble_chart .hddouble-chart-wrap {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 20px;
    row-gap: 30px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 5%;
}

#hddouble_chart .hddouble-chart-wrap #left_props,
#hddouble_chart .hddouble-chart-wrap #right_props {
    width: 10%;
}

#hddouble_chart .hddouble-chart-wrap #svg_1,
#hddouble_chart .hddouble-chart-wrap #svg_combined,
#hddouble_chart .hddouble-chart-wrap #svg_2 {
    width: 25%;
}

.hdapi-design,
.hdapi-personality {
    position: relative;
}

.hdapi-design .hdapi-heading {
    position: absolute;
    bottom: -10px;
    left: -225px;
}

.hdapi-personality .hdapi-heading {
    position: absolute;
    bottom: -10px;
    right: -215px;
}

.hdapi-heading {
    margin-bottom: 10px;
    color: #fff;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.hdapi-item {
    display: flex;
    justify-content: space-between;
    column-gap: 3px;
    padding: 5px 10px;
    background-color: #ffffffcf !important;
    margin-bottom: 5px;
    border-radius: 3px !important;
    font-size: 14px;
}

.hdapi-item svg {
    max-width: 20px;
}

.hdapi-item .hdapi-fixing-state svg {
    width: 8px !important
}

.hdapi-item .hdapi-relationship {
    display: flex;
    flex-wrap: nowrap;
    column-gap: 3px;
    flex-direction: row-reverse;
}

#hd_double_chart {
    max-width: 100%;
}

.hddouble-chart-content {
    margin-top: 60px;
    background-color: unset !important;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 30px;
    row-gap: 30px;
    padding: 0px 0px !important;
    border-radius: 10px;
}

.hddouble-chart-content tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    border-bottom: 1px solid #00000038 !important;
    padding: 5px 0px 0px 0px;
    font-size: 14px;
    color: #000000cf;
}

/*
.hddouble-chart-content tr td{
    display: block;
    max-width: 80%;
} */

.hddouble-chart-content tr th {
    padding: 5px 0px 0px 0px;
    text-align: left;
    word-break: inherit;
    width: 100%;
    max-width: 150px;
    word-wrap: break-word;
    border-width: 0px !important;
    color: #000000cf;
}

.hddouble-chart-content tr td {
    text-align: right;
    border-width: 0px !important;
    padding-bottom: 5px !important;
    color: #000000cf;
}

.hddouble-chart-content tr td p {
    color: #000000cf;
}

.hddouble-chart-content h3 {
    font-size: 18px;
    font-weight: bold;
}

#hddouble_media {
    display: flex;
    justify-content: center;
    column-gap: 30px;
    row-gap: 30px;
    align-items: center;
    padding: 30px 0 10px;
}

#hddouble_media audio {
    max-height: 40px;
    width: 100%;
    max-width: 310px;
}

#hmd_props_combined {
    width: 35%;
    padding: 20px !important;
    background-color: #ffffffcf !important;
    border-radius: 10px;
}

#hmd_props_1,
#hmd_props_2 {
    width: 30%;
    padding: 20px !important;
    background-color: #ffffffcf !important;
    border-radius: 10px;
}

#hddouble_footer {
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 15px;
    row-gap: 20px;
    padding: 0 20px;
}

.hddouble-chart #AUDIOPLAYER, 
.hddouble-chart .audio-instruction {
    display: none !important;
    color: #fff !important;
}


@media (max-width: 1280px) {
    .hdapi-item {
        font-size: 14px;
    }

    #hddouble_chart .hddouble-chart-wrap #left_props,
    #hddouble_chart .hddouble-chart-wrap #right_props {
        width: 13%;
    }

    #hddouble_chart {
        max-width: 100%;
    }

    #hddouble_chart .hddouble-chart-wrap {
        padding: 0;
    }
}

@media(max-width: 1024px) {
    #hddouble_chart .hddouble-chart-wrap {
        flex-wrap: wrap;
    }

    #hddouble_chart .hddouble-chart-wrap #svg_1,
    #hddouble_chart .hddouble-chart-wrap #svg_2 {
        width: 45%;
        order: 1;
    }

    #hddouble_chart .hddouble-chart-wrap #right_props,
    #hddouble_chart .hddouble-chart-wrap #left_props {
        order: 2;
    }

    #hddouble_chart .hddouble-chart-wrap #svg_combined {
        width: 50%;
        order: 2;
    }
}

@media(max-width: 768px) {
    #REPORT {
        padding: 80px 15px 0px 15px;
    }

    #hddouble_chart .hddouble-chart-wrap #svg_combined {
        width: 45%;
        order: 2;
    }

    #hddouble_chart .hddouble-chart-wrap #left_props,
    #hddouble_chart .hddouble-chart-wrap #right_props {
        width: 20%;
    }

    .hddouble-chart-content {
        flex-wrap: wrap;
    }

    .hd_double-row {
        flex-wrap: wrap !important;
        row-gap: 30px;
    }

    .hd_double-child {
        column-gap: 3px;
    }

    #hmd_props_1,
    #hmd_props_2,
    #hmd_props_combined {
        width: 100%;
    }

    .hdapi-design .hdapi-heading {
        position: unset;
    }

    .hdapi-personality .hdapi-heading {
        position: unset;
    }

    .hdapi-heading {
        margin-left: 0px;
    }
}

@media(max-width: 480px) {
    #hddouble_chart .hddouble-chart-wrap #svg_combined {
        width: 90%;
    }

    #hddouble_chart .hddouble-chart-wrap #left_props,
    #hddouble_chart .hddouble-chart-wrap #right_props {
        order: 3;
        width: 40%;
    }

    #hd_doubleForm {
        text-align: center;
    }

    #REPORT {
        padding: 0px 15px 0px 15px;
    }

    .hdapi-design .hdapi-heading {
        position: unset;
    }

    .hdapi-personality .hdapi-heading {
        position: unset;
    }

    .hdapi-heading {
        margin-left: 0px;
    }
}