/**
 * Simulador CAE Styles
 * Vanilla CSS implementation matching React/Tailwind design
 */

/* Font Face Declarations */
@font-face {
    font-family: 'Myriad Pro';
    src: url('/content/dam/DACS/simulador-cae-app/fonts/myriad-pro/myriad-pro-light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('/content/dam/DACS/simulador-cae-app/fonts/myriad-pro/myriad-pro-regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('/content/dam/DACS/simulador-cae-app/fonts/myriad-pro/myriad-pro-semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Myriad Pro';
    src: url('/content/dam/DACS/simulador-cae-app/fonts/myriad-pro/myriad-pro-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* CSS Variables - Theme Colors */
:root {
    --color-primary: #0097e0;
    --color-secondary: #F07300;
    --color-primary-foreground: #97979f;
    --color-foreground: #000000;
    --color-background: #ffffff;
    --color-orange-accent: #F07300;
}

/* Reset and Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.simulador-cae-wrapper {
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #30303F;
    line-height: 1.6;
}

/* Container */
.simulador-cae-container {
    max-width: 812px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Presentation Section */
.simulador-cae-presentation {
    text-align: center;
    padding: 4rem 1rem 2rem;
}

.simulador-cae-title {
    font-size: 45px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #30303F;
}

.simulador-cae-description {
    font-size: 16px;
    font-weight: 400;
    color: #97979f;
    max-width: 812px;
    margin: 0 auto;
}

/* Progress Bar */
.simulador-cae-progress {
    position: relative;
    height: 32px;
    margin: 2rem 0;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #F4F4F5;
    transform: translateY(-50%);
}

.progress-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background-color: var(--color-primary);
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.progress-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background-color: #eef1f5;
    cursor: not-allowed;
    pointer-events: none;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    background-color: #fff;
    width: 18px;
    height: 18px;
    cursor: pointer;
    pointer-events: auto;
}

.progress-dot.done {
    background-color: var(--color-primary);
    width: 12px;
    height: 12px;
    cursor: pointer;
    pointer-events: auto;
}

.progress-dot.done:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Step Header */
.simulador-cae-step-header {
    margin-bottom: 1.5rem;
}

.step-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-title {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0px;
    font-weight: 400;
    color: #000000;
}

.step-divider {
    height: 1px;
    background-color: #e9edf2;
    margin-top: 0.5rem;
}

/* Info Button */
.info-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-btn:hover {
    opacity: 0.8;
}

.info-btn-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.info-btn-small:hover {
    opacity: 0.8;
}

/* Choice Grid */
.choice-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem 0;
}

.choice-grid-certificado {
    justify-content: flex-start;
}

.choice-grid-vivienda {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 100%;
    margin: 2rem 0;
    justify-content: flex-start;
}

.choice-option {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    background-color: #F4F4F5;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #30303F;
}

.choice-option.group {
    width: 100%;
}

.choice-option:hover {
    background-color: rgba(0, 151, 224, 0.55);
    color: white;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.choice-option-small {
    width: 180px;
    height: 56px;
    justify-content: center;
    gap: 1rem;
}

.choice-option-small .choice-icon {
    display: none;
}

/* Vivienda step buttons - white background, no border */
.choice-option-vivienda {
    background-color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 1.5rem 1.25rem;
    width: 100%;
    height: auto;
    min-height: 140px;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    flex-direction: row;
    box-shadow: none;
}

.choice-option-vivienda:hover {
    background-color: white !important;
    border: none !important;
    color: #30303F !important;
    box-shadow: none;
}

.choice-option-vivienda:hover span {
    color: var(--color-primary) !important;
    transition: color 0.3s ease-in-out;
}

.choice-option-vivienda .choice-icon {
    width: 80px;
    height: 80px;
    opacity: 0.7;
    flex-shrink: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.choice-option-vivienda:hover .choice-icon {
    opacity: 1;
    transform: scale(1);
}

.choice-option-vivienda span {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    flex: 1;
}

.choice-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.5s ease-in-out;
    flex-shrink: 0;
}

.choice-option:hover .choice-icon {
    transform: scale(0.8);
}

.choice-option.group:hover .choice-icon {
    transform: scale(0.8);
}

.choice-option.group:hover > span:not(.choice-icon) {
    color: white;
    transition: color 0.3s ease-in-out;
}

/* Adjuntar step adjustments */
.choice-grid.adjuntar-grid {
    display: grid;
    grid-template-columns: 380px 300px;
    gap: 100px;
    max-width: 100%;
    margin: 2rem 0;
    justify-content: flex-start;
}

.choice-option.adjuntar-option {
    background-color: white !important;
    border: none !important;
    border-radius: 8px !important;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-direction: row;
    box-shadow: none;
}

.choice-option.adjuntar-option .choice-icon {
    width: auto;
    height: auto;
    max-width: 90px;
    max-height: 90px;
    opacity: 1;
    flex-shrink: 0;
    order: 2;
}

.choice-option.adjuntar-option span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0px;
    text-align: left;
    color: #000000;
}

.choice-option.adjuntar-option:hover {
    background-color: white !important;
    border: none !important;
    box-shadow: none;
}

.choice-option.adjuntar-option:hover span {
    color: var(--color-primary) !important;
    transition: color 0.3s ease-in-out;
}

/* Vertical delimiter between adjuntar buttons */
.choice-grid.adjuntar-grid .choice-option.adjuntar-option:first-child {
    position: relative;
}

.choice-grid.adjuntar-grid .choice-option.adjuntar-option:first-child::after {
    content: '';
    position: absolute;
    right: -50px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e9edf2;
}

/* Two ellipses on the right button (without logo) */
.choice-grid.adjuntar-grid .choice-option.adjuntar-option:last-child {
    position: relative;
}

/* Input Step */
.input-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 518px;
}

.provincia-input {
    width: 375px;
    flex: 1;
    height: 48px;
    border: none;
    padding: 0 23px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 25px;
    background-color: #F4F4F5;
    color: #9B9B9B;
    margin-right: 25px;
}

.provincia-input::placeholder {
    color: #9B9B9B;
}

.provincia-input:focus {
    outline: none;
    background-color: #e9edf2;
}

.provincia-input.error {
    border: 2px solid #dc2626;
    background-color: #fff5f5;
}

.input-next-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #F4F4F5;
    color: var(--color-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-next-btn svg {
    transition: transform 0.3s ease-in-out;
}
.input-next-btn:hover svg {
    transform: scale(1.5);
}

/* Slider Steps */
.slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 100%;
}

.slider-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
}

.year-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #F4F4F5;
    outline: none;
    -webkit-appearance: none;
}

.year-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.year-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider-value-display {
    min-width: 80px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #30303F;
}

.categorical-slider-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

.categorical-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
}

.categorical-label {
    font-size: 1rem;
    font-weight: 600;
    color: #97979f;
}

.categorical-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #F4F4F5;
    outline: none;
    -webkit-appearance: none;
}

.categorical-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.categorical-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.categorical-value {
    align-self: center;
    margin-top: 0.5rem;
}

/* Data Form */
.data-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.data-form-box {
    border: none;
    border-radius: 6px;
    background-color: #E5F4FC;
    padding: 1.5rem;
    max-width: 814px;
    width: 100%;
}

/* Data Summary Grid (No journey - Step 8) */
.data-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.summary-item label {
    font-size: 20px;
    font-weight: 600;
    color: #30303F;
}

.summary-value {
    font-size: 16px;
    font-weight: 400;
    color: #30303F;
}

/* Tipo de vivienda - Both options display */
.summary-icon-value {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-housing-options {
    display: flex;
    gap: 30px;
    align-items: center;
}

.summary-housing-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-housing-option.selected span {
    color: var(--color-primary);
}

.summary-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.summary-icon-value span {
    font-size: 16px;
    font-weight: 400;
    color: #30303F;
}

/* Province and M² input boxes */
.summary-input-box {
    width: 304px;
    height: 28px;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 400;
    color: #30303F;
    border-radius: 25px;
}

/* Error state for summary input box when used as input element */
input.summary-input-box {
    border: 1px solid #ddd;
    box-sizing: border-box;
}

input.summary-input-box.error {
    border: 2px solid #dc2626;
    background-color: #fff5f5;
}

/* Caldera gas/gasoil buttons */
.summary-button-group {
    display: flex;
    gap: 30px;
}

.summary-button {
    width: 90px;
    height: 28px;
    background-color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    color: #30303F;
    cursor: default;
    border-radius: 25px;
}

.summary-button.selected {
    color: var(--color-primary);
}

/* Sliders - Año de construcción and Nivel de aislamiento */
.summary-slider-value {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.summary-slider-container {
    position: relative;
    width: 292px;
    height: 16px;
}

.summary-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background-color: #E5E5E5;
}

.summary-slider-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 2px;
    background-color: var(--color-primary);
}

.summary-slider-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: 2;
}

/* Slider labels styling */
.summary-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 16px;
    font-weight: 400;
    color: #30303F;
}

.summary-slider-labels.three-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 324px;
    height: 20px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Aislamiento slider needs more height for labels */
.summary-item:has(.summary-slider-labels.three-labels) .summary-slider-container {
    height: 40px;
}

.summary-item:has(.summary-slider-labels.three-labels) .summary-slider-track,
.summary-item:has(.summary-slider-labels.three-labels) .summary-slider-fill,
.summary-item:has(.summary-slider-labels.three-labels) .summary-slider-marker {
    top: 34px;
}

.summary-slider-labels.three-labels span {
    position: absolute;
    text-align: center;
    top: 0;
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    width: 50px;
}

.summary-slider-labels.three-labels span:first-child {
    left: 0;
}

.summary-slider-labels.three-labels span:nth-child(2) {
    left: 50%;
    transform: translateX(-50%);
}

.summary-slider-labels.three-labels span:last-child {
    right: 0;
}

/* Year display on the right */
.summary-year-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: -16px;
}

.summary-year-value {
    font-size: 16px;
    font-weight: 400;
    color: #30303F;
}

.summary-slider-label {
    font-size: 16px;
    color: #97979f;
}

.summary-slider-labels .label-center {
    text-align: center;
}

.summary-slider-indicator {
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.data-form-header {
    text-align: center;
}

.data-form-header h4 {
    font-size: 1.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.data-form-header p {
    font-size: 1rem;
    color: var(--color-primary-foreground);
    max-width: 436px;
    margin: 0.25rem auto 0;
}

.data-form-divider {
    width: 100%;
    background-color: white;
    height: 2px;
    margin: 1.75rem 0;
}

.data-form-fields {
    display: flex;
    max-width: 490px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
}

.data-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-field label {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.25rem;
}

.data-input,
.data-input-readonly {
    height: 34px;
    background-color: white;
    border: none;
    color: #000000;
    font-size: 20px;
    flex: 1;
    padding: 0 0.5rem;
    min-width: 80px;
}

.data-input:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.data-input.error {
    border: 2px solid #dc2626;
    background-color: #fff5f5;
}

.data-input-readonly {
    color: #000000;
}

.data-value {
    color: #000000;
    display: flex;
    align-items: center;
    font-size: 20px;
}

.data-unit {
    color: #000000;
    font-size: 20px;
    width: 138px;
    display: inline-flex;
    align-items: center;
}

.data-form-footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.validate-btn {
    color: var(--color-orange-accent);
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.validate-btn::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-orange-accent);
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.validate-btn:hover::after {
    width: 100%;
    opacity: 1;
}

.validate-btn:hover {
    opacity: 0.6;
}

.validation-success {
    font-size: 1rem;
    color: #51915D;
    font-style: italic;
    text-align: center;
}

.calculate-btn {
    margin-top: 30px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 40px;
    height: 80px;
    width: 320px;
    font-size: 19px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.calculate-btn:hover {
    opacity: 0.6;
}

/* Loading and Error Messages */
.loading-message {
    margin-top: 1rem;
    text-align: center;
    color: var(--color-primary);
    font-weight: 600;
}

.error-message {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fee2e2;
    border: 1px solid #f87171;
    border-radius: 6px;
    color: #991b1b;
    font-size: 0.875rem;
}

.file-selected {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-primary);
    text-align: center;
}

/* Result View */
.result-view {
    margin-top: 2rem;
}

.result-title {
    font-size: 30px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #30303F;
}

.result-success-box {
    background-color: #50915D;
    color: white;
    text-align: center;
    padding: 45px 56px;
}

.result-success-title {
    font-weight: 600;
    font-size: 25px;
    color: white;
    margin-bottom: 20px;
}

.result-success-text {
    font-size: 20px;
    width: 445px;
    font-weight: 500;
    color: white;
    margin: 0 auto;
    line-height: 1.4;
}

.result-failure-box {
    background-color: #E26464;
    color: white;
    text-align: center;
    padding: 45px 56px;
}

.result-failure-title {
    font-weight: 600;
    font-size: 25px;
    color: white;
    margin-bottom: 20px;
}

.result-failure-text {
    width: 445px;
    font-size: 18px;
    color: white;
    margin: 0 auto;
    font-weight: 500;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: none;
    font-weight: 600;
    font-size: 1.25rem;
    color: black;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin: 1.5rem 0;
    padding: 0;
}

.download-btn:hover {
    color: var(--color-primary);
    opacity: 0.6;
}

.download-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.5s ease-in-out;
}

.download-btn:hover .download-icon {
    transform: scale(0.8);
}

.result-divider {
    width: 100%;
    background-color: #E5E5E5;
    height: 2px;
    margin: 1.75rem 0;
}

.result-disclaimer {
    color: var(--color-primary-foreground);
    font-style: italic;
    font-size: 14px;
    margin-top: 1.5rem;
}

.result-disclaimer a {
    color: var(--color-primary);
    text-decoration: underline;
}

.result-disclaimer a:hover {
    color: #007bb3;
}

/* Daikin Product Section */
.daikin-product {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.daikin-product-image {
    width: 50%;
}

.daikin-product-image img {
    width: 100%;
    height: 398px;
    object-fit: cover;
    object-position: left;
}

.daikin-product-info {
    width: 50%;
}

.daikin-product-info h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.daikin-product-info h3 {
    font-size: 1.875rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.daikin-product-info > p {
    color: var(--color-primary-foreground);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    font-size: 16px;
    color: #97979F;
}

.product-features li img {
    width: 28px;
    height: 28px;
}

/* Expert Contact */
.expert-contact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.expert-contact-text {
    flex: 1;
}

.expert-contact-text h2 {
    font-size: 1.875rem;
    font-weight: 300;
    color: black;
    margin-bottom: 1rem;
}

.expert-contact-text p {
    max-width: 442px;
    font-size: 17px;
    color: black;
}

.expert-contact-btn {
    background-color: #F4F4F5;
    border-radius: 9999px;
    color: black;
    font-family: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    height: 56px;
    padding: 0 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 258px;
    margin-top: calc(1.875rem * 1.2 + 1rem);
}

.expert-contact-btn:hover {
    background-color: #e9edf2;
}

/* Back Button */
.simulador-cae-back-wrapper {
    margin-top: 5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #30303F;
    font-size: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin-bottom: 1rem;
}

.back-btn:hover {
    color: var(--color-primary);
}

.back-icon {
    width: 16px;
    height: 16px;
}

.bottom-divider {
    height: 1px;
    background-color: rgba(233, 237, 242, 0.494);
}

/* Info Modal */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    max-width: 920px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 1001;
}

.modal-content:has(.ubicacion-modal-wrapper) {
    background: #F4F4F5 0% 0% no-repeat padding-box;
    box-shadow: 0px 10px 20px #0000004D;
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    background: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: background 0.3s ease;
}


.modal-body {
    overflow-y: auto;
}

.modal-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.modal-text {
    background: white;
    padding: 2.5rem;
}

.modal-text h2 {
    font-size: 30px;
    line-height: 36px;
    text-align: left;
    margin-bottom: 30px;
    font-weight: 500;
}

.modal-text p {
    font-size: 16px;
    line-height: 22px;
    color: #97979F;
}

.modal-image-wrapper {
    background: #F7F8FA;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-wrapper img {
    height: 100%;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-stacked {
    background: #F4F4F5;
}

.modal-stacked .modal-header {
    padding: 2.5rem;
}

.modal-stacked .modal-header h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0;
}

.modal-stacked .modal-header p {
    text-align: center;
    margin: 0 auto;
    max-width: 536px;
}

.modal-stacked .modal-image-wrapper {
    background: #F7F8FA;
    padding: 2rem;
}

.modal-stacked .modal-image-wrapper img {
    max-height: 540px;
    width: auto;
    border-radius: 6px;
}

/* Step 5 - Year Slider (No Journey) - anio-construccion */
.categorical-slider-container.step-5 .categorical-slider {
    width: 450px;
    max-width: 450px;
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 50%, #F4F4F5 50%, #F4F4F5 100%);
    background-repeat: no-repeat;
}

.categorical-slider-container.step-5 .categorical-slider::-webkit-slider-thumb {
    border: none;
}

.categorical-slider-container.step-5 .categorical-slider::-moz-range-thumb {
    border: none;
}

/* Step 7 - Categorical Slider (No Journey) - aislamiento */
.categorical-slider-container.step-7 .categorical-slider {
    width: 350px;
    max-width: 350px;
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 50%, #F4F4F5 50%, #F4F4F5 100%);
    background-repeat: no-repeat;
}

.categorical-slider-container.step-7 .categorical-labels .categorical-label {
    font-weight: 700;
}

.categorical-slider-container.step-7 .categorical-slider::-webkit-slider-thumb {
    border: none;
}

.categorical-slider-container.step-7 .categorical-slider::-moz-range-thumb {
    border: none;
}

/* Hide the current step value display for step 7 */
.categorical-slider-container.step-7 .categorical-value {
    display: none;
}

/* Alternative: Using data attribute selectors for dynamic steps */
.slider-container[data-step-id="anio-construccion"] {
    max-width: 450px;
    --slider-percentage: 50%;
}

.slider-container[data-step-id="anio-construccion"] .year-slider {
    flex: 1;
    background: linear-gradient(to right, 
        var(--color-primary) 0%, 
        var(--color-primary) var(--slider-percentage), 
        #F4F4F5 var(--slider-percentage), 
        #F4F4F5 100%);
    background-repeat: no-repeat;
}

.slider-container[data-step-id="anio-construccion"] .year-slider::-webkit-slider-thumb {
    border: none;
}

.slider-container[data-step-id="anio-construccion"] .year-slider::-moz-range-thumb {
    border: none;
}

.categorical-slider-container[data-step-id="aislamiento"] {
    max-width: 350px;
    margin-left: 20px;
    --slider-percentage: 50%;
}

.categorical-slider-container[data-step-id="aislamiento"] .categorical-slider {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(to right, 
        var(--color-primary) 0%, 
        var(--color-primary) var(--slider-percentage), 
        #F4F4F5 var(--slider-percentage), 
        #F4F4F5 100%);
    background-repeat: no-repeat;
}

.categorical-slider-container[data-step-id="aislamiento"] .categorical-labels {
    max-width: 100%;
}

.categorical-slider-container[data-step-id="aislamiento"] .categorical-labels .categorical-label {
    font-weight: 700;
    color: #000000;
}

.categorical-slider-container[data-step-id="aislamiento"] .categorical-slider::-webkit-slider-thumb {
    border: none;
}

.categorical-slider-container[data-step-id="aislamiento"] .categorical-slider::-moz-range-thumb {
    border: none;
}

.categorical-slider-container[data-step-id="aislamiento"] .categorical-value {
    display: none;
}

/* Step 7 - Siguiente button margin-left */
.slider-wrapper:has(.categorical-slider-container[data-step-id="aislamiento"]) .input-next-btn {
    margin-left: 56px;
}

/* Privacy Modal */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.privacy-modal.open {
    display: flex;
}

.privacy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.privacy-content {
    position: relative;
    background: #FFFFFF;
    box-shadow: 0px 10px 20px #0000004D;
    border-radius: 8px;
    width: 856px;
    height: 650px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.privacy-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 2.5rem 0 0 2.5rem;
    margin-bottom: 51px;
}

.privacy-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.privacy-title {
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
    color: #000000;
    margin: 0;
}

.privacy-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 2.5rem;
    margin-bottom: 1.5rem;
}

.privacy-text {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    color: #97979F;
    text-align: left;
    letter-spacing: 0px;
}

.privacy-text p {
    margin-bottom: 1rem;
}

.privacy-text p:last-child {
    margin-bottom: 0;
}

.privacy-footer {
    display: flex;
    gap: 2rem;
    padding: 0 2.5rem 2.5rem 2.5rem;
    justify-content: center;
}

.privacy-btn-accept {
    width: 180px;
    background-color: var(--color-primary);
    color: #FFFFFF;
    border: none;
    border-radius: 28px;
    padding: 11px 30px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 30px;
}

.privacy-btn-accept:hover {
    opacity: 0.8;
}

.privacy-btn-decline {
    background-color: #F4F4F5;
    border: none;
    border-radius: 28px;
    padding: 11px 30px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 30px;
}

.privacy-btn-decline:hover {
    background-color: #7ECBE5;
}

/* Responsive */
@media (max-width: 1024px) {
    .privacy-content {
        width: 90%;
        max-width: 856px;
        height: auto;
        max-height: 90vh;
    }
    
    .privacy-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .privacy-btn-accept,
    .privacy-btn-decline {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .simulador-cae-title {
        font-size: 2rem;
    }

    .simulador-cae-description {
        font-size: 16px;
    }

    .choice-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .choice-grid-vivienda {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .choice-grid.adjuntar-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .choice-option-vivienda {
        min-height: 120px;
        padding: 1rem;
    }

    .choice-option.adjuntar-option {
        min-height: 120px;
        padding: 1rem;
    }

    .choice-option-small {
        width: 100%;
    }

    .slider-container {
        max-width: 100%;
    }

    .categorical-slider-container {
        max-width: 100%;
    }

    .data-summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .daikin-product {
        flex-direction: column;
    }

    .daikin-product-image,
    .daikin-product-info {
        width: 100%;
    }

    .modal-split {
        grid-template-columns: 1fr;
    }

    .expert-contact {
        flex-direction: column;
        gap: 1rem;
    }

    .expert-contact-btn {
        width: 100%;
        max-width: 258px;
    }
}

/* Result Alert Container */
.result-alert-container {
    margin-bottom: 2rem;
    animation: slideIn 0.3s ease-out;
}

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

.result-alert {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
}

.result-alert-success {
    background-color: #dcf4ea;
    border: 1px solid #51915d;
    color: #30303f;
}

.result-alert-error {
    background-color: #fce4e4;
    border: 1px solid #e26464;
    color: #30303f;
}

.alert-icon {
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
    min-width: 36px;
    text-align: center;
}

.result-alert-success .alert-icon {
    color: #51915d;
}

.result-alert-error .alert-icon {
    color: #e26464;
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.alert-content p {
    font-size: 1rem;
    margin: 0;
}

.alert-content strong {
    font-weight: 700;
}

.alert-close {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
}

/* Ubicación Datos Modal */
.ubicacion-modal-wrapper {
    display: flex;
    flex-direction: column;
    height: 750px;
    width: 900px;
    gap: 15px;
    padding: 42px 50px;
}

.ubicacion-title {
    font-size: 30px;
    font-weight: 400;
    color: #000000;
    text-align: center;
    margin: 0;
}

.ubicacion-description {
    font-size: 16px;
    font-weight: 400;
    color: #97979F;
    text-align: center;
    width: 576px;
    line-height: 22px;
    margin: 0 auto;
}

.ubicacion-rows-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.ubicacion-row {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.ubicacion-row:not(:last-child) {
    border-bottom: 1px solid #e9edf2;
}

.ubicacion-row-content {
    display: grid;
    grid-template-columns: 315px 470px;
    gap: 45px;
    align-items: flex-start;
}

.ubicacion-row-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ubicacion-row-title {
    width: 100%;
    font-size: 21px;
    font-weight: 400;
    color: #000000;
    text-align: left;
    margin: 0;
    line-height: 30px;
}

.ubicacion-row-description {
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    color: #97979F;
    text-align: left;
    line-height: 22px;
    margin: 0;
}

.ubicacion-row-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: 0px 3px 6px #00000029;
    opacity: 1;
}

/* Installer Section Styles */
.installer-section {
    padding: 30px 0;
}

.installer-section p {
    text-align: left;
    width: 591px;
    height: 31px;
    font-size: 26px;
    font-weight: 300;
    line-height: 36px;
    letter-spacing: 0px;
    color: #000000;
    margin: 0 0 30px 0;
    opacity: 1;
}

.installer-buttons-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.installer-choice-btn {
    width: 180px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #F4F4F5 0% 0% no-repeat padding-box;
    color: #000000;
    opacity: 1;
}

.installer-choice-btn:hover {
    background: #e8e8e8 0% 0% no-repeat padding-box;
}

.installer-choice-btn.active {
    background: #7ECBE5 0% 0% no-repeat padding-box;
    color: #ffffff;
}

/* Installer Messages */
.installer-message {
    height: auto;
    padding: 50px 30px;
    border-radius: 0;
    margin-top: 20px;
    background: #F4F4F5 0% 0% no-repeat padding-box;
    opacity: 1;
}

.si-message {
    background: #F4F4F5 0% 0% no-repeat padding-box;
    color: #000000;
}

.si-message p {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 26px;
    text-align: left;
    opacity: 1;
}

.si-message strong {
    font-weight: 600;
}

.no-message {
    background: #F4F4F5 0% 0% no-repeat padding-box;
    color: #000000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.no-message p {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 26px;
    text-align: left;
    opacity: 1;
}

.no-message strong {
    font-weight: 600;
}

.request-installer-btn {
    display: inline-block;
    width: 370px;
    height: 56px;
    padding: 0;
    background: #0097e0 0% 0% no-repeat padding-box;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 0px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.request-installer-btn:hover {
    background: #7ECBE5 0% 0% no-repeat padding-box;
}

.request-installer-btn:active {
    background: #7ECBE5 0% 0% no-repeat padding-box;
}


