/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --Colors-Global-White: #FFF;
    --fo: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-family-onest: 'Onest', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Import Onest font */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap');

body {
    font-family: var(--font-family-onest)  !important;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

/* Quiz Container */
.quiz-container {
    margin: 0 auto;
    height: 100vh;
    padding: 20px;
    background: url('../images/quiz-overlay.png') no-repeat center center;
    background-size: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex; /* Always display flex */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
    font-family: var(--font-family-onest);
    opacity: 0; /* Start invisible */
    visibility: hidden; /* Hidden from screen readers */
    transform: scale(0.95); /* Slight scale down */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.quiz-container.show {
    opacity: 1; /* Fade in */
    visibility: visible; /* Show to screen readers */
    transform: scale(1); /* Scale to normal size */
}

.quiz-content {
    max-width: 800px;
    overflow-y: auto;
    padding: 20px;
    background: transparent;
    border-radius: 20px;
    box-shadow: none;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-in-out 0.1s, transform 0.4s ease-in-out 0.1s;
    width: 100%;
    margin-top: 80px;
}

.quiz-container.show .quiz-content {
    opacity: 1;
    transform: translateY(0);
}

.quiz-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #FFF;
    z-index: 10;
}

.quiz-close:hover {
    color: #e5e7eb;
}

/* Quiz Header */
.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    background: transparent;
    border-radius: 15px;
    color: white;
}

.quiz-header h1 {
    font-family: var(--font-family-onest);
    font-weight: 300;
    font-style: Light;
    font-size: 32px;
    margin-bottom:8px;
    line-height: 108%;
    letter-spacing: -5%;
    text-align: center;
}

.quiz-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Quiz Screens */
.quiz-screen {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.quiz-screen.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: fadeIn 0.3s ease-in;
}

/* Quiz Box - First Screen Styling */
.quiz-box {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    display: flex;
    width: 435px;
    height: auto;
    min-height: 408px;
    padding: 24px 24px 24px 16px;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    margin: 0 auto;
}

.quiz-box #product-name {
    font-family: var(--font-family-onest);
    font-weight: 400;
    font-style: Regular;
    font-size: 42px;
    line-height: 127%;
    letter-spacing: -5%;  
    max-width: 350px; 
    color: black;
}
.quiz-box .product-info {
   text-align: start;
}

.quiz-box #product-description {
    font-family: var(--font-family-onest);
font-weight: 300;
max-width: 337px;
font-style: Light;
font-size: 20px;
line-height: 139%;
letter-spacing: -5%;
color: black;
margin-bottom: 55px;
}

/* Product recommendation sections only */
.quiz-box .product-result {
    background: white;
}

/* Target only the product result screens specifically */
#baby-result .quiz-box,
#kids-result .quiz-box,
#womens-result .quiz-box,
#complete-result .quiz-box,
#balance-result .quiz-box,
#irritable-bowel-info .quiz-box,
#loose-stools-info .quiz-box,
#inconsistent-bowel-info .quiz-box,
#product-results .quiz-box {
    max-width: 758px;
    width: 100%;
    align-items: start;
}

/* Responsive design for product recommendation screens */
@media (max-width: 375px) {
    .quiz-content .ultraflora-logo{
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }
    .quiz-box #product-description{
        margin-bottom: 0 !important;
    }
}
@media (max-width: 1024px) {
    .quiz-content {
        padding: 20px;
        margin-top: 60px;
    }
}
@media (max-width: 768px) {
    .quiz-content {
        margin-top: 40px;
        padding-top: 60px;
    }
    
    #baby-result .quiz-box,
    #kids-result .quiz-box,
    #womens-result .quiz-box,
    #complete-result .quiz-box,
    #balance-result .quiz-box,
    #irritable-bowel-info .quiz-box,
    #loose-stools-info .quiz-box,
    #inconsistent-bowel-info .quiz-box,
    #product-results .quiz-box {
        max-width: 95%;
        width: 95%;
    }

    .quiz-info,
    .educational-info {
        max-width: 95%;
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .quiz-content {
        margin-top: 20px;
    }
    
    #baby-result .quiz-box,
    #kids-result .quiz-box,
    #womens-result .quiz-box,
    #complete-result .quiz-box,
    #balance-result .quiz-box,
    #irritable-bowel-info .quiz-box,
    #loose-stools-info .quiz-box,
    #inconsistent-bowel-info .quiz-box,
    #product-results .quiz-box {
        max-width: 98%;
        width: 98%;
    }
    .complete-the-quiz-an-quiz {
        font-size: 13px !important;
        max-width: 220px;
    }

    .quiz-info,
    .educational-info {
        max-width: 98%;
        width: 98%;
        padding: 12px;
        margin: 0 auto 15px auto;
    }

    .quiz-info h2,
    .educational-info h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .quiz-info p,
    .educational-info p {
        font-size: 16px;
    }
}

/* Base educational information styling */
.quiz-info, 
.educational-info {
    background: #FFF9E5 !important;
    color: black !important;
    padding: 20px !important;
    border-radius: 12px;
    margin-bottom: 20px !important;
    text-align: center;
    width: 100% !important;
    max-width: 758px;
    margin: 0 auto 20px auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1 !important;
}


.quiz-info h2,
.educational-info h2 {
    font-family: var(--font-family-onest);
    font-weight: 400 !important;
    font-style: Regular;
    font-size: 20px !important;
    line-height: 127%;
    letter-spacing: -5%;
    color: #7F6711 !important;
    border-radius: 8px;
    text-align: start !important;
    margin-bottom: 15px !important;
    display: block !important;
    visibility: visible !important;
}

.quiz-info p,
.educational-info p {
    font-family: var(--font-family-onest);
    font-weight: 400 !important;
    font-style: Regular;
    font-size: 18px !important;
    line-height: 128%;
    letter-spacing: 0%;
    margin: 0 !important;
    text-align: start !important;
    color: black !important;
    display: block !important;
    visibility: visible !important;
}

.quiz-question {
    color: #FFF;
    font-weight: 400;
    font-size: 24px;
  margin-bottom: 24px;
    line-height: 130%;
    
    
}
.product-result .quiz-question {
    display: none;
}
.results-in-container{
    background: #059669;
    color: white;
    padding: 8px;
}

.results-in {
    font-size: 19px !important;
    line-height: 127%;
    margin-bottom: 10px !important;
    letter-spacing: -5%;
    font-weight: 400 !important;
    font-style: Regular !important;
    font-family: var(--font-family-onest) !important;
}

.results-intro{
    font-size: 17px !important;
    line-height: 127%;
    margin-bottom: 10px !important;
    letter-spacing: -5%;
    font-weight: 400 !important;
    font-style: Regular !important;
    font-family: var(--font-family-onest) !important;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 48px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 15px 24px;
    border: 1px solid #FFF ;
    transition: all 0.2s ease;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quiz-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #FFF;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    appearance: none;
    position: relative;
    flex-shrink: 0;
    min-width: 18px;
    min-height: 18px;
}

.quiz-radio:checked {
    background: #FFF;
}

.quiz-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #1e3a8a;
    border-radius: 50%;
}

.option-text {
    color: #FFF;
    font-weight: 600;
    font-style: SemiBold;
    font-size: 16px;
    line-height: 132%;
    letter-spacing: 0%;
    cursor: pointer;
    font-family: var(--font-family-onest);
}

.quiz-option-btn {
    background: rgba(59, 130, 246, 0.8);
    color: white;
    border: none;
    padding: 18px 25px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    width: 100%;
}

.quiz-option-btn:hover {
    background: rgba(37, 99, 235, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.quiz-option-btn:active {
    transform: translateY(0);
}

.start-quiz-btn {
    background: #10b981;
    color: var(--Colors-Global-White, #FFF);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.start-quiz-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.continue-quiz-btn {
    background: #10b981;
    color: var(--Colors-Global-White, #FFF);
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.continue-quiz-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

.continue-quiz-btn:disabled {
    background: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.quiz-progress {
    color: var(--Colors-Global-White, #FFF);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

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

/* Back Button */
.quiz-back-btn {
    position: fixed;
    top: 35px;
    left: 35px;
    background: transparent;
    border: 1px solid #F0F6FC33;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    z-index: 10000;
    font-family: inherit;
}

.quiz-back-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateX(-2px);
}

.quiz-back-btn svg {
    transition: transform 0.2s ease;
}

.quiz-back-btn:hover svg {
    transform: translateX(-2px);
}

.quiz-close-btn {
    position: fixed !important;
    top: 35px !important;
    left: 35px !important;
    background: transparent;
    border: 1px solid #F0F6FC33;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    z-index: 10001;
    font-family: inherit;
    opacity: 1;
    visibility: visible;
}

.quiz-close-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    transform: translateX(-2px);
}

.quiz-close-btn svg {
    transition: transform 0.2s ease;
}

.quiz-close-btn:hover svg {
    transform: translateX(-2px);
}

/* Hide close button on all screens except quiz-start */
.quiz-screen:not(#quiz-start) .quiz-close-btn {
    display: none !important;
}

/* Hide back button when quiz-start is active */
.quiz-container:has(#quiz-start.active) .quiz-back-btn {
    display: none !important;
}

/* Show back button on all other screens */
.quiz-screen:not(#quiz-start).active ~ .quiz-back-btn,
.quiz-container:has(.quiz-screen:not(#quiz-start).active) .quiz-back-btn {
    display: flex !important;
}

/* Product Results */
.product-result {
    text-align: center;
    padding: 0;
    width: 100%;
}

.product-result h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.product-card {
    background:white;
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.product-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.product-text {
    flex: 1;
}

.product-image {
    flex-shrink: 0;
    width: 323px;
    height: 368px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.product-card h4 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: white;
}

.product-card p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.95;
    color: white;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.quiz-box .price-note, .quiz-box .product-price {
    font-family: var(--font-family-onest);
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    line-height: 127%;
    color: #059669 !important;
    letter-spacing: -5%;
    
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 24px;
}

.cta-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.cta-btn.primary {
    background: #10b981;
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.cta-btn.primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cta-btn.secondary {
    background: #6b7280;
    color: white;
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.3);
}

.cta-btn.secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background-color: white;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal-content h3 {
    color: #1e3a8a;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
}

.retailer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.retailer-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.retailer-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.retailer-info {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
}

.retailer-name {
    color: #1e3a8a;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.retailer-name:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.promo-code-section {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.promo-code {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    min-width: 80px;
}

.copy-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: #10b981;
}

.copy-btn .copy-text {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.copy-btn .copied-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-btn.copied .copy-text {
    opacity: 0;
}

.copy-btn.copied .copied-text {
    opacity: 1;
}

/* Animation for promo code copy success */
@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.copy-btn.copied {
    animation: copySuccess 0.3s ease-in-out;
}

/* Hover effects for retailer cards */
.retailer-card:hover .promo-code {
    background: linear-gradient(135deg, #059669, #2563eb);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Tooltip for promo codes */
.promo-code {
    position: relative;
    cursor: pointer;
}

.promo-code:hover::after {
    content: "Click to copy";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease-in;
}

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

/* Copy success message styles */
.copy-success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.copy-success-message.show {
    transform: translateX(0);
}

.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.success-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.success-text strong {
    color: #fbbf24;
}

/* Progress Bar */
.progress-container {
    margin-top: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-box {
        width: 90%;
        max-width: 435px;
        height: auto;
        min-height: 408px;
        padding: 20px 16px;
    }
    
    /* Modal responsive styles */
    .modal-content {
        width: 95%;
        max-width: 500px;
        padding: 20px;
        max-height: 85vh;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .quiz-question {
        font-size: 15px;
    }
    
    .retailer-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .retailer-card {
        padding: 16px;
    }
    
    .promo-code-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .copy-btn {
        width: 100%;
        min-width: auto;
    }
    .product-info{
        flex-direction: column !important;
    }
    
    .option-text {
        font-size: 15px;
    }
    
    .quiz-option-btn {
        font-size: 15px;
        padding: 16px 22px;
    }
    
    .start-quiz-btn, .continue-quiz-btn {
        font-size: 16px;
        padding: 14px 28px;
        min-width: 180px;
    }

    .quiz-header h1 {
        font-size: 2rem;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .product-info {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    .product-image {
        width: 250px;
        height: 285px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .retailer-options {
        grid-template-columns: 1fr;
    }
    
    .retailer-card {
        padding: 16px;
    }
    
    .promo-code-section {
        flex-direction: row;
        gap: 10px;
        text-align: center;
    }
    
    .copy-btn {
        width: 100%;
        min-width: auto;
    }
    .retailer-info {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .quiz-box {
        width: 95%;
        padding: 16px 12px;
    }
    
    .quiz-question {
        font-size: 20px;
    }
    
    /* Modal responsive styles for small screens */
    .modal-content {
        width: 98%;
        max-width: 350px;
        padding: 16px;
        max-height: 80vh;
    }
    
    .modal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
  
    
    .retailer-name {
        font-size: 1.1rem;
    }
    
    .promo-code-section {
        width: 100%;
        justify-content: center;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .quiz-option-btn {
        font-size: 14px;
        padding: 14px 20px;
    }
    
    .start-quiz-btn, .continue-quiz-btn {
        font-size: 15px;
        padding: 12px 24px;
        min-width: 160px;
    }
    
    .quiz-header h1 {
        font-size: 1.8rem;
    }
    
    .product-card h2, .product-card h3 {
        font-size: 1.2rem;
    }
    
    .product-info {
        gap: 12px;
    }
    
    .product-image {
        width: 200px;
        height: 228px;
    }
    
    .price {
        font-size: 1.1rem;
    }
}

/* Product Results Screen Mobile Padding */
@media (max-width: 768px) {
    .quiz-container .quiz-content.product-results-active {
        padding: 20px !important;
        margin-top: 40px !important;
        padding-top: 60px !important;
    }
}

@media (max-width: 480px) {
    .quiz-container .quiz-content.product-results-active {
        padding: 20px !important;
        margin-top: 20px !important;
        padding-top: 60px !important;
    }
}

/* Offer Badge Styles for Quiz Section */
.offer-badge-quiz {
  display: block;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(96, 168, 73, 1) 100%);
  border: 2px solid #efffeb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  margin: 20px auto;
}

.offer-text-quiz {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 300px;
  text-align: start;
}

.x15-off-quiz {
  color: #60A849;
  font-family: var(--font-family-onest);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.complete-the-quiz-an-quiz {
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: #333;
}

.offer-image-quiz {
  width: 180px;
  height: auto;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
}

/* New Offer Badge Styles for Product Results */
.offer-badge-product {
  display: block;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(96, 168, 73, 1) 100%);
  border: 2px solid #efffeb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  margin: 20px auto;
}

.offer-text-product {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 300px;
  text-align: start;
}

.x15-off-product {
  color: #60A849;
  font-family: var(--font-family-onest);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.complete-the-quiz-an-product {
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: #333;
}

.offer-image-product {
  width: 180px;
  height: auto;
  object-fit: cover;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
} 

@media (max-width: 420px) {
    .offer-image-quiz {
        width: 114px;;
    }

}
@media (max-width: 380px) {
    .offer-image-quiz {
        width: 106px;;
    }

}