/**
 * Design Quiz Pro - Frontend CSS
 */

/* Reset and Base Styles */
.dlx-quiz-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #4a4a4a;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Progress Bar */
.dlx-progress-bar-widget {
    margin-bottom: 40px;
}

.dlx-progress-container {
    position: relative;
}

.dlx-progress-bar {
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.dlx-progress-bar-fill {
    height: 100%;
    background-color: #B8A57D;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.dlx-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dlx-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.dlx-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.dlx-step.active .dlx-step-number {
    background-color: #B8A57D;
    color: white;
}

.dlx-step-label {
    font-size: 12px;
    text-align: center;
    color: #666;
    max-width: 80px;
}

/* Style Selector */
.dlx-style-selector {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.dlx-style-header {
    margin-bottom: 40px;
}

.dlx-style-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #2c2c2c;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.dlx-style-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.dlx-progress-indicator {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
}

.dlx-current-pair {
    font-weight: bold;
    color: #B8A57D;
}

.dlx-total-pairs {
    color: #999;
}

.dlx-style-pairs-container {
    position: relative;
    min-height: 400px;
    margin-bottom: 40px;
}

.dlx-style-pair {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.dlx-style-pair:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.dlx-style-pairs {
    margin-bottom: 40px;
}

.dlx-style-pair {
    margin-bottom: 60px;
}

.dlx-style-images {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.dlx-style-image-container {
    text-align: center;
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}

.dlx-style-image-container .dlx-style-image {
    position: relative;
    z-index: 1;
    display: block;
}

.dlx-style-image-container .dlx-style-placeholder {
    position: relative;
    z-index: 1;
}

.dlx-style-image {
    width: 380px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dlx-style-image:hover {
    transform: scale(1.01);
    border-color: #B8A57D;
    box-shadow: 0 6px 20px rgba(184, 165, 125, 0.25);
}

.dlx-style-image.selected {
    border-color: #B8A57D;
    box-shadow: 0 6px 24px rgba(184, 165, 125, 0.35);
}

/* שם הסגנון כתווית - דסקטופ: מתחת לתמונה (לא absolute) */
.dlx-style-image-container .dlx-style-name {
    position: static;
    display: block;
    width: 100%;
    z-index: 2;
    margin: 8px 0 0 0;
    padding: 6px 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: #333;
    text-shadow: none;
    box-sizing: border-box;
    pointer-events: none;
    background: transparent;
    border-radius: 0;
}

/* נעילת מיקום בדסקטופ - מונע שינויים מ-Elementor */
@media (min-width: 1025px) {
    .dlx-style-image-container .dlx-style-name {
        position: static !important;
        display: block !important;
        margin-top: 8px !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        transform: none !important;
    }
}

.dlx-style-or-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dlx-style-or {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

.dlx-style-or span {
    display: inline-block;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 48px;
    text-align: center;
}

.dlx-style-neither {
    text-align: center;
}

.dlx-neither-button {
    background-color: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    color: #b8a57d;
    font-size: 15px;
    cursor: pointer;
    padding: 12px 24px;
    transition: all 0.3s ease;
    text-decoration: underline;
    text-decoration-color: #b8a57d;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    font-weight: 600;
}

.dlx-neither-button:hover {
    color: #8B7355;
    text-decoration-color: #8B7355;
    background-color: #f8f8f8;
    border-color: #b8a57d;
}

.dlx-neither-button.selected {
    color: #8B7355;
    background-color: #f0f0f0;
    border-color: #b8a57d;
    font-weight: 600;
}

.dlx-style-selections {
    margin-bottom: 40px;
}

.dlx-selections-preview {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.dlx-selection-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 3px;
}

.dlx-selection-circle.current {
    border-color: #B8A57D;
    background-color: #f8f8f8;
    transform: scale(1.1);
}

.dlx-selection-circle.selected {
    border-color: #B8A57D;
    background-color: #f8f8f8;
}

.dlx-selection-circle.neither {
    background-color: #999;
}

.dlx-selection-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dlx-style-actions {
    text-align: center;
    margin-top: 30px;
}

.dlx-continue-button {
    background-color: #B8A57D;
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(184, 165, 125, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
}

.dlx-continue-button:hover:not(:disabled) {
    background-color: #9F8C6A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 165, 125, 0.3);
}

.dlx-continue-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dlx-style-placeholder {
    width: 200px;
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.dlx-style-placeholder:hover {
    border-color: #B8A57D;
    background-color: #fefefe;
}

.dlx-style-placeholder span {
    color: #999;
    font-size: 14px;
}

/* Room Selector */
.dlx-room-selector {
    padding: 40px 20px;
}

.dlx-room-header {
    text-align: center;
    margin-bottom: 40px;
}

.dlx-room-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #2c2c2c;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.dlx-room-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.dlx-rooms-grid {
    display: grid;
    grid-template-columns: repeat(6, 180px);
    gap: 15px;
    margin: 0 auto 40px;
    justify-content: center;
    max-width: 1200px;
}

.dlx-room-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dlx-room-card:hover {
    border-color: #B8A57D;
    box-shadow: 0 4px 12px rgba(184, 165, 125, 0.15);
    transform: translateY(-2px);
}

.dlx-room-card.selected {
    border-color: #B8A57D;
    background-color: #fefcf5;
    position: relative;
    box-shadow: 0 4px 16px rgba(184, 165, 125, 0.2);
}

/* התמונה נשארת גם כשהכרטיס נבחר */

/* המספר הגדול באמצע הכרטיס - מוסתר כי המספר יופיע בתג העליון */
.dlx-room-image .dlx-room-quantity-display {
    display: none !important;
}

.dlx-room-image {
    margin-bottom: 0;
    height: 60px;
    overflow: hidden;
    flex-shrink: 0;
}

.dlx-room-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 0;
}

.dlx-room-placeholder {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #d0d0d0;
    border: none;
}

.dlx-room-info {
    flex: 0 0 auto;
}

.dlx-room-name {
    font-size: 14px;
    font-weight: 400;
    margin: 8px 0 0 0;
    color: #666;
    line-height: 1.3;
}

.dlx-room-prices {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

.dlx-room-quantity {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.dlx-room-card.selected .dlx-room-quantity {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #B8A57D;
    border-radius: 20px;
    padding: 5px 10px;
    box-shadow: none;
}

.dlx-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dlx-quantity-minus,
.dlx-quantity-plus {
    background-color: transparent;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid white;
    font-size: 14px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.dlx-quantity-minus:hover,
.dlx-quantity-plus:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.dlx-quantity-input {
    display: none;
}

.dlx-room-card.selected .dlx-room-quantity-display {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    min-width: 14px;
    text-align: center;
}

.dlx-selected-rooms {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
}

.dlx-selected-rooms h3 {
    margin-bottom: 16px;
    color: #333;
}

.dlx-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dlx-selected-room {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dlx-remove-room {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dlx-remove-room:hover {
    color: #B8A57D;
}

/* Lead Form */
.dlx-lead-form-widget {
    padding: 40px 20px;
}

.dlx-lead-header {
    text-align: center;
    margin-bottom: 50px;
}

.dlx-lead-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #2c2c2c;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.dlx-lead-description {
    font-size: 17px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.dlx-lead-form-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.dlx-lead-form-widget.has-benefits .dlx-lead-form-container {
    grid-template-columns: 1fr 400px;
}

.dlx-lead-form {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    direction: rtl;
    max-width: 100%;
}

.dlx-form-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 24px;
    direction: rtl;
    align-items: stretch;
}

.dlx-form-field {
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
}

.dlx-form-field-full {
    min-width: 0;
    max-width: 100%;
}

/* מסכים רחבים: שורה אחת לשני חצאים — nowrap מונע ירידת שורה בגלל flex-wrap (ברירת מחדל של חלק מהערכות נושא) */
@media (min-width: 600px) {
    .dlx-lead-form .dlx-form-row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        align-items: flex-start;
    }

    .dlx-lead-form .dlx-form-field-half {
        flex: 1 1 0;
        min-width: 0;
    }

    .dlx-lead-form .dlx-form-row > .dlx-form-field-full {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }

    .dlx-lead-form .dlx-form-row > .dlx-form-field-half:only-child {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* שורת טופס – תוכן HTML מותאם — :where מוריד ספציפיות כדי שטיפוגרפיה מווידג'ט אלמנטור תנצח */
:where(.dlx-lead-form-widget) .dlx-form-field-html .dlx-form-html-heading {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

:where(.dlx-lead-form-widget) .dlx-form-field-html .dlx-form-html-content {
    font-size: 15px;
    line-height: 1.65;
    color: #4a4a4a;
}

:where(.dlx-lead-form-widget) .dlx-form-field-html .dlx-form-html-content a {
    color: #B8A57D;
    text-decoration: underline;
}

:where(.dlx-lead-form-widget) .dlx-form-field-html .dlx-form-html-content a:hover {
    color: #9F8C6A;
}

:where(.dlx-lead-form-widget) .dlx-form-field label:not(.dlx-privacy-label):not(.dlx-checkbox-label):not(.dlx-radio-label) {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

:where(.dlx-lead-form-widget) .dlx-form-field input,
:where(.dlx-lead-form-widget) .dlx-form-field select,
:where(.dlx-lead-form-widget) .dlx-form-field textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    color: #4a4a4a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dlx-form-field select {
    padding-left: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 12px;
}

:where(.dlx-lead-form-widget) .dlx-form-field input::placeholder,
:where(.dlx-lead-form-widget) .dlx-form-field textarea::placeholder {
    color: #999;
    opacity: 1;
}

.dlx-form-field input:focus,
.dlx-form-field select:focus,
.dlx-form-field textarea:focus {
    outline: none;
    border-color: #B8A57D;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(184, 165, 125, 0.08);
}

.dlx-form-actions {
    text-align: center;
    margin-top: 32px;
}

/* צ'קבוקס מדיניות פרטיות – הסימון (v) מימין לטקסט */
.dlx-form-field-full .dlx-privacy-label {
    display: flex;
    flex-direction: row;
    direction: rtl;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

/* Privacy field - improved layout */
.dlx-privacy-field .dlx-privacy-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    direction: rtl;
}

.dlx-privacy-field .dlx-privacy-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.dlx-privacy-field .dlx-privacy-label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

:where(.dlx-lead-form-widget) .dlx-privacy-field .dlx-privacy-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

:where(.dlx-lead-form-widget) .dlx-privacy-field .dlx-privacy-text a {
    color: #B8A57D;
    text-decoration: underline;
    font-weight: 500;
}

:where(.dlx-lead-form-widget) .dlx-privacy-field .dlx-privacy-text a:hover {
    color: #9F8C6A;
}

.dlx-privacy-label .dlx-privacy-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    order: 1;
}

.dlx-privacy-label .dlx-privacy-text {
    flex: 1;
    min-width: 0;
    order: 2;
}

:where(.dlx-lead-form-widget) .dlx-submit-button {
    background-color: #B8A57D;
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(184, 165, 125, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

:where(.dlx-lead-form-widget) .dlx-submit-button:hover {
    background-color: #9F8C6A;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 165, 125, 0.3);
}

/* Benefits Box */
.dlx-benefits-box {
    background-color: #f9f9f9;
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

:where(.dlx-lead-form-widget) .dlx-benefits-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #2c2c2c;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

:where(.dlx-lead-form-widget) .dlx-benefits-title::before {
    content: '❤️';
    font-size: 24px;
}

.dlx-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

:where(.dlx-lead-form-widget) .dlx-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

:where(.dlx-lead-form-widget) .dlx-benefit-icon {
    color: #B8A57D;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.dlx-benefit-text {
    flex: 1;
}

/* Responsive Lead Form */
@media (max-width: 992px) {
    .dlx-lead-form-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dlx-benefits-box {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Package Selector */
.dlx-package-selector {
    padding: 40px 20px;
}

.dlx-package-header {
    text-align: center;
    margin-bottom: 40px;
}

.dlx-package-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #2c2c2c;
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.dlx-package-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.dlx-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.dlx-package-card {
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.dlx-package-card:hover {
    border-color: #B8A57D;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dlx-package-card.dlx-package-featured {
    border-color: #B8A57D;
    transform: scale(1.05);
}

.dlx-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #B8A57D;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.dlx-package-name {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #333;
}

.dlx-package-price {
    margin-bottom: 24px;
}

.dlx-price-amount {
    font-size: 36px;
    font-weight: bold;
    color: #B8A57D;
}

.dlx-package-features {
    margin-bottom: 30px;
}

.dlx-package-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dlx-package-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 0;
}

.dlx-package-features li:before {
    content: none;
}

.dlx-package-features li::marker {
    content: none;
    display: none;
}

.dlx-package-action {
    margin-top: auto;
}

.dlx-select-package {
    background-color: #B8A57D;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.dlx-select-package:hover {
    background-color: #9F8C6A;
    transform: translateY(-2px);
}

.dlx-package-deposit {
    text-align: center;
    margin-bottom: 40px;
}

.dlx-deposit-text {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

.dlx-package-actions {
    text-align: center;
}

.dlx-change-selection {
    background: none;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dlx-change-selection:hover {
    border-color: #B8A57D;
    color: #B8A57D;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dlx-quiz-container {
        padding: 10px;
    }
    
    /* Style Selector Mobile Layout - Fix positioning (מרווחים נשלטים מ-Elementor) */
    .dlx-style-pairs-container {
        position: relative;
        min-height: auto !important;
    }
    
    .dlx-style-pair {
        position: relative !important;
        top: auto !important;
        left: auto !important;
    }
    
    .dlx-style-images {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    /* גודל/יחס גובה נשלטים מ-Elementor; רק מניעת גלישה */
    .dlx-style-image {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .dlx-style-image-container {
        position: relative;
        order: 1;
        width: 100%;
        display: block;
        overflow: visible;
    }
    
    .dlx-style-image-container:last-of-type {
        order: 2;
    }
    
    .dlx-style-image-container .dlx-style-name {
        /* תווית על התמונה במובייל - עיצוב תווית מבצע */
        /* ערכים אלו ברירת מחדל למובייל, ניתן לדרוס דרך Elementor */
        position: absolute !important;
        left: auto !important;
        right: 0 !important;
        top: 0 !important;
        bottom: auto !important;
        transform: none !important;
        width: auto;
        max-width: min(85%, 300px);
        margin: 0;
        padding: 10px 16px 10px 18px;
        font-size: 15px;
        font-weight: 700;
        text-align: right;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
        background-image: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
        border-radius: 0 12px 0 12px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35), 0 1px 4px rgba(0, 0, 0, 0.25);
        z-index: 2;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }
    
    /* Hide the "or" circle on mobile */
    .dlx-style-or {
        display: none !important;
    }
    
    /* Move "neither" button below images — margin-top מ-Elementor */
    .dlx-style-or-container {
        order: 3;
        width: 100%;
    }
    
    .dlx-style-neither {
        text-align: center;
    }
    
    .dlx-neither-button {
        width: 100%;
        max-width: 280px;
    }
    
    /* Selection circles — מרווחים מ-Elementor */
    .dlx-style-selections {
        padding: 0 5px;
    }
    
    .dlx-selections-preview {
        gap: 5px;
        justify-content: center;
    }
    
    .dlx-selection-circle {
        width: 32px;
        height: 32px;
        aspect-ratio: 1 / 1;
        border-radius: 50% !important;
        flex-shrink: 0;
    }
    
    .dlx-continue-button {
        width: 100%;
        max-width: 280px;
    }
    
    .dlx-rooms-grid {
        padding: 0 10px;
    }
    
    .dlx-packages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dlx-package-card.dlx-package-featured {
        transform: none;
    }
    
    .dlx-steps {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .dlx-step {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .dlx-style-title,
    .dlx-room-title,
    .dlx-lead-title,
    .dlx-package-title {
        font-size: 24px;
    }
    
    .dlx-style-description,
    .dlx-room-description,
    .dlx-lead-description,
    .dlx-package-subtitle {
        font-size: 16px;
    }
    
    .dlx-lead-form {
        padding: 20px;
    }
    
    .dlx-package-card {
        padding: 20px;
    }
    
    .dlx-step {
        flex: 0 0 100%;
    }
}

/* Button Loading Spinner */
.dlx-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: dlx-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

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

.dlx-continue-button.dlx-loading {
    opacity: 0.8;
    cursor: wait;
}

/* Step-1 completion popup */
.dlx-completion-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: auto;
}

.dlx-completion-backdrop.show {
    opacity: 1;
}

/* Completion Message */
.dlx-completion-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    padding: 40px 60px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s ease;
    max-width: min(90vw, 520px);
    box-sizing: border-box;
}

.dlx-completion-message.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.dlx-completion-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--dlx-completion-icon-bg, linear-gradient(135deg, #B8A57D 0%, #A69568 100%));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: bold;
    animation: checkPop 0.5s ease 0.2s both;
}

.dlx-completion-icon--image {
    padding: 0;
    overflow: hidden;
}

.dlx-completion-icon--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.dlx-completion-text {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.dlx-completion-subtext {
    font-size: 16px;
    color: #999;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Selected Rooms Summary in Package Selection - Clean Design */
.dlx-selected-rooms-summary {
    text-align: center;
    margin: 20px 0 40px 0;
}

.dlx-rooms-summary-content {
    display: inline-block;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

#dlx-rooms-list.dlx-rooms-text {
    display: inline;
    color: #666;
    font-weight: 400;
}

.dlx-change-rooms-button {
    display: inline;
    background: none !important;
    border: none !important;
    color: #B8A57D !important;
    padding: 0 !important;
    margin: 0 0 0 8px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-decoration: underline !important;
    text-decoration-color: #B8A57D !important;
    text-underline-offset: 3px !important;
    transition: all 0.2s !important;
}

.dlx-change-rooms-button:hover {
    color: #A69568 !important;
    text-decoration-color: #A69568 !important;
}

.dlx-change-rooms-button::before {
    content: '(';
    margin-left: 4px;
}

.dlx-change-rooms-button::after {
    content: ')';
    margin-right: 4px;
}
