/* CSS for Sweet Match Personality Quiz Widget with Advanced Animations & Layouts */
.sweet-match-section {
    position: relative;
    padding: 20px 0 80px 0;
    background: transparent;
    overflow: hidden;
}

.sweet-match-container {
    max-width: 850px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(232, 93, 4, 0.15);
    border-radius: 28px;
    padding: 50px 40px;
    box-shadow: 0 25px 60px rgba(74, 47, 29, 0.08);
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sweet-match-container:hover {
    border-color: rgba(232, 93, 4, 0.35);
    box-shadow: 0 30px 70px rgba(232, 93, 4, 0.12);
}

/* Quiz Steps and Animations */
.quiz-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Progress Bar */
.quiz-progress-container {
    width: 100%;
    height: 8px;
    background: #eddcd0;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
}

.quiz-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e85d04, #ff8c38, #ffb879);
    background-size: 200% auto;
    animation: progressShimmer 2s linear infinite;
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Quiz Hero Animations */
.quiz-hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.quiz-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff5ee;
    color: #e85d04;
    display: grid;
    place-items: center;
    border: 2px solid #fce2d0;
    box-shadow: 0 8px 20px rgba(232, 93, 4, 0.12);
}

.quiz-hero-icon svg {
    width: 28px;
    height: 28px;
}

.icon-1 {
    animation: quizFloat 3s ease-in-out infinite;
}
.icon-2 {
    animation: quizFloat 3s ease-in-out infinite;
    animation-delay: 1s;
    background: #e85d04;
    color: white;
    width: 70px;
    height: 70px;
}
.icon-2 svg {
    width: 36px;
    height: 36px;
}
.icon-3 {
    animation: quizFloat 3s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes quizFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Typography */
.sweet-match-container h3.quiz-title {
    font-size: 32px;
    color: #4a2f1d;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
    animation: titleEntrance 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.sweet-match-container p.quiz-subtitle {
    color: #84746a;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    animation: titleEntrance 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

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

/* Start Button Glow */
.quiz-start-btn {
    background: #e85d04;
    color: white;
    font-weight: 700;
    border: none;
    padding: 16px 42px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(232, 93, 4, 0.28);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.quiz-start-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: none;
}

.quiz-start-btn:hover::after {
    left: 200%;
    transition: left 0.8s ease-in-out;
}

.quiz-start-btn:hover {
    background: #d4520a;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(232, 93, 4, 0.38);
}

.quiz-start-btn svg {
    transition: transform 0.25s ease;
}

.quiz-start-btn:hover svg {
    transform: translateX(5px);
}

/* Choice Cards entrance */
.quiz-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.choice-card {
    background: #ffffff;
    border: 1.5px solid #eee1d7;
    border-radius: 18px;
    padding: 22px;
    font-size: 16px;
    font-weight: 700;
    color: #4a2f1d;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    box-shadow: 0 6px 14px rgba(74, 47, 29, 0.02);
    animation: choiceEntrance 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes choiceEntrance {
    from { opacity: 0; transform: scale(0.95) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Staggered Entrance */
.quiz-choices .choice-card:nth-child(1) { animation-delay: 0.05s; }
.quiz-choices .choice-card:nth-child(2) { animation-delay: 0.12s; }
.quiz-choices .choice-card:nth-child(3) { animation-delay: 0.19s; }
.quiz-choices .choice-card:nth-child(4) { animation-delay: 0.26s; }

.choice-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff0e4;
    color: #e85d04;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.choice-icon svg {
    width: 20px;
    height: 20px;
}

.choice-card:hover {
    border-color: #e85d04;
    background: #fffbf7;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 24px rgba(232, 93, 4, 0.1);
}

.choice-card:hover .choice-icon {
    background: #e85d04;
    color: white;
    transform: scale(1.1) rotate(6deg);
}

/* Result Card & Celebrations */
.result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.result-image-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
    box-shadow: 0 10px 30px rgba(232, 93, 4, 0.2);
    margin-bottom: 22px;
    background: #fdf6f0;
    position: relative;
    animation: resultImgPulse 3s infinite ease-in-out;
}

@keyframes resultImgPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(232, 93, 4, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 15px 35px rgba(232, 93, 4, 0.35); }
}

.result-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-badge {
    background: linear-gradient(135deg, #fdf2ec, #ffe5d8);
    color: #e85d04;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(232, 93, 4, 0.05);
}

.result-name {
    font-size: 30px;
    font-weight: 800;
    color: #4a2f1d;
    margin: 0 0 12px 0;
    letter-spacing: -0.6px;
}

.result-desc {
    font-size: 15px;
    color: #84746a;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 20px;
}

/* Pairings Section */
.result-pairing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid #dcfce7;
    animation: pairingPulse 2s infinite alternate;
}

@keyframes pairingPulse {
    from { opacity: 0.95; }
    to { opacity: 1; transform: scale(1.02); }
}

.result-pairing svg {
    width: 16px;
    height: 16px;
    color: #15803d;
}

/* Result Vendors Section */
.result-vendors-heading {
    font-size: 14px;
    font-weight: 800;
    color: #a08c80;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    width: 100%;
    border-top: 1px dashed #eee1d7;
    padding-top: 25px;
}

.result-vendors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 30px;
}

.result-vendor-card {
    background: #fffdfb;
    border: 1px solid #f2e6dc;
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: all 0.25s ease;
}

.result-vendor-card:hover {
    border-color: #e85d04;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 47, 29, 0.04);
}

.result-vendor-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    border: 1px solid #eaeaea;
    flex-shrink: 0;
}

.result-vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-vendor-info {
    min-width: 0;
}

.result-vendor-info h5 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 700;
    color: #4a2f1d;
}

.result-vendor-info p {
    margin: 0;
    font-size: 11px;
    color: #8c7667;
}

/* Confetti effect particles */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #f2d711;
    z-index: 99;
    pointer-events: none;
    border-radius: 2px;
    animation: confettiFall 4s linear infinite;
}

@keyframes confettiFall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(500px) rotate(720deg); opacity: 0; }
}

/* Background elements */
.quiz-bg-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(232, 93, 4, 0.04);
    pointer-events: none;
    z-index: 1;
    filter: blur(20px);
}

.quiz-bg-circle-1 {
    top: -50px;
    left: -100px;
    animation: floatBlob 10s ease-in-out infinite alternate;
}

.quiz-bg-circle-2 {
    bottom: -100px;
    right: -50px;
    animation: floatBlob 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(20px) scale(1.1); }
}

/* Action Row & Buttons */
.quiz-action-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px;
    width: 100%;
}

.btn-restart {
    background: white;
    border: 1.5px solid #e85d04;
    color: #e85d04;
    font-weight: 700;
    padding: 15px 36px;
    font-size: 15px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(232, 93, 4, 0.05);
}

.btn-restart:hover {
    background: #fff8f2;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(232, 93, 4, 0.12);
}

.btn-restart svg {
    transition: transform 0.25s ease;
}

.btn-restart:hover svg {
    transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    .sweet-match-container {
        padding: 30px 20px;
        margin: 0 16px;
    }
    .sweet-match-container h3.quiz-title {
        font-size: 24px;
    }
    .quiz-choices {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .choice-card {
        padding: 18px;
    }
    .result-vendors-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .sweet-match-section {
        padding: 40px 0;
    }
    .sweet-match-container {
        padding: 24px 16px;
        margin: 0 12px;
    }
    .sweet-match-container h3.quiz-title {
        font-size: 20px;
    }
    .sweet-match-container p.quiz-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .result-name {
        font-size: 24px;
    }
    .quiz-action-row {
        flex-direction: column;
        gap: 12px;
    }
    .quiz-action-row a, 
    .quiz-action-row button, 
    .quiz-action-row .quiz-start-btn, 
    .quiz-action-row .btn-restart {
        width: 100% !important;
        justify-content: center;
        box-sizing: border-box;
    }
}
