/* style.css - Complete Clean Version */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #f7f7f7;
    color: #333;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    padding: 15px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-placeholder-nav {
    width: auto;
    height: 60px;
    background-color: #fdd835;
    text-align: center;
    line-height: 60px;
    color: #333;
    font-size: 1em;
}

.nav-links {
    display: flex;
    align-items: center;
}

.call-to-action {
    background-color: #e68e3d;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 20px;
}

.call-to-action i {
    margin-right: 5px;
}

.language-toggle {
    position: relative;
    width: 130px;
    height: 30px;
}

.language-toggle input[type="checkbox"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    cursor: pointer;
}

.toggle-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 0 5px;
    justify-content: space-between;
    transition: background-color 0.3s;
}

.toggle-label::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-label .english, .toggle-label .chichewa {
    font-size: 0.8em;
    color: #fff;
    padding: 0 8px;
}

.language-toggle input:checked + .toggle-label {
    background-color: #689f38;
}

.language-toggle input:checked + .toggle-label::before {
    transform: translateX(53px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: transform 0.3s ease-in-out;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 20px;
    align-items: center;
}

.mobile-menu a, .mobile-menu .language-toggle {
    margin: 10px 0;
}

header {
    position: relative;
    height: 300px;
    margin-bottom: 30px;
}

.hero-image {
    background-image: url('./images/hero-field.png');
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
}

.intro-section {
    position: relative;
    padding: 0 20px;
    margin-bottom: 30px;
}

.intro-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    gap: 40px;
}

.intro-text {
    flex: 1;
    padding: 40px 0;
    z-index: 2;
}

.intro-image {
    flex: 1;
    position: relative;
    z-index: 3;
}

.intro-image img {
    width: 30%;
    max-width: 400px;
    height: auto;
    position: absolute;
    bottom: 0;
    transform: translateY(-5%);
    object-fit: contain;
}

/* Buy Now Section */
#buy-now-section {
    background: linear-gradient(135deg, #689f38 0%, #43a047 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 0px;
}

.buy-now-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.buy-now-price {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.buy-now-note {
    font-size: 1rem;
    opacity: 0.9;
    color: white;
}

.buy-now-btn {
    background-color: #fdd835;
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.buy-now-btn:hover {
    background-color: #fbc02d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(253, 216, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(253, 216, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(253, 216, 53, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

section {
    padding: 30px 20px;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #689f38;
    margin-top: 0;
    border-bottom: 2px solid #689f38;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#distributor-list, #events-list {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.distributor-item {
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.distributor-item h3 {
    color: #43a047;
    margin-top: 0;
}

.distributor-item .location-info {
    font-size: 0.9em;
    color: #777;
}

.distributor-item.nearby {
    background-color: #e8f5e9;
    border-color: #a5d6a7;
}

.distributor-item.other {
    color: #999;
    background-color: #f0f0f0;
    border-color: #dcdcdc;
}

.distributor-item .map-link {
    background-color: #fdd835;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    align-self: flex-start;
}

.distributor-item .map-link:hover {
    background-color: #fbc02d;
}

.distributor-image-placeholder img {
    width: auto;
    height: 150px;
    background-color: #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 0.9em;
}

#product-features ul {
    list-style-type: disc;
    padding-left: 20px;
}

#product-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#product-features li:last-child {
    border-bottom: none;
}

#product-features li strong {
    color: #43a047;
}

.product-image-placeholder {
    text-align: center;
    margin-top: 20px;
}

.product-image-placeholder img {
    max-width: 80%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-image-placeholder p {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

#field-day-events div {
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

#field-day-events h4 {
    color: #fdd835;
    margin-top: 0;
}

#field-day-events .event-location-link {
    margin-top: 5px;
    font-size: 0.9em;
}

#field-trial-request label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

#field-trial-request input[type="text"],
#field-trial-request input[type="email"],
#field-trial-request textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
}

#field-trial-request button {
    background-color: #fdd835;
    color: #333;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1em;
}

#field-trial-request button:hover {
    background-color: #fbc02d;
}

#form-submission-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
}

/* Checkout page styles */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.checkout-header h1 {
    color: #689f38;
    margin-bottom: 10px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.order-summary, .customer-info {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-summary h2, .customer-info h2 {
    color: #689f38;
    margin-top: 0;
    border-bottom: 2px solid #689f38;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.product-info {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-image {
    flex: 0 0 100px;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-details h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.product-details p {
    margin-top: 0;
    color: #777;
    font-size: 0.9em;
}

.price {
    font-weight: bold;
    color: #689f38;
    font-size: 1.2em;
}

.order-total {
    margin-top: 20px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.grand-total {
    font-weight: bold;
    font-size: 1.2em;
    border-top: 2px solid #689f38;
    margin-top: 10px;
    padding-top: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.payment-method {
    margin: 25px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.payment-method h3 {
    margin-top: 0;
    color: #689f38;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
}

.payment-option input {
    margin-right: 10px;
}

.pay-now-btn {
    width: 100%;
    background-color: #fdd835;
    color: #333;
    border: none;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.pay-now-btn:hover {
    background-color: #fbc02d;
}

.pay-now-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Thank you page styles */
.thank-you-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.thank-you-content {
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.success-icon {
    color: #689f38;
    font-size: 4rem;
    margin-bottom: 20px;
}

.thank-you-content h1 {
    color: #689f38;
    margin-bottom: 15px;
}

.confirmation-message {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.order-details, .next-steps {
    text-align: left;
    margin: 40px 0;
    padding: 25px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.order-details h2, .next-steps h2 {
    color: #689f38;
    margin-top: 0;
    border-bottom: 2px solid #689f38;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.order-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-line.order-total {
    font-weight: bold;
    font-size: 1.2em;
    border-top: 2px solid #689f38;
    margin-top: 15px;
    padding-top: 15px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.step {
    display: flex;
    gap: 20px;
}

.step-number {
    flex: 0 0 40px;
    height: 40px;
    background-color: #689f38;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #555;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background-color: #689f38;
    color: white;
}

.primary-btn:hover {
    background-color: #558b2f;
}

.secondary-btn {
    background-color: #fdd835;
    color: #333;
}

.secondary-btn:hover {
    background-color: #fbc02d;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #f7f7f7;
    color: #777;
    border-top: 1px solid #eee;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu.open {
        display: flex;
    }

    .intro-container {
        flex-direction: column;
    }

    .intro-text {
        padding: 10px 0 0 0;
    }

    .intro-image {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .intro-image img {
        position: relative;
        transform: translateY(-55%);
        max-width: 250px;
        margin-bottom: -180px;
    }

    .buy-now-price {
        font-size: 2.5rem;
    }
    
    .buy-now-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .product-info {
        flex-direction: column;
    }
    
    .product-image {
        align-self: center;
    }

    .thank-you-content {
        padding: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}