/* Global styles for Bengali font and basic resets */
body {
    font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
    line-height: 1.6;
    background: #fff;
    color: #333;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
.container { max-width: 1280px; margin: 0 auto; }
section { padding: 40px 20px; }

/* Styles from original style.css */
:root {
    --primary: #5d116e;
    --primary-alt: #8e44ad;
    --accent: #28a745;
    --radius: 6px;
}

/* PAGE 1 */
#page1 {
    min-height: 100vh;
    background-image:
        linear-gradient(to bottom, #41DDC8 0%, #fff 100%),
        repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0, rgba(255,255,255,.4) 2px, transparent 2px, transparent 20px),
        repeating-linear-gradient(0deg, rgba(255,255,255,.4) 0, rgba(255,255,255,.4) 2px, transparent 2px, transparent 20px);
    background-size: cover,20px 20px,20px 20px;
    background-repeat: no-repeat,repeat,repeat;
}
#page1 .header { text-align: center; margin-bottom: 30px; }
/* Centering the logo */
#page1 .header img {
    width: 147px;
    height: 138px;
    object-fit: contain;
    display: block; /* Ensures margin auto works */
    margin: 0 auto; /* Centers the image */
}
#page1 .hero-text1,
#page1 .hero-text2 {
    text-align: center; font-weight: 700; margin: 0 auto 20px;
}
#page1 .hero-text1 {
    color: #fff; font-size: 32px; line-height: 48px; max-width: 966px;
}
#page1 .hero-text2 {
    color: #000; font-size: 28px; line-height: 40px; max-width: 692px;
}
#page1 .hero-text2 .highlight { color: #FFD700; margin-left: 5px; }
#page1 .slider {
    max-width: 401px; height: 610px; margin: 0 auto 40px;
    overflow: hidden; position: relative;
}
#page1 .slider-track {
    display: flex; transition: transform .6s ease;
}
#page1 .slider-track img {
    flex: 0 0 100%; object-fit: cover; height: 610px;
}
#page1 .pics-wrapper {
    overflow: hidden; margin: 0 auto; max-width: 710px;
}
#page1 .pics-track {
    display: flex; transition: transform .6s ease;
}
#page1 .pics-track img {
    flex: 0 0 auto; width: 126px; height: 129px;
    object-fit: cover; margin-right: 20px;
}
#page1 .pics-track img:last-child { margin-right: 0; }
@media(max-width:768px){
    #page1 .header img{ width:120px; height:auto; }
    #page1 .hero-text1{ font-size:26px; line-height:38px; }
    #page1 .hero-text2{ font-size:22px; line-height:32px; }
    #page1 .slider{ max-width:100%; height:auto; }
    #page1 .slider-track img{ height:auto; }
    #page1 .pics-wrapper{ width:100%; }
    #page1 .pics-track img{
        width: calc((100% - 4*10px)/5);
        margin-right:10px; height:auto;
    }
}

/* PAGE 2 */
#page2 .btn-wrap { text-align: center; margin-bottom: 40px; }
#page2 .order-btn {
    width: 235px; height: 45px; line-height: 45px;
    background: linear-gradient(45deg, var(--primary), var(--primary-alt));
    color: #fff; font-size: 17px; font-weight: 900;
    border: none; border-radius: var(--radius); cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
#page2 .order-btn:hover {
    transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
#page2 .subtitle {
    max-width: 806px; margin: 0 auto 60px;
    text-align: center; font-size: 22px; font-weight: 900;
    background: linear-gradient(60deg, var(--primary), var(--primary-alt));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
#page2 .main {
    display:flex; flex-wrap:wrap;
    align-items:flex-start; justify-content:center;
}
#page2 .image {
    position:relative; margin-right:80px;
    border-radius:var(--radius); overflow:hidden;
    box-shadow:0 10px 20px rgba(0,0,0,0.1);
    transition: transform .3s;
}
#page2 .image::before {
    content:''; position:absolute;
    width:180px; height:180px;
    background: radial-gradient(circle at center, var(--primary-alt), transparent 60%);
    border-radius:50%; top:-40px; left:20px; z-index:-1;
}
#page2 .image img {
    display:block; width:100%; max-width:423px; height:auto;
}
#page2 .image:hover { transform: scale(1.03) rotate(1deg); }
#page2 .features {
    flex:1 1 300px; list-style:none; padding-left:0;
}
#page2 .features li {
    position:relative; padding-left:36px; margin-bottom:16px;
    font-size:20px; font-weight:900;
    opacity:0; transform:translateX(-20px);
    animation:slideIn .5s ease forwards;
}
#page2 .features li:nth-child(1){animation-delay:.2s;}
#page2 .features li:nth-child(2){animation-delay:.4s;}
#page2 .features li:nth-child(3){animation-delay:.6s;}
#page2 .features li:nth-child(4){animation-delay:.8s;}
#page2 .features li:nth-child(5){animation-delay:1s;}
#page2 .features li:nth-child(6){animation-delay:1.2s;}
#page2 .features li:nth-child(7){animation-delay:1.4s;}
#page2 .features li:nth-child(8){animation-delay:1.6s;}
#page2 .features li::before {
    content:'➤'; position:absolute; left:0; top:2px;
    color: var(--accent); transform:rotate(-10deg); font-size:22px;
}
@keyframes slideIn{ to{opacity:1; transform:translateX(0);} }
@media(max-width:768px){
    #page2 .main{ flex-direction:column; align-items:center; }
    #page2 .image{ margin:0 0 20px; }
    #page2 .features li{ font-size:18px; padding-left:32px; }
    #page2 .features li::before{ font-size:20px; }
    #page2 .subtitle{ font-size:20px; }
    #page2 .order-btn{ width:200px; font-size:16px; }
}

/* PAGE 3 */
#page3 .container {
    display:flex; flex-wrap:wrap; justify-content:space-between;
    gap:20px;
}
#page3 .product-card {
    flex:0 0 283px; border:1px solid #ddd;
    display:flex; flex-direction:column; align-items:center;
    padding-top:20px;
}
#page3 .product-card img {
    width:253px; height:382px; object-fit:cover;
}
#page3 .code-box {
    width:257px; height:29px; background:#000;
    color:#8B0000; font-weight:bold;
    display:flex; align-items:center; justify-content:center;
    margin-top:10px;
}
#page3 .order-btn {
    width:159px; height:42px; background:#5d116e;
    color:#fff; border:none; cursor:pointer;
    font-size:16px; margin-top:10px;
}
#page3 .order-btn:hover{ opacity:.9; }
@media(max-width:1024px){
    #page3 .product-card{ flex:0 0 calc(50% - 20px); }
    #page3 .product-card img{ width:100%; height:auto; max-width:253px; }
    #page3 .code-box{ width:100%; max-width:257px; }
    #page3 .order-btn{ width:100%; max-width:159px; }
}
@media(max-width:600px){
    #page3 .product-card{ flex:0 0 100%; }
}

/* PAGE 4 */
#page4 .box1 {
    width:90%; max-width:813px; aspect-ratio:813/450;
    margin:50px auto; border:4px double #5d116e; border-radius:12px;
    display:flex; flex-direction:column; align-items:center;
    justify-content:center; gap:.75rem; text-align:center;
    padding:1rem 0; box-shadow:0 4px 8px rgba(0,0,0,.1);
}
#page4 .box1 p {
    font-size:clamp(16px,2vw,20px); font-weight:700;
    letter-spacing:.5px; text-shadow:1px 1px 2px rgba(0,0,0,.1);
}
#page4 .box1 .btn-order {
    width:clamp(180px,25vw,212px); height:clamp(44px,5vh,54px);
    background:#5d116e; color:#fff; font-size:clamp(16px,2vw,18px);
    font-weight:700; border:2px solid #fff; border-radius:6px;
    cursor:pointer; transition:background .3s;
}
#page4 .box1 .btn-order:hover{ background:#47104e; }
#page4 .box2 {
    background:#000; color:#fff; text-align:center;
    padding:1rem; font-weight:700; letter-spacing:.5px;
    border-top:3px dashed #5d116e; border-bottom:3px dashed #5d116e;
    margin:40px 0;
}
#page4 .section3 {
    display:flex; flex-wrap:wrap; gap:1rem; margin:40px 0;
}
#page4 .section3 .text {
    flex:1 1 45%; border-left:4px solid #5d116e; padding-left:1rem;
}
#page4 .section3 .text p {
    position:relative; font-size:clamp(18px,2vw,20px);
    font-weight:700; margin-bottom:1rem; letter-spacing:.5px;
    text-shadow:1px 1px 2px rgba(0,0,0,.08); padding-left:2rem;
}
#page4 .section3 .text p::before {
    content:"👉"; position:absolute; left:0; top:0;
    color:#28a745; font-size:1.2em; line-height:1;
}
#page4 .section3 .image {
    flex:1 1 45%; max-width:409px; aspect-ratio:1/1;
    overflow:hidden; border:4px groove #5d116e; border-radius:8px;
    box-shadow:0 4px 8px rgba(0,0,0,.1);
}
#page4 .section3 .image img {
    width:100%; height:100%; object-fit:cover;
}
#page4 .final-order {
    display:block; margin:40px auto 60px;
    width:clamp(180px,25vw,212px); height:clamp(44px,5vh,54px);
    background:#5d116e; color:#fff; font-weight:700;
    text-align:center; line-height:clamp(44px,5vh,54px);
    border:2px solid #fff; border-radius:6px;
    text-decoration:none; cursor:pointer; transition:background .3s;
}
#page4 .final-order:hover{ background:#47104e; }
@media(max-width:768px){
    #page4 .box1{ width:100%; margin:30px auto; }
    #page4 .section3{ flex-direction:column; align-items:center; }
    #page4 .section3 .text,
    #page4 .section3 .image{ flex:1 1 100%; max-width:100%; }
}

/* PAGE 5 */
#page5 .container { text-align:center; }
#page5 .color-main {
    display:block; color:#70254f; font-size:1.6rem; margin-bottom:20px;
}
#page5 .price-line strong {
    font-size:2rem; font-weight:700;
}
#page5 .price-line .highlight {
    color:#ff0f6a;
}
#page5 .contact-line strong {
    font-size:2rem; font-weight:700;
}
#page5 .contact-line .phone {
    color:red;
}
#page5 .unique-offer {
    color:green; font-size:1.4rem; margin:10px 0;
}
#page5 .box-black {
    background:#000; color:#fff; padding:20px; text-align:center;
    max-width:677px; margin:30px auto;
}
#page5 .box-black .promo {
    font-size:1.5rem; margin-bottom:10px;
}
#page5 .box-black .detail {
    color: yellow; font-size:1.3rem;
}
#page5 .special-box {
    background:#a3007e; color:#fff; padding:20px; text-align:center;
    font-size:2rem; line-height:1.2; margin:30px auto;
}
@media(max-width:1024px){
    #page5 .price-line strong,
    #page5 .contact-line strong{ font-size:1.8rem; }
    #page5 .special-box{ font-size:1.8rem; }
}
@media(max-width:768px){
    #page5 .color-main{ font-size:1.4rem; }
    #page5 .price-line strong,
    #page5 .contact-line strong{ font-size:1.6rem; }
    #page5 .box-black .promo{ font-size:1.3rem; }
    #page5 .box-black .detail{ font-size:1.1rem; }
    #page5 .special-box{ font-size:1.5rem; padding:15px; }
}
@media(max-width:480px){
    #page5 .color-main{ font-size:1.2rem; }
    #page5 .price-line strong,
    #page5 .contact-line strong{ font-size:1.4rem; }
    #page5 .special-box{ font-size:1.2rem; padding:10px; }
}

/* Styles from order.html specific to the order form/modal */
/* Custom styles for better UI for order section */
.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
}
.product-card-order { /* Renamed to avoid conflict with page 3 product card */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border: 1px solid #e2e8f0; /* Default border */
}
.product-card-order:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.product-card-order.selected {
    border-color: #6366f1; /* Indigo-500 */
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); /* Subtle indigo shadow */
}
/* Hide scrollbar for quantity input */
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-input {
    -moz-appearance: textfield;
}
/* Modal animations */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease-in-out;
}
.modal-content {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
/* Error message styling */
.error-message {
    color: #ef4444; /* Red-500 */
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.5rem;
    text-align: center;
    opacity: 0;
    max-height: 0; /* Changed from height: 0; */
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, padding 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.error-message.show {
    opacity: 1;
    max-height: 50px; /* A reasonable max-height */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    transform: translateY(0);
}
/* Style for field-specific validation messages */
.field-error-message {
    color: #ef4444; /* Red-500 */
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.25rem;
    text-align: left;
    opacity: 0;
    max-height: 0; /* Initially hide with height 0 */
    overflow: hidden;
    padding-top: 0; /* Added for transition */
    padding-bottom: 0; /* Added for transition */
    transition: opacity 0.3s ease-in-out, max-height 0.3s ease-in-out, padding 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(-5px);
}
.field-error-message.show {
    opacity: 1;
    max-height: 50px; /* A reasonable max-height for a single line of error text */
    padding-top: 0.25rem; /* Re-add padding when shown */
    padding-bottom: 0.25rem; /* Re-add padding when shown */
    transform: translateY(0);
}
