/* ==============================
   FRESH & ORGANIC THEME (Premium Redesign)
   ============================== */
:root {
    --primary-color: #4A5D23;
    /* Deep Olive Green */
    --primary-hover: #3c4b1d;
    --accent-color: #D4AF37;
    /* Metallic Gold */
    --accent-hover: #b5952f;
    --bg-main: #F9F8F6;
    /* Warm Creamy White */
    --bg-card: #ffffff;
    --text-main: #1C2311;
    --text-muted: #5C6E46;
    --border-color: #E2DFD2;
    --border-dark: #C5C1B1;
    --font-family: 'Almarai', sans-serif;
}

/* ==============================
   BASE STYLES
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    transition: background-color 0.2s, border-color 0.2s;
}

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

/* Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-card);
    min-height: 100vh;
    box-shadow: 0 0 40px rgba(74, 93, 35, 0.1);
    position: relative;
    overflow: hidden;
}

/* Hero Section Premium Styles */
.hero {
    padding: 0;
    text-align: center;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(74, 93, 35, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero>* {
    position: relative;
    z-index: 1;
}

.hero-logo-wrapper {
    margin-bottom: 15px;
    display: inline-block;
}

.hero-logo {
    height: 90px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.hero-title {
    font-size: 38px;
    color: var(--primary-color);
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 25px;
}

/* Moving Bold Text for Omra */
.moving-text-container {
    background: linear-gradient(90deg, #b5952f, #D4AF37, #b5952f);
    background-size: 200% auto;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.moving-text {
    display: inline-block;
    animation: marquee 12s linear infinite;
}

.moving-text span {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0 15px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(50%);
    }
}

.tagline {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* ==============================
   HERO SCENE - Layered Image Composition
   ============================== */
.hero-scene {
    position: relative;
    width: 100%;
    margin-bottom: 22%;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}



/* All overlays share the same canvas size as main.png.
   Stack them exactly on top so the masked elements land in their original positions. */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Left badge: "فرصة ذهبية لفوز بعمرة شاملة التكاليف" */
.hero-left {
    animation: floatLeft 5s ease-in-out infinite;
}

@keyframes floatLeft {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-8px) translateX(3px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* Right card: "حقق حلمك بزيارة بيت الله" */
.hero-right {
    animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatRight {
    0% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-10px) translateX(-4px);
    }

    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* Bottom feature strip */
.hero-bottom {
    animation: floatBottom 7s ease-in-out infinite;
}

@keyframes floatBottom {
    0% {
        transform: translateY(22%);
    }

    50% {
        transform: translateY(21%);
    }

    100% {
        transform: translateY(22%);
    }
}

.pricing {
    margin: 10px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 20px;
    font-weight: 700;
}

.new-price {
    color: var(--primary-color);
    font-size: 34px;
    font-weight: 800;
}

.hero-cta-wrapper {
    position: absolute;
    bottom: 2.5%;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.hero-cta-desktop {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 14px 30px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(74, 93, 35, 0.4);
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
    white-space: nowrap;
    animation: wiggleCTA 3s infinite;
}

@keyframes wiggleCTA {
    0%, 85% { transform: rotate(0deg) scale(1); }
    88% { transform: rotate(-1.5deg) scale(1.02); }
    91% { transform: rotate(1.5deg) scale(1.02); }
    94% { transform: rotate(-1.5deg) scale(1.02); }
    97% { transform: rotate(1.5deg) scale(1.02); }
    100% { transform: rotate(0deg) scale(1); }
}

.hero-cta-desktop:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    animation: none;
}

/* ==============================
   VIDEO SECTION
   ============================== */
.video-section {
    padding: 20px 20px 0;
    background-color: var(--bg-main);
    text-align: center;
}

.youtube-short {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    aspect-ratio: 9 / 16;
    border: 3px solid var(--border-color);
}

/* Order Section */
.order-section {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
}

.order-section h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label:not(.variant-card) {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 14px;
}

.section-label {
    margin-bottom: 10px !important;
    font-size: 16px !important;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    font-size: 16px;
    background-color: #ffffff;
    color: var(--text-main);
}

.form-group input[type="tel"] {
    text-align: right;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23555%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem top 50%;
    background-size: 0.65rem auto;
    padding-left: 2.5rem;
}

.form-group select:disabled {
    background-color: #e2e8f0;
    cursor: not-allowed;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 93, 35, 0.15);
}

/* Variant Cards */
.variants-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.variant-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.variant-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(74, 93, 35, 0.1);
    transform: translateY(-2px);
}

.variant-card:has(input:checked) {
    border-color: var(--primary-color);
    background-color: #f4f7f0;
}

.highlight-variant:has(input:checked) {
    border-color: var(--primary-color);
    background-color: #eaf0e1;
}

.variant-card input[type="radio"] {
    margin-left: 15px;
    transform: scale(1.4);
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.variant-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-left: 15px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.promo-img {
    width: 140px;
    height: auto;
    max-height: 80px;
    margin-left: 10px;
}

.variant-card:hover .variant-img {
    transform: scale(1.15) rotate(-3deg);
}

.variant-details {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.variant-title {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.3;
}

.variant-price {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 18px;
    white-space: nowrap;
    margin-right: 10px;
}

/* Highlighted Variant */
.highlight-variant {
    border-color: var(--primary-color);
    background-color: #f4f7f0;
    border-width: 2px;
}

.highlight-variant .variant-price {
    color: var(--primary-color);
    font-size: 20px;
}

/* Shine effect on promo card */
.highlight-variant::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Order Section Subtitle */
.order-subtitle {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    background-color: #eaf0e1;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    margin: -10px auto 20px;
    display: block;
}

/* Delivery Type Selector */
.delivery-type-container {
    margin: 15px 0;
}

.delivery-type-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.delivery-type-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-type-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background-color: #ffffff;
    transition: border-color 0.2s, background-color 0.2s;
}

.delivery-type-card.active {
    border-color: var(--primary-color);
    background-color: #fafaf8;
}

.delivery-type-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.delivery-type-card input[type="radio"] {
    margin: 0;
    transform: scale(1.2);
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.delivery-type-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.delivery-type-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Stop desk warning */
.stopdesk-warning {
    padding: 10px 14px;
    background-color: #f0ede6;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Delivery Info Display */
.delivery-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background-color: #f0f7e8;
    border: 1px solid #d1e2c0;
    border-radius: 10px;
    margin: 10px 0;
}

.delivery-info-details {
    display: flex;
    flex-direction: column;
}

.delivery-info-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
}

.delivery-info-wilaya {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
}

.delivery-info strong {
    font-size: 18px;
    color: var(--primary-color);
}

/* Order Summary */
.order-summary {
    background-color: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.summary-total {
    border-top: 2px solid var(--border-color);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    color: var(--text-main);
}

.summary-total strong {
    font-size: 22px;
    color: var(--primary-color);
}

/* CTA Button */
.cta-button {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 18px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 93, 35, 0.2);
    margin-top: 5px;
    transition: background-color 0.2s, transform 0.2s;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* ==============================
   ADDITIONAL SECTIONS
   ============================== */
.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Social Proof (Screenshot Carousel) */
.social-proof-section {
    padding: 40px 0;
    background-color: #f0ede6;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.social-proof-section .section-title {
    padding: 0 20px;
}

.social-proof-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Satisfaction Rating */
.satisfaction-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: -5px;
    margin-bottom: 15px;
}

.satisfaction-stars {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    direction: ltr;
}

.satisfaction-stars svg {
    width: 24px;
    height: 24px;
}

.satisfaction-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
}

.social-proof-carousel-wrapper {
    position: relative;
    width: 100%;
}

/* Edge fade overlays */
.carousel-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    z-index: 2;
    pointer-events: none;
}

.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, #f0ede6, transparent);
}

.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, #f0ede6, transparent);
}

/* Horizontal snap-scroll carousel */
.social-proof-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 10px 20px 20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.social-proof-carousel::-webkit-scrollbar {
    display: none;
}

.social-proof-slide {
    flex: 0 0 80%;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-proof-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.18);
}

.social-proof-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px 0 5px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background-color: var(--border-dark);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    width: 28px;
    border-radius: 5px;
}

/* Video Section */
.video-section {
    padding: 40px 20px;
    background-color: var(--bg-card);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px -10px rgba(74, 93, 35, 0.2);
    border: 4px solid var(--primary-color);
}

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

/* ==============================
   LAB TESTS SECTION
   ============================== */
.lab-test-section {
    padding: 30px 20px;
    background-color: var(--bg-main);
    text-align: center;
}

.lab-test-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.lab-test-img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid var(--border-color);
}

@media (min-width: 768px) {
    .lab-test-gallery {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* FAQ Section */
.faq-section {
    padding: 40px 20px;
    background-color: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.faq-question {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer Section */
.footer-section {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--bg-main);
}

.footer-logo {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* ==============================
   DESKTOP / PC RESPONSIVE DESIGN
   ============================== */
@media (min-width: 992px) {
    body {
        display: block;
        padding: 60px 0;
        background-color: #ffffff;
    }

    .container {
        max-width: 800px;
        /* Reduced from 1200px for a beautiful centered card */
        min-height: auto;
        display: block;
        border-radius: 24px;
        margin: 0 auto;
        box-shadow: 0 25px 60px -15px rgba(74, 93, 35, 0.3);
        overflow: hidden;
    }

    .hero {
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .moving-text-container {
        padding: 14px 0;
    }

    .moving-text span {
        font-size: 26px;
        padding: 0 25px;
    }

    .hero-cta-desktop {
        display: inline-block;
        background-color: var(--primary-color);
        color: #ffffff;
        padding: 16px 45px;
        font-size: 24px;
        font-weight: 800;
        border-radius: 12px;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(74, 93, 35, 0.4);
        transition: transform 0.2s, background-color 0.2s;
        text-align: center;
        white-space: nowrap;
    }

    .hero-cta-desktop:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
    }


    .order-section {
        padding: 60px 60px;
        max-width: 100%;
        margin: 0 auto;
        border-top: none;
        display: block;
        background-color: transparent;
    }

    .social-proof-slide {
        flex: 0 0 45%;
    }
    
    .social-proof-section, .video-section, .faq-section {
        padding: 60px 60px;
    }
}