/* ========================================================
   Spark Pentagraph & Demarcation - Premium Stylesheet
======================================================== */

/* মূল কন্টেইনার ডিজাইন (২ কলামের জন্য প্রশস্ত করা হয়েছে) */
.spark-penta-container {
    max-width: 1000px; /* সাইডবারের জন্য প্রশস্ত করা হয়েছে */
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Hind Siliguri', sans-serif;
    border-top: 4px solid #0073aa;
}

/* ট্র্যাকিং কন্টেইনারের সাইজ আগের মতোই ছোট থাকবে */
.spark-tracking-container {
    max-width: 600px; 
    margin: 40px auto;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: 'Hind Siliguri', sans-serif;
    border-top: 4px solid #0073aa;
}

/* হেডিং স্টাইল */
.spark-penta-container h3, .spark-tracking-container h3 {
    text-align: center;
    color: #1a365d;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
    border-bottom: 2px solid #edf2f7;
    padding-bottom: 15px;
}

/* ========================================================
   ২-কলাম ফর্ম লেআউট (নতুন যুক্ত করা হয়েছে)
======================================================== */
.spark-form-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.spark-form-main {
    flex: 1.8; /* বাম দিকের ফর্ম অংশটি বড় থাকবে */
}
.spark-form-sidebar {
    flex: 1; /* ডান দিকের সাইডবার অংশ */
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: sticky; /* স্ক্রল করার সময় সাইডবার আটকে থাকবে */
    top: 20px;
}

/* ফর্ম ফিল্ড ও লেবেল */
.spark-penta-container .form-group {
    margin-bottom: 18px;
}

.spark-penta-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 15px;
}

/* ইনপুট বক্সের ডিজাইন */
.spark-penta-container input[type="text"],
.spark-penta-container input[type="number"],
.spark-tracking-container input[type="text"],
.spark-penta-container select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.spark-penta-container input[type="text"]:focus,
.spark-penta-container input[type="number"]:focus,
.spark-tracking-container input[type="text"]:focus,
.spark-penta-container select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* ড্র্যাগ অ্যান্ড ড্রপ ফাইল আপলোড এরিয়া লুক */
.spark-penta-container input[type="file"] {
    width: 100%;
    padding: 10px;
    cursor: pointer;
}

.document-upload-group {
    background: #ebf8ff;
    padding: 15px;
    border: 2px dashed #3182ce;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
    transition: background 0.3s ease;
}

.document-upload-group:hover {
    background: #e6fffa;
    border-color: #38b2ac;
}

/* চেক বক্স ডিজাইন */
.spark-penta-container .checkbox-group {
    display: flex;
    align-items: flex-start;
    background: #fff5f5;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #fed7d7;
}

.spark-penta-container .checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.spark-penta-container .checkbox-group label {
    margin-bottom: 0;
    color: #c53030;
    cursor: pointer;
    line-height: 1.4;
}

/* লাইভ কস্ট ক্যালকুলেটর বক্স */
.spark-penta-container .price-calculator-box {
    background: #ebf4ff;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #bee3f8;
}

.spark-penta-container .price-calculator-box h4 {
    margin: 0 0 5px 0;
    color: #2b6cb0;
    font-size: 26px;
    font-weight: 700;
}

.spark-penta-container .price-calculator-box p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
}

/* সাবমিট বাটন ডিজাইন */
.spark-penta-container #submit_order_btn,
.spark-tracking-container #track_btn {
    background: #0073aa;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spark-penta-container #submit_order_btn:hover,
.spark-tracking-container #track_btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.spark-penta-container #submit_order_btn:active,
.spark-tracking-container #track_btn:active {
    transform: scale(0.98);
}

/* ট্র্যাকিং ফর্মের CSS Fix */
.tracking-form-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.tracking-form-wrapper input[type="text"] {
    flex-grow: 1; /* ইনপুট ফিল্ড বড় করবে */
    min-width: 0;
}
.tracking-form-wrapper button {
    width: auto !important; /* বাটন ছোট রাখবে */
    white-space: nowrap;
    padding: 12px 30px !important;
}

/* মোবাইল ভিউ ফিক্স (ফর্ম এবং ট্র্যাকিং এর জন্য) */
@media (max-width: 768px) {
    /* ফর্ম লেআউট এক কলামে পরিণত হবে */
    .spark-form-layout {
        flex-direction: column;
        gap: 20px;
    }
    .spark-penta-container, .spark-tracking-container {
        padding: 25px 20px;
        margin: 15px;
    }
    /* পাশাপাশি থাকা ইনপুট ফিল্ডগুলো নিচে নিচে চলে আসবে */
    .upload-wrapper, .form-group[style*="display:flex"] {
        flex-direction: column;
        gap: 15px !important;
    }
    .tracking-form-wrapper {
        flex-direction: column;
    }
    .tracking-form-wrapper button {
        width: 100% !important;
    }
}

/* ========================================================
   Before/After Comparison Slider Design
======================================================== */
.spark-ba-wrapper {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}
.spark-ba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* ম্যাপের জন্য আদেশ অনুপাত */
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: #f0f0f0;
}
.spark-ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.spark-ba-before {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 2;
}
.spark-ba-after {
    z-index: 1;
}
.spark-ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    z-index: 4;
    cursor: ew-resize; /* ডানে-বামে টানার আইকন */
    margin: 0;
    opacity: 0; /* আসল স্লাইডার লুকানো থাকবে, কাস্টম লাইন কাজ করবে */
}
.spark-ba-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #0073aa;
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}
.spark-ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: #0073aa;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.spark-ba-instruction {
    margin-top: 15px;
    color: #4a5568;
    font-weight: 600;
    font-size: 15px;
}

/* ========================================================
   Land Record Timeline Design
======================================================== */
.spark-timeline-wrapper {
    max-width: 700px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #3182ce;
    font-family: 'Hind Siliguri', sans-serif;
}
.timeline-title {
    text-align: center;
    color: #1a365d;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
}
.spark-timeline {
    position: relative;
    padding-left: 35px;
    margin-top: 20px;
}
/* মাঝখানের লম্বা দাগটি */
.spark-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #ebf8ff;
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
/* গোল আইকনগুলো (CS, SA, RS) */
.timeline-icon {
    position: absolute;
    left: -53px;
    top: 0;
    width: 40px;
    height: 40px;
    background: #0073aa;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 2;
}
.timeline-item:hover .timeline-icon {
    background: #d63638; /* হোভার করলে লাল হবে */
    transform: scale(1.1);
}
/* টেক্সট বক্স */
.timeline-content {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.timeline-item:hover .timeline-content {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #cbd5e0;
    background: #ffffff;
}
.timeline-content h4 {
    margin: 0 0 8px 0;
    color: #2b6cb0;
    font-size: 18px;
    font-weight: 700;
}
.timeline-content p {
    margin: 0;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .spark-timeline-wrapper {
        padding: 20px;
    }
}

/* ========================================================
   Digital Receipt & Invoice Print Design
======================================================== */
.spark-digital-receipt {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.receipt-header {
    text-align: center;
    border-bottom: 3px dashed #cbd5e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.receipt-header h2 {
    margin: 0;
    color: #0073aa;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.receipt-header p {
    margin: 5px 0 0 0;
    color: #4a5568;
    font-weight: bold;
}

.receipt-details p {
    font-size: 16px;
    margin: 10px 0;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

.receipt-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.wa-contact-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 25px;
    background: #25D366;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.receipt-actions {
    max-width: 600px;
    margin: 20px auto 0;
    display: flex;
    gap: 15px;
}

.btn-download {
    flex: 1;
    background: #2b6cb0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.btn-new {
    flex: 1;
    background: #718096;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

/* ========================================================
   Print CSS (PDF Download Setup)
======================================================== */
@media print {
    body * {
        visibility: hidden; /* পুরো ওয়েবসাইটের সবকিছু লুকাও */
    }
    #printableArea, #printableArea * {
        visibility: visible; /* শুধু রিসিটটি দেখাও */
    }
    #printableArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
    }
    .no-print {
        display: none !important; /* বাটনগুলো প্রিন্টে আসবে না */
    }
}

/* ========================================================
   Portfolio Grid Design (নতুন যুক্ত করা হয়েছে)
======================================================== */
.spark-portfolio-section {
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #38b2ac;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-header h3 {
    color: #1a365d;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.portfolio-header p {
    color: #4a5568;
    margin: 0;
}

.spark-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: zoom-in;
    border: 3px solid #edf2f7;
    transition: all 0.3s ease;
    height: 180px; /* ইউনিফর্ম গ্রিড হাইট */
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: #3182ce;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* সাইডবারের স্যাম্পল বাটন */
.spark-view-sample-btn {
    background: #edf2f7;
    color: #2b6cb0;
    border: 1px solid #cbd5e0;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}
.spark-view-sample-btn:hover {
    background: #2b6cb0;
    color: #ffffff;
}

/* ========================================================
   Lightbox Modal & Zoom Design (নতুন যুক্ত করা হয়েছে)
======================================================== */
.spark-modal {
    display: none; 
    position: fixed; 
    z-index: 999999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(15, 23, 42, 0.95); /* প্রিমিয়াম ডার্ক ব্যাকগ্রাউন্ড */
    backdrop-filter: blur(5px);
}

.spark-close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f5f9;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.spark-close-modal:hover {
    color: #fc8181;
}

.spark-zoom-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.spark-zoom-controls button {
    background: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: bold;
    color: #1a365d;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
}

.spark-zoom-controls button:hover {
    background: #3182ce;
    color: #ffffff;
}

.spark-modal-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto; /* জুমের পর প্যান/স্ক্রল করার ব্যবস্থা */
    padding: 50px;
    box-sizing: border-box;
}

#spark-modal-image {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.2s ease-out;
    transform-origin: center center;
}