/* Smart Agent Styles */

/* Reset and Base Styles */
.smart-agent-container * {
    box-sizing: border-box;
}

.smart-agent-container {
    direction: rtl;
    text-align: right;
    font-family: Arial, sans-serif;
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Home Page Styles */
.smart-agent-home {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.home-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2vw;
    max-width: 80vw;
}

.home-title {
    font-size: 3vw;
    margin-bottom: 1vw;
}

.home-subtitle {
    font-size: 2vw;
    margin-bottom: 2vw;
}

.start-btn {
    background-color: #ED291C;
    color: white;
    border: none;
    padding: 1vw 2vw;
    font-size: 1.2vw;
    border-radius: 0.5vw;
    cursor: pointer;
    transition: background-color 0.3s;
}

.start-btn:hover {
    background-color: #c1121f;
}

/* Overlay and Popup Styles */
.smart-agent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 35, 35, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.smart-agent-popup {
    background-color: white;
    border-radius: unset;
    padding: 2vw;
    max-width: 90vw;
    width: 80vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    min-height: 38vw;
    display: flex
;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.close-btn {
    position: absolute;
    top: 1vw;
    left: 1vw;
    background: none;
    border: none;
    font-size: 2vw;
    cursor: pointer;
    color: #333;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2vw;
}

.progress-step {
    width: 3vw;
    height: 3vw;
    border-radius: 50%;
    border: 0.2vw solid #ED291C;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.5vw;
    font-size: 1.2vw;
    color: #ED291C;
}

.progress-step.active {
    background-color: #ED291C;
    color: white;
}

.progress-step.completed {
    background-color: #ED291C;
    color: white;
}

.progress-line {
    height: 0.2vw;
    width: 3vw;
    background-color: #ccc;
    margin-top: 1.5vw;
}

.progress-line.completed {
    background-color: #ED291C;
}

/* Question Container Styles */
.question-container {
    margin-bottom: 2vw;
}

.question-title {
    font-size: 2.344vw;
    color: #ED291C;
    text-align: center;
    margin-bottom: 1vw;
}

.question-description {
    font-size: 1.771vw;
    color: #333;
    text-align: center;
    margin-bottom: 2vw;
}

/* Input Fields */
.input-field {
    margin-bottom: 1vw;
}

.input-field input {
    width: 100%;
    padding: 1vw;
    font-size: 1.2vw;
    border: 0.1vw solid #ccc;
    border-radius: 0.5vw;
    text-align: right;
}

/* Multiple Choice Options */
.options-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1vw;
    margin-bottom: 2vw;
}

.option-item {
    background-color: #f8f9fa;
    border: 0.1vw solid #dee2e6;
    border-radius: 0.5vw;
    padding: 1vw;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: 18vw;
}

.option-item:hover {
    border-color: #ED291C;
}

.option-item.selected {
    border-color: #ED291C;
    background-color: rgba(230, 57, 70, 0.1);
}

.option-icon {
    width: 4vw;
    height: 4vw;
    margin: 0 auto 0.5vw;
    display: block;
}

.option-text {
    font-size: 1.2vw;
    color: #333;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2vw;
}

.back-btn, .next-btn {
    background-color: white;
    color: #ED291C;
    border: 0.1vw solid #ED291C;
    padding: 1vw 2vw;
    font-size: 1.2vw;
    border-radius: 0.5vw;
    cursor: pointer;
    transition: all 0.3s;
}

.next-btn {
    background-color: #ED291C;
    color: white;
}

.back-btn:hover {
    background-color: #f8d7da;
}

.next-btn:hover {
    background-color: #c1121f;
}

.continue-btn, .submit-btn {
    background-color: #ED291C;
    color: white;
    border: none;
    padding: 1vw 2vw;
    font-size: 1.2vw;
    border-radius: 0.5vw;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
}

.continue-btn:hover, .submit-btn:hover {
    background-color: #c1121f;
}

/* Result Page Styles */
.result-product {
    display: flex;
    margin-bottom: 2vw;
    padding: 1vw;
    background-color: #f8f9fa;
    border-radius: 0.5vw;
}

.product-image {
    width: 30vw;
    height: auto;
    margin-left: 2vw;
    object-fit: cover;
    border-radius: 0.5vw;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.8vw;
    color: #333;
    margin-bottom: 1vw;
}

.product-description {
    font-size: 1.2vw;
    color: #666;
    margin-bottom: 1vw;
}

.product-details {
    font-size: 1.1vw;
}

.product-detail {
    margin-bottom: 0.5vw;
    display: flex;
}

.detail-label {
    font-weight: bold;
    margin-left: 0.5vw;
}

/* Contact Form */
.contact-form {
    background-color: #f8f9fa;
    padding: 2vw;
    border-radius: 0.5vw;
}

.form-title {
    font-size: 1.5vw;
    color: #333;
    margin-bottom: 1vw;
    text-align: center;
}

.form-field {
    margin-bottom: 1vw;
}

.form-field input {
    width: 100%;
    padding: 1vw;
    font-size: 1.2vw;
    border: 0.1vw solid #ccc;
    border-radius: 0.5vw;
}

/* Responsive styles for mobile */
@media (max-width: 768px) {
    .home-title {
        font-size: 6vw;
    }

    .home-subtitle {
        font-size: 4vw;
    }

    .start-btn {
        font-size: 3vw;
        padding: 2vw 4vw;
    }

    .question-title {
        font-size: 5vw;
    }

    .question-description {
        font-size: 3vw;
    }

    .option-item {
        width: 45%;
    }

    .option-text {
        font-size: 3vw;
    }

    .back-btn, .next-btn, .continue-btn, .submit-btn {
        font-size: 3vw;
        padding: 2vw 4vw;
    }

    .result-product {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        margin-left: 0;
        margin-bottom: 2vw;
    }

    .product-name {
        font-size: 4vw;
    }

    .product-description {
        font-size: 3vw;
    }

    .product-details {
        font-size: 2.5vw;
    }

    .form-title {
        font-size: 3.5vw;
    }

    .form-field input {
        font-size: 3vw;
        padding: 2vw;
    }
}
