
body {
    margin: 0;
    font-family: helvetica, ariel, san-serif;
}

.form {
    padding: 1vh 5vw 5vh 5vw;
}

.form-horizontal {
    background-color: #ffffff;
    padding: 2vh;
    border: 0.12vh solid #ccc;
    border-radius: 0.5vh;
    justify-content: center;
}

h2 {
    margin-bottom: 2vh;
}

h4 {
    font-size: 2.5vh;
    color: #a800fc;
    margin-bottom: 1vh;
    margin-top: 0.5vh;
}

label {
    clear: left;
    font-weight: bold;
    margin-bottom: 0.8vh;
}

input[type=text], select, textarea, input[type=date] {
    padding: 1vh;
    width: 100%;
    font-size: 3vh;
    
    margin-bottom: 1.5vh;
    border: 0.12vh solid #ccc;
    border-radius: 0.4vh;
    box-sizing: border-box;
}

.text-box {
    display: block;
    padding: 1vh;
    margin-bottom: 1.5vh;
    border: 0.12vh solid #ccc;
    border-radius: 0.4vh;
    box-sizing: border-box;
    background-color: #fff;
}

.radio-btn {
    margin-bottom: 1vh;
}

.hinhthuc-radio-btn {
    display: flex;
    margin-right: 2vw;
}

.hinhthuc-radio-btn-container {
    display: flex;
    font-weight: normal;
}

/* Responsive */
@media screen and (max-width: 48vw) {
    .form {
        padding-right: 10vw;
    }

    .form-horizontal {
        padding: 2vh 1vw;
    }

    h4 {
        font-size: 2.5vh;
    }

    .imagelogo {
        height: 6vh;        /* fixed visual height */
        width: auto;        /* preserve ratio */
        max-width: 40vw;    /* prevent overflow on wide screens */
        object-fit: contain;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 10vh;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80vw;
    animation: animatetop 0.4s;
}

@keyframes animatetop {
    from { top: -30vh; opacity: 0 }
    to { top: 0; opacity: 1 }
}

/* Envelope */
.frame {
    width: 60vw;
    height: 35vh;
    margin: 25vh auto 0;
    position: relative;
    background: #435d77;
    border-radius: 0 0 4vh 4vh;
}

#button_open_envelope {
    width: 18vw;
    height: 3vh;
    position: absolute;
    z-index: 311;
    top: 25vh;
    left: 20.8vw;
    border-radius: 1vh;
    color: #fff;
    font-size: 2.6vh;
    padding: 1.5vh 0;
    border: 0.2vh solid #fff;
    transition: all .3s ease-in-out;
}

#button_open_envelope:hover {
    background: #fff;
    color: #081D3D;
    transform: scale(1.1);
    cursor: pointer;
}

.message {
    position: relative;
    width: 58vw;
    min-height: 30vh;
    background: #fff;
    margin: 0 auto;
    top: 3vh;
    box-shadow: 0 0 0.5vh 0.2vh #333;
    transition: 2s ease-in-out;
    transition-delay: 1.5s;
    z-index: 300;
}

.left, .right, .top {
    width: 0;
    height: 0;
    position: absolute;
    top: 0;
    z-index: 310;
}

.left {
    border-left: 30vw solid #081d3d;
    border-top: 16vh solid transparent;
    border-bottom: 16vh solid transparent;
}

.right {
    border-right: 30vw solid #081d3d;
    border-top: 16vh solid transparent;
    border-bottom: 16vh solid transparent;
    left: 30vw;
}

.top {
    border-right: 30vw solid transparent;
    border-top: 20vh solid #193e6e;
    border-left: 30vw solid transparent;
    transform-origin: top;
    transition: transform 1s, border 1s ease-in-out;
}

.bottom {
    width: 60vw;
    height: 33vh;
    position: absolute;
    background: #072247;
    top: 16vh;
    border-radius: 0 0 3vh 3vh;
    z-index: 310;
}

.open {
    transform: rotateX(180deg);
    border-top: 20vh solid #2c3e50;
    z-index: 200;
}

.pull {
    animation: message_animation 2s ease-in-out forwards;
    animation-delay: .45s;
}

/* Form spacing */
.form-group {
    margin-bottom: 2vh;
}

/* Button */
.lunar-new-year-btn {
    background-color: #d6001c;
    color: #ffd700;
    border: 0.2vh solid #ffd700;
    font-size: 1.8vh;
    font-weight: bold;
    padding: 1.2vh 2vw;
    border-radius: 1vh;
    box-shadow: 0 0.4vh 0.8vh rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lunar-new-year-btn:hover {
    background-color: #ff0000;
    color: #fff;
    transform: translateY(-0.3vh);
}

#radiobutton-container {
    display: flex;
}

#thoigianthamdu {
    display: block;
}

#imageContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #f0f0f0;
    padding: 1vh;
}

#imageContainer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hidden {
    display: none !important;
}

.imagelogo {
    height: 10vh;        /* fixed visual height */
    width: auto;        /* preserve ratio */
    max-width: 40vw;    /* prevent overflow on wide screens */
    object-fit: contain;
}

/* ===============================
   AUTOCOMPLETE – LARGE FONT
================================ */

/* Dropdown container */
.ui-autocomplete {
    font-size: 3vh;              /* responsive */
    max-height: 40vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999 !important;    /* stay above modal */
}

/* Each item */
.ui-menu-item-wrapper {
    padding: 1vh 1.5vw;
    line-height: 1.5;
}

/* Hover / active item */
.ui-menu-item-wrapper.ui-state-active {
    background: #48a3ff;
    color: #fff;
    border: none;
}

/* Mobile fine-tuning */
@media (max-width: 768px) {
    .ui-autocomplete {
        font-size: 3.5vh;
    }
}
