/* Quiz Container Styles */
.quiz-container {
    max-width: 1160px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Progress Bar Styles */
.progress-container {
    padding: 20px;
    background-color: #f0f7f1;
    border-bottom: 1px solid #eee;
}

.progress-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

#quiz-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #347c3b;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
}

.step.active {
    background-color: #347c3b;
    color: white;
}

/* Quiz Steps Styles */
.quiz-steps {
    position: relative;
    min-height: 500px;
}

.quiz-step {
    display: none;
    padding: 30px;
    padding-bottom: 30px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 0px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.quiz-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.step-content {
    max-width: 1000px;
    margin: 0 auto;
}

.quiz-step h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.quiz-step p {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-step.active h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.01s;
}

.quiz-step.active p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.02s;
}

/* Benefits Styles */
.benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit i {
    color: #347c3b;
    font-size: 18px;
}

/* Options Styles */
.options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Remove multi-select class since we don't use it anymore */
.options.multi-select {
    margin-bottom: 50px;
}


.option {
    background-color: #f0f7f1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    /* Improve tap target for mobile */
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.option:hover {
    border-color: #347c3b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.option.selected {
    border-color: #347c3b;
    background-color: rgba(52, 124, 59, 0.25); /* Increased green background for more visibility */
    position: relative;
    box-shadow: 0 0 10px rgba(52, 124, 59, 0.3); /* Enhanced shadow for better highlight */
    transform: translateY(-2px); /* Slight lift effect when selected */
}

/* Make checkmark more visible on mobile */
.option.selected::after {
    content: "\f00c"; /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: #347c3b;
    font-size: 18px;
    font-weight: bold;
}

.option-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.option-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-align: left;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    opacity: 0.5;
}

.btn-primary {
    background-color: #347c3b;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: transparent;
    color: #347c3b;
    border: 2px solid #347c3b;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(52, 124, 59, 0.1);
    transform: translateY(-2px);
}

/* Results Step Styles */
.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h2 {
    color: #347c3b;
    font-size: 32px;
    margin-bottom: 10px;
}

.results-header p {
    font-size: 18px;
    color: #666;
}

.results-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.product-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-details {
    flex: 1;
    min-width: 300px;
}

.product-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-title h3 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.product-title .badge {
    background-color: #347c3b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 20px;
}

.product-description p {
    margin-bottom: 15px;
    text-align: left;
}

.product-benefits {
    margin-bottom: 30px;
}

.product-benefits h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.benefit-item i {
    color: #347c3b;
    font-size: 16px;
    margin-top: 3px;
}

.benefit-item p {
    margin: 0;
    text-align: left;
}

/* Delivery Options */
.delivery-options {
    margin-bottom: 30px;
}

.delivery-options h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.delivery-option {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 15px;
    position: relative;
}

.delivery-option .option-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
    text-align: center;
}

.delivery-option .option-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-option .option-content p {
    text-align: center;
    margin-bottom: 10px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-option .option-content .price {
    font-weight: bold;
    font-size: 18px;
    margin-top: auto;
    margin-bottom: 5px;
    align-items: center;
    text-align: center;
    width: 100%;
}

.delivery-option .option-content .thumbnail-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    height: 120px;
    width: 100%;
}

.delivery-option .option-content .thumbnail-img {
    max-height: 110px;
    max-width: 90%;
    object-fit: contain;
}

.delivery-option .option-content .save-amount {
    color: #ff5722;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-top: 5px;
    width: 100%;
}

.delivery-option .option-content .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-right: 5px;
    text-align: center;
}

.delivery-option:hover {
    border-color: #347c3b;
}

.delivery-option.selected {
    border-color: #347c3b;
    background-color: rgba(52, 124, 59, 0.15);
    box-shadow: 0 5px 15px rgba(52, 124, 59, 0.3);
    transform: translateY(-5px);
    position: relative;
}

/* Position confirm button in delivery options */
.delivery-option .confirm-selection {
    position: absolute;
    bottom: 10px;
    right: 10px;
}

.delivery-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-option.selected .delivery-option-radio {
    border-color: #347c3b;
}

.delivery-option.selected .delivery-option-radio::after {
    content: "\f00c"; /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #347c3b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Scroll-up arrow on mobile */
@media (max-width: 768px) {
    .delivery-option.selected::before {
        content: "\f106"; /* FontAwesome arrow-up icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: #347c3b;
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 10;
        cursor: pointer;
        animation: pulse 1.5s infinite;
    }
    
    /* Ensure padding at the bottom of the option for the arrow */
    .delivery-option {
        padding-bottom: 30px;
    }
}

.delivery-option-content {
    flex: 1;
}

.delivery-option-content h5 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.delivery-option-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-align: left;
}

.delivery-option-price {
    font-weight: 600;
    color: #347c3b;
}

/* Pricing Section */
.pricing {
    background-color: #f0f7f1;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pricing-row.total {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 600;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.discounted-price {
    color: #347c3b;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: 30px;
}

.checkout-btn {
    background-color: #347c3b;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
}

.checkout-btn:hover {
    background-color: #2a6430;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 124, 59, 0.2);
}

.guarantee-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.guarantee-text i {
    color: #347c3b;
}

/* Personalized Explanation Section */
.personalized-explanation {
    background-color: #f0f7f1;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #347c3b;
    text-align: left;
}

/* Special styling for the wholesale explanation at the top */
.wholesale-info > .personalized-explanation {
    margin-top: 20px;
    margin-bottom: 30px;
    background-color: #f0f7f1;
    box-shadow: 0 3px 10px rgba(52, 124, 59, 0.1);
}

.personalized-explanation h3 {
    color: #347c3b;
    margin-bottom: 15px;
    font-size: 20px;
    text-align: left;
}

.personalized-explanation p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    text-align: left;
    margin-bottom: 16px;
    display: block;
}

/* Ensure the last paragraph doesn't have extra margin */
.personalized-explanation p:last-child {
    margin-bottom: 0;
}

/* Additional class for explanation paragraphs */
.explanation-paragraphs p {
    display: block;
    margin-bottom: 16px;
}

.explanation-paragraphs p:last-child {
    margin-bottom: 0;
}

/* Ensure explanation text paragraphs are properly displayed */
#explanation-text p {
    display: block !important;
    margin-bottom: 16px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #444 !important;
    text-align: left !important;
}

#explanation-text p:last-child {
    margin-bottom: 0 !important;
}

#explanation-text strong {
    font-weight: bold !important;
    color: #333 !important;
}

/* Additional styling for the explanation wrapper */
.explanation-wrapper {
    width: 100%;
}

/* Wholesale Options */
.wholesale-options {
    margin: 25px 0;
    background-color: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.wholesale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #f0f7f1;
}

.wholesale-header:hover {
    background-color: #e5f2e7;
}

.wholesale-header h3 {
    margin: 0;
    font-size: 20px;
    color: #347c3b;
}

.toggle-indicator {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.wholesale-options.expanded .toggle-indicator i {
    transform: rotate(180deg);
}

.wholesale-content {
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.wholesale-content[style*="display: block"] {
    padding: 20px;
    max-height: 2000px; /* A large value to accommodate all content */
}

/* Inside wholesale content styling */
.wholesale-info {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.wholesale-info > p {
    font-size: 16px;
    margin-bottom: 25px;
}

.wholesale-pricing {
    margin-bottom: 30px;
}

.wholesale-pricing h4 {
    color: #347c3b;
    margin-bottom: 15px;
    font-size: 18px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.pricing-table th, .pricing-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.pricing-table th {
    background-color: #f0f7f1;
    color: #347c3b;
    font-weight: 600;
}

.pricing-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pricing-table td:first-child {
    font-weight: 600;
    text-align: left;
}

/* Contact Form */
.contact-form {
    margin-top: 30px;
}

.contact-form h4 {
    color: #347c3b;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-form p {
    margin-bottom: 20px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #347c3b;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 124, 59, 0.2);
}

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

/* Form Validation Styles */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    border-color: #dc3545;
}

.form-group input:focus:invalid,
.form-group select:focus:invalid,
.form-group textarea:focus:invalid {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group input:valid:focus,
.form-group select:valid:focus,
.form-group textarea:valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 124, 59, 0.25);
}

.form-group .validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .validation-error {
    display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Additional styling for form elements */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #347c3b;
}

/* Form success/error messages */
.success-message,
.error-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: fadeIn 0.5s;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .quiz-container {
        margin: 20px 10px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .options {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .option {
        padding: 15px;
        /* Larger tap target on mobile */
        min-height: 80px;
    }
    
    .option.selected {
        background-color: rgba(52, 124, 59, 0.25); /* Keep consistent with desktop */
        box-shadow: 0 0 8px rgba(52, 124, 59, 0.3);
    }
    
    .option.selected::after {
        border-color: #347c3b;
        background-color: #347c3b;
        content: "\f00c"; /* FontAwesome check icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: white;
        font-size: 14px;
        text-align: center;
        line-height: 18px;
    }
    
    .option-content h3 {
        font-size: 16px;
    }
    
    .option-content p {
        font-size: 13px;
    }
    
    .quiz-step {
        padding: 0px 5px;
    }
    
    .quiz-step h2 {
        font-size: 22px;
    }
    
    .quiz-step p {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
    
    .btn-secondary {
        order: 2;
    }
    
    .btn-primary {
        order: 1;
    }
    
    .delivery-option {
        padding-bottom: 0px; /* Add space for the confirm button */
    }
    
    .delivery-option .confirm-selection {
        bottom: 10px;
        right: 10px;
    }
    
    /* Hide the radio circle on mobile since we use the confirm button instead */
    .delivery-option.selected .delivery-option-radio::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .options {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.loading-content h2 {
    color: #347c3b;
    margin-bottom: 30px;
    font-size: 24px;
}

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

.loading-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.loading-step.completed {
    background-color: rgba(52, 124, 59, 0.1);
}

.loading-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #999;
}

.loading-icon.completed {
    color: #347c3b;
}

.loading-icon i.fa-check-circle {
    animation: scaleUp 0.3s ease;
}

.loading-text {
    flex: 1;
    text-align: left;
    font-size: 16px;
    color: #666;
}

.loading-step.completed .loading-text {
    color: #333;
    font-weight: 500;
}

@keyframes scaleUp {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Selected Kit Section */
.selected-kit-container {
    margin-bottom: 30px;
}

.selected-kit-container h3 {
    color: #347c3b;
    margin-bottom: 15px;
    font-size: 22px;
}

.selected-kit-display {
    background-color: #f0f7f1;
    border: 2px solid #347c3b;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(52, 124, 59, 0.1);
    transition: all 0.3s ease;
}

.selected-kit-display .option-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kit-details-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.kit-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    cursor: zoom-in;
    flex: 0 0 420px;
    background-color: transparent;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kit-image:hover {
    transform: translateY(-3px);
}

.kit-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Add zoom effect on hover */
.kit-image:hover img {
    transform: scale(1.03);
}

/* Improved magnifying glass for all kit images */
.kit-image::after {
    content: "\f00e"; /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 12px;
    background-color: rgba(52, 124, 59, 0.9);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
}

.kit-image:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Hide the icon on delivery option thumbnails */
.delivery-option .kit-image::after {
    display: none;
}

.kit-info {
    flex: 1;
}

.selected-kit-display h4 {
    font-size: 24px;
    color: #347c3b;
    margin: 0 0 15px 0;
    text-align: center;
}

.selected-kit-display .formula-benefits {
    margin-bottom: 15px;
}

.selected-kit-display .benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.selected-kit-display .benefit i {
    color: #347c3b;
    font-size: 16px;
    margin-top: 3px;
}

.selected-kit-display .benefit p {
    font-size: 16px;
    color: #444;
    margin: 0;
    text-align: left;
}

.selected-kit-display p {
    font-size: 16px;
    color: #444;
    margin: 0;
    text-align: left;
}

.selected-kit-display .price {
    font-size: 22px;
    font-weight: 600;
    color: #347c3b;
    margin-top: 10px;
    margin-bottom: 15px;
}

.selected-kit-display .recommendation-badge:not(.current-kit) .rating-info {
    display: none;
}

.selected-kit-display .recommendation-badge.best-value {
    background-color: #347c3b;
    background-image: linear-gradient(135deg, #347c3b 0%, #43a04d 100%);
    border: 1px solid #266431;
}

.selected-kit-display .recommendation-badge {
    display: flex;
    align-items: center;
    background-color: #347c3b;
    background-image: linear-gradient(135deg, #347c3b 0%, #43a04d 100%);
    border: 1px solid #266431;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    height: 36px;
}

.selected-kit-display .recommendation-badge .badge-main-text {
    flex-shrink: 0;
}

.selected-kit-display .recommendation-badge .rating-info {
    color: #fff;
}

.selected-kit-display .recommendation-badge .rating-info {
    display: flex;
    align-items: center;
    margin-left: 30px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.selected-kit-display .recommendation-badge .stars-image {
    margin-right: 6px;
}

.selected-kit-display .recommendation-badge .rating-text {
    font-size: 14px;
    font-weight: 400;
}

.best-value-badge {
    display: none;
}

/* Move divider more to the right for "Recommended for You" badge */
.selected-kit-display .recommendation-badge:not(.current-kit):not(.best-value) .rating-info {
    margin-left: 250px;
    padding-left: 12px;
}

/* Mobile specific styles for the kit display */
@media (max-width: 768px) {
    .kit-details-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .kit-image {
        flex: 0 0 auto;
        width: 100%;
        text-align: center;
        margin-bottom: 0px;
        display: flex;
        justify-content: center;
        padding: 8px;
    }
    
    .kit-image img {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .kit-info {
        width: 100%;
        text-align: left;
    }
    
    .selected-kit-display {
        padding: 20px 15px;
    }
    
    .selected-kit-display h4 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .selected-kit-display .price {
        text-align: center;
        font-size: 24px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .selected-kit-display .recommendation-badge {
        flex-direction: column;
        height: auto;
        padding: 10px;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 15px;
    }
    
    .selected-kit-display .recommendation-badge .badge-main-text {
        margin-bottom: 8px;
        font-size: 15px;
        letter-spacing: 0.5px;
    }
    
    .selected-kit-display .recommendation-badge .rating-info {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        justify-content: center;
    }
    
    .selected-kit-display .recommendation-badge .stars-image {
        margin-right: 0;
        margin-bottom: 0px;
    }
    
    .selected-kit-display .recommendation-badge .rating-text {
        font-size: 13px;
        text-align: center;
        line-height: 1.3;
        width: 100%;
    }
    
    .selected-kit-display .formula-benefits {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .selected-kit-display .benefit {
        width: 80%;
        max-width: 300px;
    }
    
    .guarantee-badge-small {
        justify-content: center;
        margin-bottom: 15px;
    }
}

/* Best Value badge style */
.selected-kit-display .recommendation-badge.best-value {
    background-color: #347c3b;
}

/* Current Kit badge style */
.selected-kit-display .recommendation-badge.current-kit {
    background-color: #347c3b;
}

/* Move divider more to the right for "Your Current Kit" badge */
.selected-kit-display .recommendation-badge.current-kit .rating-info {
    margin-left: 300px;
    padding-left: 12px;
}

/* Move divider more to the right for "Best Value" badge */
.selected-kit-display .recommendation-badge.best-value .rating-info {
    margin-left: 340px;
    padding-left: 12px;
}

/* Kit Checkout Styles */
.kit-checkout {
    margin-top: 15px;
}

.guarantee-badge-small {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.guarantee-badge-small i {
    color: #347c3b;
}

.checkout-btn-kit {
    background-color: #347c3b;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.checkout-btn-kit:hover {
    background-color: #2a6430;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 124, 59, 0.2);
}

/* Shipping Info Section */
.shipping-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.shipping-info .guarantee-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shipping-info .guarantee-badge i {
    color: #347c3b;
    font-size: 18px;
}

.shipping-info .shipping-note {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Option Recommendation Badge */
.option-recommendation-badge {
    display: inline-block;
    background-color: #347c3b;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    margin-right: 20px;
    margin-left: 20px;
}

/* Recommended option with highlighted border */
.delivery-option.recommended {
    border: 2px solid #347c3b;
    box-shadow: 0 0 8px rgba(52, 124, 59, 0.3);
}

/* Best Value Badge */
.best-value-badge {
    display: none;
}

/* Media query for stacking recommendation badges on mobile */
@media (max-width: 768px) {
    /* General recommendation badge styles for mobile */
    .recommendation-badge {
        flex-direction: column;
        align-items: center;
        text-align: center;
        height: auto !important;
        padding: 10px !important;
    }
    
    .recommendation-badge .rating-info {
        margin-left: 0 !important;
        margin-top: 8px !important;
        padding-left: 0 !important;
        border-left: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        padding-top: 8px;
        width: 100%;
        justify-content: center;
    }
    
    /* Override specific badge styles for mobile */
    .recommendation-badge.current-kit .rating-info,
    .recommendation-badge.best-value .rating-info,
    .recommendation-badge:not(.current-kit):not(.best-value) .rating-info {
        margin-left: 0 !important;
    }
    
    /* Ensure option recommendation badges are consistently styled */
    .option-recommendation-badge {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        display: block;
        margin-bottom: 10px;
        margin-top: -13px;
        margin-right: 30px;
        padding: 5px 40px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
    
    /* Additional spacing for the badge text */
    .recommendation-badge .badge-main-text {
        margin-bottom: 8px;
        font-size: 15px;
        letter-spacing: 0.5px;
    }
    
    /* Improve delivery option spacing for badges */
    .delivery-option .option-content {
        padding-top: 15px;
    }
    
    .delivery-option.recommended {
        border-width: 2px;
        padding-top: 5px;
    }
    
    /* Enhance the best value badge appearance */
    .best-value-badge {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding: 5px 10px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }
}

/* Immediate Options for Wholesale */
.immediate-options {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.immediate-options h4 {
    color: #347c3b;
    margin-bottom: 15px;
    font-size: 18px;
}

.immediate-options p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.wholesale-retail-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.wholesale-retail-options .option,
.wholesale-retail-options .delivery-option {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    margin-bottom: 15px;
}

.wholesale-retail-options .option:hover,
.wholesale-retail-options .delivery-option:hover {
    border-color: #347c3b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 124, 59, 0.15);
}

.wholesale-retail-options .option.selected,
.wholesale-retail-options .delivery-option.selected {
    border-color: #347c3b;
    background-color: rgba(52, 124, 59, 0.15);
    box-shadow: 0 5px 15px rgba(52, 124, 59, 0.3);
    transform: translateY(-5px);
    position: relative;
}

.wholesale-retail-options .option.selected:after,
.wholesale-retail-options .delivery-option.selected:after {
    content: "\f00c"; /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #347c3b;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.wholesale-retail-options .option-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Make sure all content inside option is clickable */
.wholesale-retail-options .option-content h4,
.wholesale-retail-options .option-content p,
.wholesale-retail-options .option-content .price,
.wholesale-retail-options .option-content .thumbnail-container {
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

/* Visual feedback for touch interactions */
.wholesale-retail-options .option.touch-active,
.wholesale-retail-options .delivery-option.touch-active {
    background-color: rgba(52, 124, 59, 0.1);
}

/* Add an after pseudo-element to make the entire area clickable */
.wholesale-retail-options .option::after,
.wholesale-retail-options .delivery-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    border-radius: 8px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.wholesale-option-btn {
    display: inline-block;
}

/* Responsive adjustments for wholesale options */
@media (max-width: 768px) {
    .wholesale-retail-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .wholesale-retail-options {
        grid-template-columns: 1fr;
    }
}

/* Ensure the wholesale kit image has proper styling */
#wholesale-kit-image {
    max-width: 100%;
    border-radius: 8px;
}

/* Wholesale explanation section */
#wholesale-explanation-text p {
    display: block;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    text-align: left;
}

#wholesale-explanation-text p:last-child {
    margin-bottom: 0;
}

#wholesale-explanation-text strong {
    font-weight: bold !important;
    color: #333 !important;
}

/* Ensure explanation wrapper is properly styled */
.explanation-wrapper {
    width: 100%;
}

/* Yotpo Reviews Section */
.yotpo-section {
    display: none;
    max-width: 1500px;
    margin: 10px auto;
    padding: 0 20px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.yotpo-section .container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.yotpo-section .Heading {
    font-size: 32px;
    color: #347c3b;
    text-align: center;
    margin-bottom: 30px;
}

/* Make the stars and rating text clickable */
.rating-info {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.rating-info:hover {
    opacity: 0.8;
}

/* Highlight effect for reviews section */
@keyframes highlight-pulse {
    0% { box-shadow: 0 5px 15px rgba(52, 124, 59, 0.1); }
    50% { box-shadow: 0 5px 25px rgba(52, 124, 59, 0.5); }
    100% { box-shadow: 0 5px 15px rgba(52, 124, 59, 0.1); }
}

.highlight-section {
    animation: highlight-pulse 1.5s ease;
}

/* Responsive styles for Yotpo section */
@media (max-width: 768px) {
    .yotpo-section {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .yotpo-section .container {
        padding: 20px 15px;
    }
    
    .yotpo-section .Heading {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

/* 2. Sections appearing on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add this class to all sections you want to animate */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Page Transition (index -> quiz) */
/* Add to both index.html and quiz.html */
body {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* For the page transition effect */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #347c3b;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

/* This class will be added via JavaScript when navigating */
.page-transition.active {
    transform: translateX(0);
}

/* 4. Question and Answer Fade-in */
.quiz-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.quiz-step.active {
    opacity: 1;
    transform: translateY(0);
}

.option {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.quiz-step.active .option {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the animation of options */
.quiz-step.active .option:nth-child(1) { transition-delay: 0.025s; }
.quiz-step.active .option:nth-child(2) { transition-delay: 0.05s; }
.quiz-step.active .option:nth-child(3) { transition-delay: 0.075s; }
.quiz-step.active .option:nth-child(4) { transition-delay: 0.1s; }
.quiz-step.active .option:nth-child(5) { transition-delay: 0.125s; }
.quiz-step.active .option:nth-child(6) { transition-delay: 0.15s; }
.quiz-step.active .option:nth-child(7) { transition-delay: 0.175s; }
.quiz-step.active .option:nth-child(8) { transition-delay: 0.2s; }

/* Fade in the step title and description */
.quiz-step h2, .quiz-step p.step-description {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.quiz-step.active h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.01s;
}

.quiz-step.active p.step-description {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.02s;
}

/* 5. Hide Yotpo reviews during questions, show in results */
/* Hide Yotpo section by default */
.yotpo-section {
    display: none;
    max-width: 1500px;
    margin: 10px auto;
    padding: 0 20px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Only show Yotpo section when results step is active */
body.quiz-results-active .yotpo-section {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Add a CSS-only way to detect when we're on the results page */
#results-step:target ~ .yotpo-section,
#results-step[style*="display: block"] ~ .yotpo-section {
    display: block;
    animation: fadeIn 0.8s ease;
}

/* Additional CSS to ensure proper display of Yotpo in results */
#results-step:not([style*="display: none"]) ~ .yotpo-section {
    display: block;
}

/* Hide Yotpo when any other step is visible */
.quiz-step:not(#results-step)[style*="display: block"] ~ .yotpo-section {
    display: none;
}

/* Fix Yotpo widget width and alignment */
.yotpo.yotpo-main-widget {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure Yotpo reviews display properly */
.yotpo .yotpo-regular-box {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    padding: 15px !important;
}

/* Additional Yotpo Widget Fixes */
.yotpo .yotpo-display-wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

.yotpo .yotpo-nav-content {
    width: 100% !important;
    max-width: 100% !important;
}

.yotpo .yotpo-review {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Hide footer during quiz questions, show only on results */
footer {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Show footer only when results step is active */
body.quiz-results-active footer {
    display: block;
    opacity: 1;
}

/* Hide footer when any quiz step other than results is visible */
.quiz-step:not(#results-step).active ~ footer {
    display: none;
}

/* Additional selector to ensure footer is hidden during quiz steps */
.quiz-container:not(.quiz-completed) ~ footer {
    display: none;
}

/* Touch feedback for mobile devices */
.option.touch-active {
    background-color: rgba(52, 124, 59, 0.1);
    transform: scale(0.98);
    transition: all 0.1s ease;
    border-color: rgba(52, 124, 59, 0.3);
}

/* Mobile confirmation button that appears after selection */
.option .confirm-selection {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #347c3b;
    color: white;
    border-radius: 50px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
}

.option .confirm-selection:hover {
    background-color: #2a6430;
}

.option.selected .confirm-selection {
    opacity: 1;
    transform: scale(1);
}

/* Pulsing animation for the confirmation button */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.option.selected .confirm-selection {
    animation: pulse 1.5s infinite;
}

/* Show confirmation only on mobile */
@media (max-width: 768px) {
    .option {
        position: relative; /* Ensure proper positioning of confirmation button */
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(52, 124, 59, 0.1); /* iOS tap highlight */
    }
    
    .option:after {
        content: '';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid #ddd;
        background-color: transparent;
        transition: all 0.3s ease;
    }
    
    .option.selected:after {
        border-color: #347c3b;
        background-color: #347c3b;
        content: "\f00c"; /* FontAwesome check icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: white;
        font-size: 14px;
        text-align: center;
        line-height: 18px;
    }
    
    .option .confirm-selection {
        display: block;
    }
    
    .option.selected {
        background-color: rgba(52, 124, 59, 0.25);
        box-shadow: 0 0 8px rgba(52, 124, 59, 0.3);
        transform: none; /* Remove lift effect to avoid layout shifts */
    }
}

/* Additional styling for very small mobile screens */
@media (max-width: 360px) {
    .selected-kit-display {
        padding: 15px 10px;
    }
    
    .selected-kit-display h4 {
        font-size: 20px;
    }
    
    .kit-image img {
        max-width: 95%;
    }
    
    .selected-kit-display .benefit p {
        font-size: 14px;
    }
    
    .selected-kit-display .recommendation-badge {
        padding: 8px 6px;
    }
    
    .selected-kit-display .recommendation-badge .badge-main-text {
        font-size: 14px;
    }
    
    .selected-kit-display .recommendation-badge .rating-text {
        font-size: 12px;
    }
    
    .guarantee-badge-small {
        font-size: 12px;
    }
    
    .checkout-btn-kit {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Touch instructions for mobile */
.touch-instructions {
    background-color: #f5f9f5;
    border: 1px solid #ddd;
    border-left: 4px solid #347c3b;
    padding: 10px 15px;
    margin: 10px 15px 20px;
    border-radius: 5px;
    display: none; /* Hidden by default */
    animation: fadeIn 0.5s ease;
}

.touch-instructions p {
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: #444;
}

/* Show touch instructions only on mobile */
body.mobile-touch-mode .touch-instructions {
    display: block;
}

/* Additional mobile-specific styles */
body.mobile-touch-mode .quiz-step {
    padding-bottom: 30px; /* Extra padding to help with scrolling */
}

body.mobile-touch-mode .option,
body.mobile-touch-mode .delivery-option {
    user-select: none; /* Prevent text selection during taps */
}

/* Additional styles for mobile devices */
@media (max-width: 768px) {
    .quiz-container {
        touch-action: pan-y; /* Allow vertical scrolling */
    }
    
    .option {
        touch-action: manipulation; /* Optimize for tap, reducing delay */
    }
    
    /* Style the options to be more clearly tappable */
    .option, .delivery-option {
        position: relative;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(52, 124, 59, 0.1); /* iOS tap highlight */
    }
    
    .option:after {
        content: '';
        position: absolute;
        top: 10px;
        right: 10px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 2px solid #ddd;
        background-color: transparent;
        transition: all 0.3s ease;
    }
    
    .option.selected:after {
        border-color: #347c3b;
        background-color: #347c3b;
        content: "\f00c"; /* FontAwesome check icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: white;
        font-size: 14px;
        text-align: center;
        line-height: 18px;
    }
    
    .option .confirm-selection {
        display: block;
    }
    
    .option.selected {
        background-color: rgba(52, 124, 59, 0.25);
        box-shadow: 0 0 8px rgba(52, 124, 59, 0.3);
        transform: none; /* Remove lift effect to avoid layout shifts */
    }
}

/* Lightbox Styles */
.lightbox-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-container.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
}

.lightbox-close {
        position: absolute;
        top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #347c3b;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lightbox-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 10px 0;
    padding: 0 35px;
}

.kit-image {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Only show magnifying glass on selected kit image */
.selected-kit-display .kit-image::after {
    content: "\f00e"; /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: rgba(52, 124, 59, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Important change: Make the pseudo-element not block clicks */
    z-index: 2;
    font-size: 18px;
}

.selected-kit-display .kit-image:hover::after {
    opacity: 1;
}

/* Ensure delivery option kit images don't have the magnifying glass */
.delivery-option .kit-image::after {
    display: none;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-image {
        max-height: 70vh;
    }
}

/* Thumbnails for Delivery Options */
.delivery-option .option-content {
    display: flex;
    flex-direction: column;
    position: relative;
}

.delivery-option .thumbnail-container {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.delivery-option:hover .thumbnail-container {
    background-color: rgba(52, 124, 59, 0.15); /* Highlight on hover */
}

.delivery-option .thumbnail-image {
    height: 70px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.delivery-option:hover .thumbnail-image {
    transform: scale(1.05);
}

/* Remove magnifying glass from delivery option thumbnails */
.delivery-option .kit-image::after {
    display: none;
}

/* But keep it for the selected kit image */
.selected-kit-display .kit-image::after {
    display: flex;
}

@media (max-width: 768px) {
    .delivery-option .thumbnail-container {
        height: 70px;
    }
    
    .delivery-option .thumbnail-image {
        height: 60px;
    }
}

/* Benefit checkmarks styling */
.formula-benefits .benefit {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.formula-benefits .benefit i {
    color: #347c3b;
    margin-right: 8px;
    font-size: 20px;
}

.formula-benefits .benefit.free-shipping i {
    color: #347c3b;
}

.formula-benefits .benefit p {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}

/* Make sure benefits container has some spacing */
.formula-benefits {
    margin-top: 18px;
}

/* Mini benefits for delivery options */
.mini-benefits {
    margin-top: 8px;
    font-size: 12px;
}

.mini-benefit {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.mini-benefit i {
    color: #4CAF50;
    margin-right: 6px;
    font-size: 16px;
}

.mini-benefit.free-shipping i {
    color: #347c3b;
}

.mini-benefit span {
    margin: 0;
    font-size: 14px;
    line-height: 1.3;
}

/* Make thumbnails in delivery options better arranged */
.delivery-option .thumbnail-container {
    width: 60px;
    height: 60px;
    margin-right: auto;
    margin-bottom: 8px;
    background-color: transparent;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

/* Proper styling for thumbnail images within the container */
.delivery-option .thumbnail-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Style changes for selected delivery option */
.delivery-option.selected .thumbnail-container {
    background-color: transparent !important;
}

/* Ensure all background colors for selected thumbnails are consistent */
.option.selected .thumbnail-container,
.wholesale-retail-options .option.selected .thumbnail-container {
    background-color: transparent !important;
}

/* Fix for wholesale options */
.wholesale-retail-options .option .thumbnail-container {
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* Update the background for the main kit image container */
.kit-image {
    background-color: transparent;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Adjust the kit image display for the selected product */
.selected-kit-display .kit-image {
    background-color: transparent;
    border-radius: 8px;
}

/* Fix for wholesale options */
.wholesale-retail-options .option .thumbnail-container {
    background-color: transparent;
    transition: background-color 0.3s ease;
}

/* Ensure mobile views have appropriate styling */
@media (max-width: 768px) {
    .delivery-option .thumbnail-container {
        width: 50px;
        height: 50px;
        margin-right: 10px;
        margin-bottom: 0;
        padding: 3px;
    }
    
    .delivery-option .option-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .delivery-option h4 {
        flex: 1;
        margin-top: 0;
        margin-bottom: 5px;
    }
    
    .delivery-option p {
        width: 100%;
        margin-left: 0px;
    }
    
    .delivery-option .price {
        margin-left: 0px;
    }
    
    .mini-benefits {
        margin-left: 0px;
        width: 100%;
    }
    
    .kit-image {
        padding: 8px;
    }
}

/* Form Feedback Messages */
.success-message,
.error-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Form disabled state */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled,
button[type="submit"]:disabled {
        opacity: 0.7;
    cursor: not-allowed;
}

/* Animation for form submission */
@keyframes pulse-green {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.success-message {
    animation: pulse-green 1s ease-out;
}

/* Responsive adjustments for the form */
@media (max-width: 768px) {
    .contact-form button[type="submit"] {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}

/* Button loading state */
button.sending {
    position: relative;
    color: transparent !important;
}

button.sending::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Form transition animations */
@keyframes formFadeOut {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes successFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.form-fadeout {
    animation: formFadeOut 0.5s forwards;
}

.success-fadein {
    animation: successFadeIn 0.5s forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* Start Now Button Section */
.start-now-section {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background-color: #f0f7f1;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(52, 124, 59, 0.1);
}

.start-now-button {
    background-color: #347c3b;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(52, 124, 59, 0.2);
}

.start-now-button:hover {
    background-color: #2a6430;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 124, 59, 0.3);
}

.start-now-button i {
    margin-right: 8px;
}

.start-now-section p {
    font-size: 16px;
    color: #555;
    margin: 0;
}

@media (max-width: 768px) {
    .start-now-section {
        margin: 30px 0;
        padding: 15px;
    }
    
    .start-now-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Highlight effect for kit selection section */
@keyframes highlight-kit-section {
    0% { box-shadow: 0 5px 15px rgba(52, 124, 59, 0.1); }
    50% { box-shadow: 0 5px 30px rgba(52, 124, 59, 0.5); }
    100% { box-shadow: 0 5px 15px rgba(52, 124, 59, 0.1); }
}

.selected-kit-container.highlight-section .selected-kit-display {
    animation: highlight-kit-section 1.5s ease;
}

/* Hide the second retail checkout until results page */
#retail-checkout2 {
        display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    }
    
/* Show the second retail checkout when on results page */
body.quiz-results-active #retail-checkout2 {
    display: block;
        opacity: 1;
}

/* Styling for the Start Now button in retail-checkout2 */
#retail-checkout2 .start-now-button {
    background-color: #347c3b;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 15px auto;
    box-shadow: 0 4px 8px rgba(52, 124, 59, 0.2);
    width: 100%;
    max-width: 300px;
}

#retail-checkout2 .start-now-button:hover {
    background-color: #2a6430;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(52, 124, 59, 0.3);
}

#retail-checkout2 .start-now-button i {
    margin-right: 8px;
}

#retail-checkout2 p {
    font-size: 16px;
    color: #555;
    margin: 10px 0;
}

@media (max-width: 768px) {
    #retail-checkout2 .start-now-button {
        padding: 12px 20px;
        font-size: 16px;
        width: 100%;
    }
}

/* Mobile view optimization for Other Available Options section */
@media (max-width: 768px) {
    /* Make option containers more compact on mobile */
    .wholesale-retail-options .option,
    .wholesale-retail-options .delivery-option {
        margin-bottom: 10px;
        padding: 0;
    }
    
    .wholesale-retail-options .option-content {
        padding: 12px 10px;
        min-height: auto;
    }
    
    /* Reduce whitespace in option content */
    .wholesale-retail-options .option-content h4 {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 5px;
    }
    
    .wholesale-retail-options .option-content p {
        font-size: 13px;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    
    /* Make the kit description and pricing more compact */
    .wholesale-retail-options .option-content .price {
        margin-top: 5px;
        font-size: 16px;
    }
    
    /* More compact layout for product images */
    .wholesale-retail-options .thumbnail-container {
        width: 50px;
        height: 50px;
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    /* Make horizontal layout more efficient with less whitespace */
    .wholesale-retail-options .option-content {
        display: grid;
        grid-template-columns: 50px 1fr;
        grid-gap: 10px;
        align-items: center;
    }
    
    /* Put description and price in second column */
    .wholesale-retail-options .option-content h4,
    .wholesale-retail-options .option-content p,
    .wholesale-retail-options .option-content .price {
        grid-column: 2;
    }
    
    /* Ensure savings info is properly positioned */
    .wholesale-retail-options .option-content .savings-info {
        font-size: 12px;
        margin-top: 0;
    }
    
    /* Make the original price smaller */
    .wholesale-retail-options .option-content .original-price {
        font-size: 13px;
    }
}

/* Further optimization for smaller screens */
@media (max-width: 480px) {
    .wholesale-retail-options .option-content {
        padding: 10px 8px;
    }
}

/* Scroll-up arrow styling */
.scroll-up-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #347c3b;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    cursor: pointer;
    /* Replace multiple animations with a single sequence */
    animation: arrow-single-animation 2s ease;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Single animation that combines the appear and gentle pulse */
@keyframes arrow-single-animation {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }
    75% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Subtle continuous pulse after the initial animation */
@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Add the subtle pulse after the initial animation is complete */
.scroll-up-arrow.pulse-active {
    animation: subtle-pulse 2s infinite;
}

.scroll-up-arrow:hover {
    background-color: #2a6430;
    transform: translateY(-2px);
}

.scroll-up-arrow:active {
    transform: translateY(0);
}

/* Highlight effect for the selected kit container */
.selected-kit-container.highlight-section {
    animation: highlight-section 2s ease;
}

@keyframes highlight-section {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 15px rgba(52, 124, 59, 0.5);
    }
}

/* Ensure padding at the bottom of the delivery option for the arrow */
@media (max-width: 768px) {
    .delivery-option {
        padding-bottom: 0px !important;
        position: relative;
    }
    
    /* Clear any previous arrows */
    .delivery-option::before {
        display: none !important;
    }
    
    /* Always ensure there's space for the arrow at the bottom */
    .delivery-option .option-content {
        padding-bottom: 10px;
    }
}

/* Add matching background to selected option images */
.delivery-option.selected .thumbnail-container {
    background-color: rgba(52, 124, 59, 0.15);
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Also style the main product image in the selected kit display */
.selected-kit-display .kit-image {
    background-color: #f0f7f1;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style the option images in all cases */
.option.selected .thumbnail-container,
.wholesale-retail-options .option.selected .thumbnail-container {
    background-color: rgba(52, 124, 59, 0.15);
}

/* Commercial Notice Banner */
.commercial-notice-banner {
    background-color: #f8f9fa;
    border: 2px solid #347c3b;
    border-radius: 10px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.5s ease forwards;
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-content i.fa-building {
    font-size: 32px;
    color: #347c3b;
}

.notice-text {
    flex: 1;
}

.notice-text h3 {
    font-size: 18px;
    color: #347c3b;
    margin: 0 0 5px 0;
}

.notice-text p {
    font-size: 14px;
    margin: 0;
    color: #333;
}

.scroll-to-wholesale {
    background-color: #347c3b;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.scroll-to-wholesale:hover {
    background-color: #2a6230;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.scroll-to-wholesale i {
    font-size: 12px;
}

/* Wholesale Options Section */
#wholesale-options {
    margin-top: 40px;
    animation: fadeIn 0.5s ease forwards;
}

#wholesale-options h3 {
    margin-bottom: 20px;
    color: #347c3b;
    font-size: 24px;
    font-weight: 600;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-text {
        margin-bottom: 10px;
    }
    
    .scroll-to-wholesale {
        width: 100%;
        justify-content: center;
    }
}

/* Wholesale Header */
.wholesale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wholesale-header:hover {
    background-color: #e9ecef;
}

.wholesale-header h3 {
    margin: 0;
    color: #347c3b;
    font-size: 20px;
    font-weight: 600;
}

.toggle-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #347c3b;
    color: white;
    transition: all 0.3s ease;
}

.toggle-indicator i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

#wholesale-options.expanded .toggle-indicator {
    background-color: #2a6230;
}

.wholesale-content {
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background-color: #fff;
    margin-top: -5px;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force center alignment on price containers */
.option-price-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
}

.option-price-container .original-price,
.option-price-container .current-price,
.option-price-container .savings-amount {
    text-align: center !important;
    width: 100% !important;
}