/* Property Quiz Styles */

/* Prevent body scroll when modal is open */
body.property-quiz-open {
    overflow: hidden;
}

/* Modal Overlay */
.property-quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.property-quiz-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 30, 0.65);
    backdrop-filter: blur(5px);
}

/* Modal Container */
.property-quiz-container {
    position: relative;
    background: #0B0C1F;
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px;
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); */
    box-shadow: 2px 8px 23px -11px rgba(234, 229, 229, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.property-quiz-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    @media(max-width: 768px) {
        top: 5px;
        right: 10px;
    }
}

.property-quiz-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Progress Bar */
.property-quiz-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
    margin-top: 20px;
}

.property-quiz-progress-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.property-quiz-progress-step.active {
    background: var(--e-global-color-a723b74,#f48199);
    color: #fff;
    /* box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4); */
}

.property-quiz-progress-step.completed {
    background: rgba(255, 107, 157, 0.3);
    color: #F48199;
}

.property-quiz-progress-line {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

/* Title */
.property-quiz-title {
    color: var(--e-global-color-a723b74,#f48199);;
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Form Steps */
.property-quiz-step {
    display: none;
    p{
        color:#fff;
        font-size: 24px;
        line-height: 1.6;
        @media(max-width:768px){
            font-size:20px;
        }
    }
}

.property-quiz-step.active {
    display: block;
    animation: stepFadeIn 0.4s ease-out;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Questions */
.property-quiz-question {
    margin-bottom: 30px;
}

.property-quiz-question p {
    color: #fff;
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.property-quiz-question-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.property-quiz-question-item.visible {
    display: flex;
    gap: 15px;
}

.property-quiz-question-item.error {
    border-color: #ff4444 !important;
    background: rgba(255, 68, 68, 0.1) !important;
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.property-quiz-question-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--e-global-color-a723b74,#f48199);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.property-quiz-question-text {
    flex: 1;
    color: #fff;
}

.property-quiz-question-text p {
    margin-bottom: 15px;
}

/* Radio Options Inline */
.property-quiz-options-inline {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.property-quiz-option-inline {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-quiz-option-inline input[type="radio"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #F48199;
}

.property-quiz-option-inline span {
    color: #fff;
    font-size: 16px;
}

/* Buttons */
.property-quiz-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.property-quiz-btn {
    padding: 5px 40px;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    margin-top: 15px;
}

.property-quiz-btn-yes,
.property-quiz-btn-submit,
.property-quiz-btn-next {
    /* margin-top: 15px; */
    background: var(--e-global-color-a723b74,#f48199);
    color: #000;
    /* box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3); */
}

.property-quiz-btn-yes:hover,
.property-quiz-btn-submit:hover,
.property-quiz-btn-next:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 8px 20px rgba(255, 107, 157, 0.5); */
}

.property-quiz-btn-no,
.property-quiz-btn-back {
    background: rgba(255, 255, 255, 0.1);
    color: #000;
    /* border: 2px solid rgba(255, 255, 255, 0.2); */
}

.property-quiz-btn-no:hover,
.property-quiz-btn-back:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Navigation */
.property-quiz-navigation {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 30px;
}

.property-quiz-navigation .property-quiz-btn {
    min-width: 120px;
}

/* Result Section */
#property-quiz-result {
    background: rgba(255, 107, 157, 0.1);
    border: 2px solid #F48199;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
    font-size: 16px;
    line-height: 1.8;
}

#property-quiz-result h3 {
    color: var(--e-global-color-a723b74,#f48199);;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Highlight Text */
.property-quiz-highlight {
    font-size: 20px !important;
    font-weight: 600;
    color: var(--e-global-color-a723b74,#f48199) !important;
}

/* Properties Form */
.property-quiz-properties {
    margin-bottom: 30px;
}

.property-quiz-property-group {
    margin-bottom: 25px;
}

.property-quiz-property-group label {
    display: block;
    color: var(--e-global-color-a723b74,#f48199);;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.property-quiz-property-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.property-quiz-property-inputs input {
    flex: 1;
}

/* Contact Form */
.property-quiz-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.property-quiz-form{
/* Inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"] {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    input[type="text"]:focus,
    input[type="email"]:focus,
    input[type="tel"]:focus,
    input[type="number"]:focus {
        outline: none;
        border-color: #F48199;
        background: rgba(255, 255, 255, 0.08);
    }

    input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }
}


/* Checkbox */
.property-quiz-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.property-quiz-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #F48199;
}

.property-quiz-checkbox span {
    color: #fff;
    font-size: 16px;
}

/* Thank You */
#property-quiz-thank-you {
    text-align: center;
    padding: 40px 20px;
}

#property-quiz-thank-you h3 {
    color: var(--e-global-color-a723b74,#f48199);;
    font-size: 28px;
    margin-bottom: 20px;
}

#property-quiz-thank-you p {
    color: #fff;
    font-size: 18px;
    line-height: 1.8;
}

/* Properties Display */
#property-quiz-properties-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.property-quiz-property-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.property-quiz-property-card:hover {
    transform: translateY(-5px);
    border-color: #F48199;
}

.property-quiz-property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-quiz-property-card-content {
    padding: 20px;
}

.property-quiz-property-card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.property-quiz-property-card .property-type {
    display: inline-block;
    padding: 5px 12px;
    background: var(--e-global-color-a723b74,#f48199);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Question Group Counter */
.property-quiz-group-counter {
    font-size: 14px;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.property-quiz-group-counter .current-group {
    color: var(--e-global-color-a723b74, #f48199);
    font-weight: 600;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .property-quiz-container {
        padding: 30px 20px;
        max-height: 95vh;
    }

    .property-quiz-title {
        font-size: 24px;
    }

    .property-quiz-progress-step {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .property-quiz-progress-line {
        width: 40px;
    }

    .property-quiz-question p {
        font-size: 16px;
    }

    .property-quiz-btn {
        padding: 5px 30px;
        font-size: 16px;
    }

    .property-quiz-buttons {
        flex-direction: column;
    }

    .property-quiz-navigation {
        flex-direction: column;
    }

    .property-quiz-options-inline {
        flex-direction: column;
        gap: 15px;
    }

    .property-quiz-property-inputs {
        flex-direction: column;
    }
}

/* Scrollbar Styling */
.property-quiz-container::-webkit-scrollbar {
    width: 8px;
}

.property-quiz-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.property-quiz-container::-webkit-scrollbar-thumb {
    background: #F48199;
    border-radius: 10px;
}

.property-quiz-container::-webkit-scrollbar-thumb:hover {
    background: var(--e-global-color-a723b74,#f48199);;
}

/* Loading State */
.property-quiz-loading {
    pointer-events: none;
    opacity: 0.6;
}

.property-quiz-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #F48199;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
