/* ========================================
   BRIDAL QUIZ SIMULATOR - STYLES V3
   Couleurs: #322F3F, #BE8C89, #8B6970
   ======================================== */

.bridal-quiz {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========== PROGRESS BAR ========== */
.quiz-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B6970 0%, #BE8C89 100%);
    transition: width 0.4s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: #322F3F;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
}

/* ========== HEADER ========== */
.quiz-header {
    text-align: center;
    margin-bottom: 60px;
}

.quiz-title {
    font-size: 36px;
    color: #322F3F;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.quiz-subtitle {
    font-size: 18px;
    color: #8B6970;
    margin: 0;
    font-weight: 400;
}

/* ========== QUESTIONS ========== */
.quiz-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.quiz-step.active {
    display: block;
}

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

.question-title {
    font-size: 28px;
    color: #322F3F;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.question-help {
    text-align: center;
    color: #8B6970;
    font-size: 15px;
    margin-bottom: 40px;
    font-style: italic;
}

/* ========== OPTIONS GRID ========== */
.options-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.options-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.options-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.options-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ========== OPTION CARDS WITH SVG ========== */
.option-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.option-card:hover {
    border-color: #BE8C89;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(190, 140, 137, 0.25);
}

.option-card.selected {
    border-color: #8B6970;
    background: linear-gradient(135deg, #faf9f8 0%, #f5f3f2 100%);
    box-shadow: 0 8px 25px rgba(139, 105, 112, 0.3);
}

/* Image Visual Container */
.option-visual {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.option-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.option-card:hover .option-visual img {
    transform: scale(1.05);
}

/* Option Content */
.option-content {
    padding: 20px 15px;
    text-align: center;
}

.option-card-no-visual .option-content {
    padding: 30px 20px;
}

.option-label {
    font-size: 18px;
    color: #322F3F;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.option-desc {
    font-size: 14px;
    color: #8B6970;
    line-height: 1.4;
}

/* ========== EMAIL CAPTURE ========== */
.email-capture-box {
    background: linear-gradient(135deg, #faf9f8 0%, #f5f3f2 100%);
    border: 2px solid #BE8C89;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(190, 140, 137, 0.2);
}

.email-subtitle {
    font-size: 16px;
    color: #8B6970;
    margin-bottom: 35px;
    line-height: 1.5;
}

.email-form {
    max-width: 90%;
    margin: 0 auto;
}

.date-field-wrapper {
    width: 100%;
    margin-bottom: 15px;
}

.date-field-wrapper label {
    display: block;
    text-align: left;
    color: #8B6970;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.date-field-wrapper input[type="date"] {
    margin-bottom: 0;
}

.email-form input[type="text"],
.email-form input[type="email"],
.email-form input[type="date"] {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

.email-form input:focus {
    outline: none;
    border-color: #8B6970;
    box-shadow: 0 0 0 3px rgba(139, 105, 112, 0.1);
}

.consent-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 25px 0;
    font-size: 14px;
    color: #322F3F;
    cursor: pointer;
    text-align: left;
}

.consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-note {
    font-size: 13px;
    color: #8B6970;
    margin-top: 25px;
    text-align: center;
}

/* ========== BUTTONS ========== */
.email-capture-box .btn-primary {
    background: #8B6970;
    color: white;
    border: none;
    padding: 18px 45px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.email-capture-box .btn-primary:hover {
    background: #BE8C89;
    transform: translateY(-2px);
}

.btn-large {
    padding: 22px 60px;
    font-size: 20px;
    margin: 10px;
}

.btn-secondary {
    background: white;
    color: #8B6970;
    border: 2px solid #8B6970;
    padding: 18px 45px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

.btn-secondary:hover {
    background: #8B6970;
    color: white;
}

/* Bouton booking avec style inversé */
#btn-booking {
    background: var(--e-global-color-secondary);
    color: white;
    border: 2px solid var(--e-global-color-secondary);
    padding: 18px 45px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 10px;
}

#btn-booking:hover {
    background: white;
    color: var(--e-global-color-secondary);
    border-color: var(--e-global-color-secondary);
}

/* ========== RESULTS SCREEN (AMÉLIORÉ) ========== */
.quiz-results {
    animation: fadeIn 0.6s ease;
}

.results-content {
    background: white;
    border-radius: 20px;
    padding: 60px 50px;
    box-shadow: 0 10px 50px rgba(50, 47, 63, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.results-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B6970 0%, #BE8C89 100%);
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

#profile-title {
    font-size: 42px;
    color: #322F3F;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-subtitle {
    font-size: 22px;
    color: #BE8C89;
    margin-bottom: 25px;
    font-weight: 600;
}

.profile-description {
    font-size: 18px;
    color: #8B6970;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}


.profile-result-image-wrap {
    margin: 34px auto 0;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(50, 47, 63, 0.16);
}

.profile-result-image-wrap img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.profile-gallery-section {
    background: linear-gradient(135deg, #fffaf8 0%, #f7efec 100%);
    border: 2px solid rgba(190, 140, 137, 0.35);
}

.profile-gallery-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #8B6970;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.profile-gallery-intro {
    color: #8B6970;
    font-size: 16px;
    line-height: 1.7;
    margin: -10px 0 26px;
}

.profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.profile-gallery-card {
    margin: 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(50, 47, 63, 0.10);
    border: 1px solid rgba(190, 140, 137, 0.22);
}

.profile-gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    background: #f5f3f2;
}

.profile-gallery-card figcaption {
    padding: 12px 14px 14px;
    color: #322F3F;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

/* Results Sections */
.results-section {
    margin: 45px 0;
    padding: 35px;
    background: #fafafa;
    border-radius: 16px;
}

.results-section h3 {
    color: #322F3F;
    margin-bottom: 28px;
    font-size: 26px;
    font-weight: 700;
}

.characteristics-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.characteristic-item {
    background: white;
    padding: 18px 22px;
    border-radius: 12px;
    color: #322F3F;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-left: 4px solid #BE8C89;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.characteristic-item:before {
    content: "✓";
    color: #8B6970;
    font-weight: bold;
    font-size: 20px;
}

.styles-grid {
    display: grid;
    gap: 22px;
}

.style-item {
    background: white;
    padding: 28px;
    border-radius: 14px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
}

.style-item:hover {
    border-color: #BE8C89;
    box-shadow: 0 4px 15px rgba(190, 140, 137, 0.15);
}

.style-item h4 {
    color: #322F3F;
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
}

.style-item p {
    color: #8B6970;
    line-height: 1.7;
    font-size: 16px;
}

.fabrics-text,
.tips-text,
.avoid-text {
    font-size: 17px;
    color: #322F3F;
    line-height: 1.9;
    background: white;
    padding: 28px;
    border-radius: 14px;
}

.highlight-section {
    background: linear-gradient(135deg, #faf9f8 0%, #f5f3f2 100%);
    border: 2px solid #BE8C89;
}

.avoid-section {
    background: #fff8f8;
    border: 2px solid #e8d5d5;
}

.results-cta {
    text-align: center;
    padding: 50px 0 30px;
    border-top: 2px solid #f0f0f0;
    margin-top: 50px;
}

.results-cta h3 {
    color: #322F3F;
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 700;
}

.cta-subtitle {
    color: #8B6970;
    font-size: 19px;
    margin-bottom: 35px;
}

.results-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.results-footer p {
    color: #8B6970;
    font-size: 15px;
}

p#profile-subtitle, p#profile-description, p.quiz-subtitle {
    text-align: center!important;
}

/* ========== LOADING SPINNER ========== */
.quiz-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e8e8e8;
    border-top-color: #8B6970;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) and (min-width: 769px) {
    footer .elementor-element-61777f9 img,
    footer .elementor-element-d0a5387 img,
    footer .elementor-element-0642d12 img,
    footer .elementor-element-925e6e4 img,
    footer .elementor-element-ec281b9 img,
    footer .elementor-element-6d9edd5 img {
        width: 64px !important;
        max-width: 64px !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

@media (max-width: 768px) {
    .bridal-quiz {
        padding: 30px 15px;
    }

    .quiz-title {
        font-size: 28px;
    }

    .quiz-subtitle {
        font-size: 16px;
    }

    .question-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .options-grid-2,
    .options-grid-3,
    .options-grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .option-visual {
        height: 160px;
    }

    .option-label {
        font-size: 17px;
    }

    .option-desc {
        font-size: 13px;
    }

    .email-capture-box {
        padding: 35px 25px;
    }

    .results-content {
        padding: 40px 25px;
    }

    #profile-title {
        font-size: 30px;
    }

    .profile-gallery-grid {
        grid-template-columns: 1fr;
    }

    .profile-gallery-card img {
        aspect-ratio: 4 / 4.6;
    }

    .profile-subtitle {
        font-size: 18px;
    }

    .results-section {
        padding: 25px 20px;
    }

    .btn-large {
        padding: 18px 35px;
        font-size: 18px;
        width: 100%;
        margin: 8px 0;
    }

    .btn-secondary {
        width: 100%;
        margin: 8px 0;
    }

    .results-cta h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .quiz-title {
        font-size: 24px;
    }

    .option-visual {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .option-visual img {
        aspect-ratio: 1 / 1;
        object-fit: cover;
        object-position: center center;
    }

    footer .elementor-element-61777f9 img,
    footer .elementor-element-d0a5387 img,
    footer .elementor-element-0642d12 img,
    footer .elementor-element-925e6e4 img,
    footer .elementor-element-ec281b9 img,
    footer .elementor-element-6d9edd5 img {
        width: 96px !important;
        max-width: 96px !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .question-title {
        font-size: 20px;
    }

    #profile-title {
        font-size: 26px;
    }

    .option-content {
        padding: 15px 12px;
    }
}

/* BQS v4 result image configured from admin settings */
.profile-result-image-wrap {
    margin: 28px auto 0;
    max-width: 520px;
}

.profile-result-image-wrap[hidden] {
    display: none !important;
}

.profile-result-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(50, 47, 63, 0.18);
}
