﻿/* -----------------------------------
   1. Base & Reset
----------------------------------- */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
}

p,
h2,
h3,
h4,
ol {
    margin: 0px !important;
}

.hide-on-desktop {
    display: none;
}

@media (max-width: 767px) {
    .hide-on-desktop {
        display: initial;
    }

    .hide-on-mobile {
        display: none;
    }
}

/* -----------------------------------
   2. Layout Structure
   - Containers, Columns
----------------------------------- */
.site-header {
    background-color: #081523;
    padding: 20px 0;
}

.header-container {
    width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: left;
}

.main-container {
    /*background: url('https://dreamforest.com.my/wp-content/uploads/2025/03/Frame-21.png') center/cover no-repeat;*/
    background: url('https://dreamforest.com.my/wp-content/uploads/2023/08/Background.jpeg') center/cover no-repeat;
    background-attachment: fixed;
}

.inner-container {
    width: 1280px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 37vw;
}

.step-title {
    font-size: 22px;
    color: white;
    font-weight: 500;
    margin-bottom: 20px;
    gap: 10px;
    display: flex;
}

.step-title2 {
    font-size: 22px;
    color: white;
    font-weight: 500;
    margin-bottom: 20px;
    gap: 10px;
    display: flex;
}

#back-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.columns {
    display: flex;
    column-gap: 20px;
}

@media (max-width: 767px) {
    .site-header {
        padding: 15px 0;
    }

    .header-container,
    .inner-container {
        width: 90%;
        justify-content: center;
    }

    .header-container img {
        width: 20%;
    }

    .step-title {
        text-align: center;
        font-size: 20px;
        justify-content: center;
    }

    .step-title2 {
        text-align: center;
        font-size: 20px;
    }

    .inner-container {
        padding: 10px 0px 150px 0px;
        min-height: 150vw;
    }

    .columns {
        flex-direction: column;
        row-gap: 20px;
    }
}

/* -----------------------------------
   3. Left Column
   - Containers, Components
----------------------------------- */
.left-column {
    width: 70%;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tabs a {
    background-color: #EAEAEA;
    font-size: 16px;
    font-weight: 500;
    color: #757575;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.tabs a:hover,
.tabs a.active {
    background-color: #a020f0;
    color: #ffffff;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    color: #a020f0;
    margin-top: 1.5em !important;
}

.left-column .category-title:not(:first-of-type) {
  margin-top: 40px; /* adjust as needed */
}

@media (max-width: 767px) {
    .left-column {
        width: initial;
        padding: 0px;
        background-color: #FFFFFF00;
    }

    .tabs a {
        padding: 5px 10px;
    }
}

/* -----------------------------------
   4. Right Column
   - Containers, Components
----------------------------------- */
.right-column {
    width: 30%;
    height: fit-content;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-sizing: border-box;
    z-index: 2;
}

#selected-date {
    font-size: 28px;
    padding-top: 2px;
}

.right-column hr {
    color: #DEDEDE;
    width: 100%;
    margin: 20px 0;
}

.right-column h3 {
    font-size: 14px;
    font-weight: 400;
    color: #808080;
}

#selected-nationality,
#selected-ticket,
#selected-food {
    font-size: 16px;
    padding-top: 5px;
}

.total-discount-container,
.total-payable-container,
.ticket-choice,
.promo-choice{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-choice,
.promo-choice {
    margin-top: 3px;
}

.ticket-choice h4,
.ticket-choice p {
    font-size: 15px;
    font-weight: 500;
}

.promo-choice h4,
.promo-choice p {
    font-size: 12px;
    font-weight: 500;
}

.total-discount-container {
    background-color: #F5FDF0;
    padding: 30px 0px;
    /*this one can make it like this 30px top and bottom 0px left right*/
    margin-top: -20px;
    /*i make this is to make the green color to cover the box*/
}

.total-discount-container h3,
.total-discount-container p {
    color: #088229 !important;
    font-size: 15px;
    font-weight: 500;
}

.total-payable-container {
    border-top: #DEDEDE solid 2px;
    padding: 20px 0px 0px;
    /*this one i add the top and bottom padding is to let the button and the text have gap */
}

.total-payable-container h3,
.total-payable-container label,
.total-payable-container p {
    color: #4C4DDC;
    font-size: 18px;
    font-weight: 600;
}

button#confirm-stay {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.continue-btn {
    margin-top: 20px !important;
    padding: 10px 15px;
    background-color: #1F0A3A;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.continue-btn:hover {
    background-color: #2C3E64;
}


.mobile-date-selected-container,
#mobile-total-payable {
    display: none;
}

.mobile-date-selected-container h3 {
    font-size: 14px;
    font-weight: 400;
    color: #1F0A3A;
}

.mobile-date-selected-container p,
.mobile-date-selected-container h4 {
    font-size: 14px;
    font-weight: 700;
    color: #A020F0;
    padding-top: 5px;
}

@media (max-width: 767px) {
    .right-column {
        width: initial;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        border-radius: 20px 20px 0px 0px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .desktop-date-selected-container {
        display: none;
    }

    .mobile-date-selected-container,
    #mobile-total-payable {
        display: block;
    }

    .ticket-choice {
        margin-top: 0px;
    }
}

/* -----------------------------------
   5. Unified Components
   - Label Icons, Price Container
----------------------------------- */
/* 5.1 Labels */
.label-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.label-icon img {
    width: 8%;
}

.label-icon h3,
.label-icon label {
    font-size: 18px;
    font-weight: bold;
}

.nationality-container .label-icon {
    margin-bottom: 15px;
}

@media (max-width: 767px) {
    .label-icon {
        justify-content: center;

    }
}

/* 5.2 Reminder Box */
.reminder {
    font-size: 12px;
    font-weight: 400;
    color: #A020F0;
    background-color: #FFE6E6;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: start;
}

.reminder img {
    width: 5%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

/*.nationality-container .reminder {
    background-color: #F9F9F9;
    color: #5CA7FF;
}*/

@media (max-width: 767px) {
    .reminder img {
        width: 5vw;
    }
}

/* 5.3 Product Item */
.products {
    display: flex;
    flex-wrap: wrap;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
}

.product-container {
    display: flex;
    flex-direction: column;
    background-color: #F9F9F9;
    border-radius: 15px;
    padding: 10px;
    width: 45%;
}

.product-top-part {
    display: flex;
    gap: 15px;
    padding-bottom: 10px;
    align-items: flex-start;
}

.product-top-part img {
    /*this one i have change the image to become 100px*/
    width: 100px;
    border-radius: 15px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.product-title-description-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
}

.product-description {
    font-size: 14px;
    font-weight: 400;
    color: #7C7C7C;
}

.product-bottom-part {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.product-quantity-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-quantity {
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

.product-quantity input {
    text-align: center;
    border: none;
    font-size: 16px;
    background: transparent;
    pointer-events: none;
    width: 70px;
    z-index: 0;
}

.product-quantity-btn-decrease,
.product-quantity-btn-increase {
    width: 30px;
    height: 30px;
    border: none;
    background: #a020f0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
}

.product-quantity-btn-decrease {
    /*margin-right: -25px;*/
}

.product-quantity-btn-increase {
    /*margin-left: -45px;*/
}

.product-quantity-btn-decrease.disabled {
    background: #EBEBEB;
    color: #1F0A3A;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .product-container {
        width: 100%;
    }
}

/* 5.4 Price Container */
.price-container {
    display: flex;
    align-items: end;
    gap: 10px;
}

.discount {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: #D940C7;
    padding: 5px;
    border-radius: 5px;
}

.price {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
}

.before-price {
    font-size: 12px;
    font-weight: 400;
    color: #909090;
}

.after-price {
    font-size: 16px;
    font-weight: 600;
    color: #4C4DDC;
}

.product-container .price {
    align-items: flex-start;
}

/* 5.5 Variation Box and Popup */
.product-variation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: #EBEBEB;
    padding: 5px;
    border-radius: 7px;
    cursor: pointer;
}

.product-variation img {
    width: 5%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.product-variation p {
    color: #939393;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    max-width: 400px;
    background-color: white;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
    /* performance boost */
}

.popup.show {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.popup .product-container {
    width: auto;
}

#confirm-btn:hover {
    background-color: #2C3E64;
}

#confirm-btn {
    padding: 10px 15px;
    background-color: #1F0A3A;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    border-radius: 5px;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    transition: background-color 0.2s ease-in-out;
}


#confirm-back {
    background-color: #EBEBEB;
    color: black;
    margin-top: -5px;
}

.cancel-btn {
    /*margin-top: -5px;*/
    padding: 10px 15px;
    background-color: #EBEBEB;
    color: black;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

@media (max-width: 767px) {
    .popup-overlay {
        align-items: flex-end;
    }

    .popup {
        border-radius: 20px 20px 0px 0px;
    }
}

/* -----------------------------------
   2. Div Menu (Requested by Globalsoft)
   - Label, Inputs
----------------------------------- */
.divmenu {
    color: black;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.divmenu ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
}

.divmenu a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}

.divmenu a:hover,
.divmenu a:active {
    color: #4C4DDC;
    text-decoration: underline;
}

/* Hamburger menu icon */
.menu-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    z-index: 1000;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Nav menu styles */
.nav-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background: #333;
    padding: 4rem 1rem 1rem;
    transition: right 0.3s ease;
    z-index: 999;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin: 1rem 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ccc;
}

/* Overlay when menu is open */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* When menu is active, transform hamburger to X */
.menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hide mobile menu by default */
#mobile-menu {
    display: block;
}

#divmenu {
    display: none;
}

/* Show mobile menu and hide desktop menu on small screens */
@media (max-width: 767px) {
    #divmenu {
        display: none;
    }

    #mobile-menu {
        display: block;
    }
}


.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    .result-table th, .result-table td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: left;
        word-wrap: break-word;
    }

    .result-table th {
        background-color: #f2f2f2;
        position: sticky;
        top: 0;
    }

    .result-table tr {
        margin-bottom: 5px;
    }

    .result-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .result-table tr:hover {
        background-color: #f1f1f1;
    }

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .result-table {
        font-size: 14px;
    }

        .result-table th, .result-table td {
            padding: 8px;
        }
}

.back-imgbtn {
    background: none;
    border: none;
    cursor: pointer;
    height: fit-content;
    margin-top: 4px;
}