:root {
    --primary: #8259d3;
    --primary-dark: #6438b5;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-main: #f0f2f5; /* Grey background outside the app container */
    --wa-green: #25d366;
    --wa-green-dark: #128c7e;
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

/* Constrain Width like Mobile */
.app-container {
    max-width: 640px; /* Standard mobile width limits */
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
    padding-bottom: 20px; /* Extra space for footer */
}

/* Image Stack */
.image-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.image-stack img {
    width: 100%;
    height: auto;
    display: block; /* Removes bottom spacing on images */
    object-fit: cover;
}

/* Video Section */
.video-section {
    padding: 30px 20px 10px;
    background: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Order Form Section */
.order-form-container {
    padding: 20px;
    background: #ffffff;
}

.form-title {
    text-align: center;
    margin-bottom: 20px;
}

.form-title h2 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.form-title p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Cart Style Package Cards */
.pkg-card {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #f8fbff;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.pkg-card:hover {
    background: #f0f6fc;
}

.pkg-card.active {
    border-color: var(--primary);
    background: #fffdf5;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    margin-left: 10px;
    flex-shrink: 0;
}

.btn-qty {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: var(--primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-qty:hover {
    background: #f0f0f0;
}

.btn-qty.btn-minus {
    border-right: 1px solid #ced4da;
}

.btn-qty.btn-plus {
    border-left: 1px solid #ced4da;
}

.qty-input {
    width: 32px;
    height: 28px;
    border: none;
    text-align: center;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-main);
    pointer-events: none; /* User shouldn't type directly */
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pkg-img-wrap {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-right: 12px;
}

.pkg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pkg-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.4;
}

.pkg-name {
    font-size: 0.95rem; /* Slightly smaller to fit layout */
    font-weight: 600;
    color: #0b2b40;
}

.pkg-price {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.btn-detail {
    color: #00a8e8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 2px;
    display: inline-block;
}

/* Inputs */
.order-form input[type="text"],
.order-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
}

.order-form input:focus,
.order-form select:focus {
    outline: none;
    border-color: var(--primary);
}

.privacy-links {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
}

.privacy-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* FAQ Section text-based */
.faq-section {
    padding: 20px;
    background: #fff;
    border-top: 5px solid #f0f0f0;
}

.faq-title {
    font-size: 1.3rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    text-align: center;
}

.faq-block {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-block h3 {
    font-size: 1.05rem;
    color: #000;
    margin-bottom: 10px;
}

.faq-block p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

/* Notice */
.footer-notice {
    text-align: center;
    padding: 20px;
    font-weight: 600;
    background: #fff;
}

/* Full Width Fixed Whatsapp Button */
.btn-wa-fixed {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px; /* Match app container width */
    background: var(--wa-green);
    color: #fff;
    text-align: center;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transition: background 0.3s;
}

.btn-wa-fixed i {
    font-size: 1.5rem;
}

.btn-wa-fixed:hover {
    background: var(--wa-green-dark);
}

/* Main Footer below app container */
.main-footer {
    text-align: center;
    padding: 30px 20px 100px; /* Extra padding for floating button */
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-main);
}

/* Image Zoom Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
    border-radius: 12px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        max-width: 95%;
    }
    .close-modal {
        top: 15px;
        right: 25px;
    }
}
