/* --- Global Styles & Variables --- */
:root {
    --primary-color: #1a5d1a; /* A richer, more confident green */
    --secondary-color: #f8f9fa; /* Light gray for background sections */
    --action-color: #ff7a00; /* Bright, unmissable orange for CTAs */
    --text-color: #333;
    --heading-font: 'Cairo', sans-serif;
    --body-font: 'Cairo', sans-serif;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    margin: 0;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; margin-bottom: 0.5em; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-weight: 900;
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.top-bar p {
    margin: 0;
    font-weight: bold;
    color: var(--action-color);
}

/* --- Hero Section --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 40px;
}

.hero-text h1 {
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 80%;
    transform: rotate(-5deg);
    transition: transform 0.3s ease-in-out;
}
.hero-image img:hover {
    transform: rotate(0deg) scale(1.05);
}

/* --- Call to Action Button --- */
.cta-button {
    background-color: var(--action-color);
    color: #fff;
    text-decoration: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #e66e00;
    transform: translateY(-3px);
}

/* --- Features Section --- */
.features {
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item h3 {
    margin-bottom: 10px;
}

/* --- Video Section --- */
.video-section {
    padding: 40px 0;
}
.video-wrapper {
    position: relative;
}
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Default to 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.sound-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 12px 25px;
    font-family: var(--body-font);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Frosted glass effect */
}
.sound-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.05);
}
.sound-btn.moved {
    top: auto;
    left: auto;
    bottom: 10px; /* Closer to the corner */
    right: 10px; /* Closer to the corner */
    transform: none;
    font-size: 0.8rem; /* Smaller text/icon */
    padding: 8px; /* Smaller padding */
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    backdrop-filter: none;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    justify-content: center;
}
.sound-btn.moved .text {
    display: none; /* Hide text when moved */
}
.sound-btn.moved:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}

/* --- Visual Proof Section --- */
.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.image-gallery img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    width: 100%;
}
.image-gallery img:hover {
    transform: scale(1.05);
}

/* --- Offer Details Section --- */
.offer-details {
    background-color: var(--secondary-color);
}
.offer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.offer-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.offer-images img {
    border-radius: 8px;
}

.offer-text .price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--action-color);
    margin: 20px 0;
}
.offer-text .price del {
    font-size: 1.2rem;
    color: #999;
}

.offer-benefits {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}
.offer-benefits li {
    margin-bottom: 10px;
}

/* --- Order Form Section --- */
.order-form-section {
    text-align: center;
}

.order-form-section .subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: -40px;
    margin-bottom: 40px;
}

.order-form {
    max-width: 600px; /* Reduced max-width for better focus */
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* Stretch items to fill the container */
    gap: 15px; /* Space between rows */
}

.form-row {
    width: 100%;
}

.order-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Slightly more rounded corners */
    font-size: 1rem;
    font-family: var(--body-font);
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Important for width calculation */
    text-align: right; /* Align text and placeholder to the right */
}

.order-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 93, 26, 0.2);
}

.order-form .cta-button {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
}

/* --- Discount Code Styling --- */
.discount-wrapper { position: relative; }
.status-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none;
}
#discountInput.valid + .status-icon {
    display: inline-block;
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="green"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}
#discountInput.invalid + .status-icon {
    display: inline-block;
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="red"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>');
}
#price-summary {
    text-align: right;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}
#price-summary p { margin: 5px 0; }
#price-summary.price-summary-hidden { display: none; }
#form-error { color: red; font-weight: bold; margin-top: 10px; }
.form-error-hidden { display: none; }


/* --- Partners Section --- */
.partners-section {
    background-color: var(--secondary-color);
}
.logos {
    overflow: hidden;
    padding: 20px 0;
    white-space: nowrap;
    position: relative;
}
.logos:hover .logos-slide {
    animation-play-state: paused;
}
.logos-slide {
    display: inline-block;
    animation: 20s slide infinite linear;
}
.logos-slide img {
    height: 50px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s;
}
.logos-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* --- Footer --- */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}
.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--action-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero, .offer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        order: 2;
    }
    .hero-image {
        order: 1;
        margin-bottom: 30px;
    }
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    section { padding: 50px 0; }

    .video-container {
        padding-top: 177.77%; /* 9:16 Aspect Ratio for mobile */
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .order-form {
        padding: 20px;
    }
    .main-header {
        flex-direction: column;
        gap: 10px;
    }
    .floating-btn {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 90%;
        text-align: center;
    }
    .sound-btn {
        font-size: 1rem;
        padding: 8px 15px;
        border-width: 1px;
    }
}

