/* File: public/css/modal.css */

/* Prevent body scroll when modal is open */
body.efq-modal-open {
    overflow: hidden;
}

/* Modal Overlay */
/* Modal Animation - Open */
.efq-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 999999;
    display: none;
    transition: background-image 0.5s ease-in-out;
    opacity: 0;
    transform: scale(0.95);
}

.efq-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.efq-modal .efq-modal-close,
.efq-modal button.efq-modal-close {
    position: absolute !important;
    top: clamp(15px, 2vw, 20px) !important;
    right: clamp(15px, 2vw, 20px) !important;
    left: auto !important;
    bottom: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    font-size: clamp(32px, 4vw, 48px) !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
    color: #000 !important;
    font-weight: 300 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    display: inline-block !important;
    transform: none !important;
}

.efq-modal .efq-modal-close:hover,
.efq-modal button.efq-modal-close:hover {
    transform: scale(1.1) !important;
    opacity: 0.7 !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #000 !important;
}

.efq-modal .efq-modal-close:before,
.efq-modal .efq-modal-close:after {
    display: none !important;
}

/* Modal Content */
.efq-modal-content {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Sections Fade Animation */
.efq-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.efq-section.active {
    display: flex;
    animation: sectionFadeIn 0.5s ease-out forwards;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Intro Messages */
.efq-intro-messages {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    width: 90%;
}

.efq-message {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.efq-message.active {
    opacity: 1;
    transform: translateY(0);
}

/* Quiz Section */
.efq-section-quiz {
    padding: 0;
}

/* Quiz Content Container */
.efq-quiz-content {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Progress Bar */
.efq-progress-container {
    width: 100%;
    height: 8px;
    margin-bottom: 8px;
}

.efq-progress-bar {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.efq-progress-fill {
    height: 100%;
    background: #8B7355;
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 4px;
}

/* Question Header */
.efq-question-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.efq-question-number {
    font-size: 17px;
    font-weight: 500;
    color: #8B7355;
    letter-spacing: 0.5px;
}

.efq-category-name {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Question Text */
.efq-question-text {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 400;
    line-height: 1.3;
    color: #333;
    margin-bottom: 8px;
}

/* Answers */
.efq-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.efq-answer {
    background: #EBE5DD!important;
    border: 2px solid transparent!important;
    border-radius: 23px!important;
    padding: 18px 24px!important;
    font-size: 17px!important;
    font-weight: 400!important;
    color: #000!important;
    cursor: pointer!important;
    transition: all 0.3s ease!important;
    text-align: left!important;
    width: 100%!important;
     text-transform: capitalize!important;
}

.efq-answer:hover {
    background: #0F0E0D!important;
    border-color: #8B7355!important;
     color: #fff!important;
}

.efq-answer.selected {
    background: #C4B5A0!important;
    border-color: #8B7355!important;
    color: #000!important;
}

/* Next Button */
.efq-button-container {
    margin-top: 24px!important;
    text-align: center!important;
}

.efq-next-button {
    background: #E5DFC5!important;
    border: 3px solid #012B1B!important;
    border-radius: 30px!important;
    padding: 14px 48px!important;
    font-size: 17px!important;
    font-weight: 600!important;
    letter-spacing: 1.5px!important;
    color: #012B1B!important;
    cursor: pointer!important;
    transition: all 0.3s ease!important;
    text-transform: uppercase!important;
    min-width: 180px!important;
}

.efq-next-button:not(:disabled):hover {
    background: #333!important;
    color: #fff!important;
}

.efq-next-button:disabled {
    opacity: 0.4!important;
    cursor: not-allowed!important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .efq-modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .efq-intro-messages {
        padding: 20px 15px;
    }

    .efq-message {
       font-size: 1.1rem; 
    }

    .efq-quiz-content {
        padding: 30px 20px 30px;
        gap: 24px;
    }

    .efq-question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .efq-question-text {
        font-size: clamp(20px, 5vw, 28px);
    }

    .efq-answer {
        padding: 16px 20px;
        font-size: 15px;
    }

    .efq-next-button {
        padding: 12px 36px;
        min-width: 150px;
        font-size: 13px;
    }

    .efq-progress-bar {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .efq-quiz-content {
        padding: 25px 16px 24px;
        gap: 20px;
    }

    .efq-answers {
        gap: 10px;
    }
}

/* Email Section */
.efq-section-email {
    padding: 0;
}

/* Email Content Container */
.efq-email-content {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
}

/* Email Title */
.efq-email-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 400;
    line-height: 1.3;
    color: #333;
    margin: 0;
}

/* Email Form */
.efq-email-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Email Input */
.efq-email-input {
    width: 100% !important;
    padding: 20px 24px !important;
    font-size: 17px !important;
    color: #000 !important;
    background: #fff !important;
    border: 2px solid #999 !important;
    border-radius: 23px !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.efq-email-input::placeholder {
    color: #999 !important;
}

.efq-email-input:focus {
    outline: none !important;
    border-color: #8B7355 !important;
}

/* Email Error */
.efq-email-error {
    color: #d00;
    font-size: 14px;
    text-align: center;
}

/* Mobile Responsive for Email */
@media (max-width: 768px) {
    .efq-email-content {
        padding: 30px 20px;
        gap: 32px;
    }
    
    .efq-email-title {
        font-size: clamp(22px, 5vw, 30px);
    }
    
    .efq-email-input {
        padding: 16px 20px;
        font-size: 15px;
    }
}

/* Processing Section */
.efq-section-processing {
    padding: 0;
}

/* Processing Content */
.efq-processing-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}

/* Circles Animation */
.efq-circles-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.efq-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
}

.efq-circle-1 { width: 50px; height: 50px; animation-delay: 0s; }
.efq-circle-2 { width: 100px; height: 100px; animation-delay: 0.3s; }
.efq-circle-3 { width: 150px; height: 150px; animation-delay: 0.6s; }
.efq-circle-4 { width: 200px; height: 200px; animation-delay: 0.9s; }
.efq-circle-5 { width: 250px; height: 250px; animation-delay: 1.2s; }
.efq-circle-6 { width: 300px; height: 300px; animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: translate(-50%, -50%) scale(0.9);
    }
    50% { 
        opacity: 0.6; 
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Processing Text */
.efq-processing-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 400;
    line-height: 1.3;
    color: #333;
    margin: 0;
}

.efq-processing-subtitle {
    font-size: 17px !important;
    font-weight: 300;
    color: #666;
    margin: 0;
}

/* Reveal Button */
.efq-reveal-button {
    background: #E5DFC5!important;
    border: 3px solid #012B1B!important;
    border-radius: 30px!important;
    padding: 14px 48px!important;
    font-size: 17px!important;
    font-weight: 600!important;
    letter-spacing: 1.5px!important;
    color: #012B1B!important;
    cursor: pointer!important;
    transition: all 0.3s ease!important;
    text-transform: uppercase!important;
    min-width: 240px !important;
}

.efq-reveal-button:hover {
    background: #8B7355  !important;
    color: #fff  !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .efq-processing-content {
        padding: 40px 20px;
        gap: 32px;
    }
    
    .efq-circles-animation {
        width: 220px;
        height: 220px;
    }
    
    .efq-circle-1 { width: 40px; height: 40px; }
    .efq-circle-2 { width: 80px; height: 80px; }
    .efq-circle-3 { width: 120px; height: 120px; }
    .efq-circle-4 { width: 160px; height: 160px; }
    .efq-circle-5 { width: 200px; height: 200px; }
    .efq-circle-6 { width: 220px; height: 220px; }
    
    .efq-processing-title {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .efq-reveal-button {
        padding: 12px 36px;
        min-width: 200px;
        font-size: 13px;
    }
}

/* Results Section */
.efq-section-results {
    padding: 40px 20px;
    overflow-y: auto;
}

/* Results Content */
.efq-results-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Results Header */
.efq-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.efq-results-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    color: #333;
    margin: 0;
}

.efq-view-results-button {
    /*background: #D4C4A8;
    border: none;
    border-radius: 30px;
    padding: 12px 32px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;*/
    
     display: none;
}

.efq-view-results-button:hover {
    background: #C4B498;
}

/* Results Subtitle */
.efq-results-subtitle {
    font-size: 18px !important;
    font-weight: 300;
    color: #666;
    margin: 0 0 24px 0;
}

/* Pillars */
.efq-pillars {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.efq-pillar {
    background: #EBDDD7 !important;
    padding: 12px 24px !important;
    border-radius: 18px !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #000 !important;
}

/* Results Grid */
.efq-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Product Image */
.efq-product-image {
    width: 100%;
}

.efq-product-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Results Details */
.efq-results-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.efq-result-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.efq-result-item-title {
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #C4A574;
    margin: 0;
}

.efq-result-item-tagline {
    font-size: 18px !important;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.efq-result-item-label {
    font-size: 16px !important;
    font-weight: 600;
    color: #000;
    margin: 8px 0 4px 0;
    text-transform: uppercase;
}

.efq-result-item-text {
    font-size: 16px !important;
    font-weight: 300;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .efq-results-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .efq-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .efq-section-results {
        padding: 30px 16px;
    }
    
    .efq-results-title {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .efq-pillars {
        gap: 12px;
    }
    
    .efq-pillar {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.efq-product-image img {max-width:400px;}

/* Craft Button */
.efq-craft-button {
   background: #E5DFC5!important;
    border: 3px solid #012B1B!important;
    border-radius: 30px!important;
    padding: 14px 48px!important;
    font-size: 17px!important;
    font-weight: 600!important;
    letter-spacing: 1.5px!important;
    color: #012B1B!important;
    cursor: pointer!important;
    transition: all 0.3s ease!important;
    text-transform: uppercase!important;
    min-width: 180px!important;
}

.efq-craft-button:hover {
    background: #333;
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .efq-craft-button {
        padding: 12px 36px;
        min-width: 200px;
        font-size: 13px;
        margin-top: 32px;
    }
}


/* Final Section */
.efq-section-final {
    padding: 60px 40px;
}

/* Final Content */
.efq-final-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

/* Final Title */
.efq-final-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 300;
    line-height: 1.2;
    color: #333;
    margin: 0;
}

/* Final Subtitle */
.efq-final-subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    line-height: 1.4;
    color: #666;
    margin: 0;
}

/* Final Image Container */
.efq-final-image-container {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

.efq-final-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .efq-section-final {
        padding: 40px 20px;
    }
    
    .efq-final-content {
        gap: 32px;
    }
    
    .efq-final-image-container {
        max-width: 350px;
    }
}

.efq-final-image-container img {max-width:340px; }

/* Close Button Fade In */
.efq-modal-close {
    animation: fadeInFromTop 0.5s ease-out 0.2s backwards;
}

@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.efq-next-button,
.efq-reveal-button,
.efq-craft-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.efq-next-button:not(:disabled):hover,
.efq-reveal-button:hover,
.efq-craft-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.efq-next-button:not(:disabled):active,
.efq-reveal-button:active,
.efq-craft-button:active {
    transform: translateY(0);
}

/* Product Image Smooth Load */
.efq-product-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    transition: opacity 0.3s ease;
}