/* ===== SIMULATOR PAGE STYLES ===== */

.simulator-page {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    min-height: 100vh;
}

.header-simple {
    box-shadow: var(--shadow-md);
}

.header-simple .nav {
    justify-content: space-between;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: var(--font-medium);
    transition: color 0.3s;
}

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

/* ===== SIMULATOR MAIN ===== */
.simulator-main {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
    min-height: calc(100vh - var(--header-height));
}

.simulator-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background: var(--gray-300);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    color: var(--gray-500);
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.progress-step.completed .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

.step-label {
    font-size: var(--smaller-size);
    color: var(--gray-600);
    text-align: center;
    max-width: 100px;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: var(--font-semibold);
}

/* ===== FORM CARD ===== */
.form-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-xl);
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-header i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.step-header.success i {
    color: var(--secondary-color);
}

.step-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* ===== FORM STYLES ===== */
.step-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: var(--font-semibold);
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--normal-size);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error {
    border-color: #ef4444;
}

/* ===== SIMULATOR BOX ===== */
.simulator-box {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
}

.valor-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.valor-display .currency {
    font-size: 1.5rem;
    color: var(--gray-600);
    font-weight: var(--font-semibold);
}

.valor-display input {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    text-align: center;
    border: none;
    background: transparent;
    width: auto;
    padding: 0;
}

#valor-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--gray-300);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

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

#valor-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: var(--small-size);
    color: var(--gray-600);
}

/* ===== SIMULATION RESULT ===== */
.simulation-result {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.result-item:last-child {
    border-bottom: none;
}

.result-item.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin: 0.5rem 0;
    border: none;
}

.result-label {
    font-weight: var(--font-medium);
    color: var(--gray-700);
}

.result-item.highlight .result-label {
    color: var(--white);
}

.result-value {
    font-weight: var(--font-bold);
    font-size: 1.125rem;
    color: var(--primary-color);
}

.result-item.highlight .result-value {
    color: var(--white);
    font-size: 1.5rem;
}

/* ===== PAYMENT OPTIONS ===== */
.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.option-card {
    background: var(--gray-50);
    border: 3px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    height: 100%;
}

.option-card i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.option-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.option-card p {
    font-size: var(--small-size);
    color: var(--gray-600);
}

.payment-option input[type="radio"]:checked + .option-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.payment-option input[type="radio"]:checked + .option-card i {
    color: var(--white);
    transform: scale(1.1);
}

.payment-option input[type="radio"]:checked + .option-card h3,
.payment-option input[type="radio"]:checked + .option-card p {
    color: var(--white);
}

.badge-recommended {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: var(--smaller-size);
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-md);
}

/* ===== INFO BOX ===== */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #dbeafe;
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.info-box i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.info-box p {
    color: var(--gray-700);
    margin: 0;
}

.alert {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.alert i {
    margin-right: 0.5rem;
}

.alert-info {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    color: #1e40af;
}

.alert-success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.alert ul {
    margin: 0.5rem 0 0 1.5rem;
    list-style: disc;
}

/* ===== ANALYSIS CONTAINER ===== */
.analysis-container {
    text-align: center;
    padding: 2rem 0;
}

.loading-animation {
    margin-bottom: 3rem;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 8px solid var(--gray-200);
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.analysis-progress {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.analysis-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInLeft 0.5s ease-out forwards;
}

.analysis-item:nth-child(1) { animation-delay: 0.5s; }
.analysis-item:nth-child(2) { animation-delay: 1s; }
.analysis-item:nth-child(3) { animation-delay: 1.5s; }
.analysis-item:nth-child(4) { animation-delay: 2s; }

.analysis-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

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

/* ===== APPROVAL SUMMARY ===== */
.approval-summary {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
}

.approval-summary h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-800);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item .label {
    font-size: var(--small-size);
    color: var(--gray-600);
}

.summary-item .value {
    font-size: 1.125rem;
    font-weight: var(--font-bold);
    color: var(--gray-900);
}

/* ===== GUARANTEE SECTION ===== */
.guarantee-section {
    margin-top: 2rem;
}

.guarantee-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.guarantee-option {
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 1.5rem 0;
}

.requirements-list {
    list-style: none;
    margin: 1.5rem 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--gray-700);
}

.requirements-list i {
    color: var(--secondary-color);
    font-size: 1.25rem;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.divider span {
    position: relative;
    background: var(--white);
    padding: 0 1rem;
    color: var(--gray-500);
    font-weight: var(--font-semibold);
}

/* ===== CERTIFICATE SECTION ===== */
.certificate-option {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    font-weight: var(--font-semibold);
}

.certificate-description {
    color: var(--gray-700);
    line-height: 1.7;
    margin: 1rem 0;
}

.certificate-price {
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    color: var(--gray-800);
}

.price-value {
    font-size: 2rem;
    font-weight: var(--font-extrabold);
    color: var(--secondary-color);
}

.price-note {
    font-size: var(--small-size);
    color: var(--gray-600);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.price-note i {
    color: var(--primary-color);
    margin-top: 0.25rem;
}

/* ===== FINAL SUMMARY ===== */
.final-summary {
    margin-bottom: 2rem;
}

.final-summary h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--gray-800);
}

.summary-section {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.guarantee-selected {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    color: var(--gray-800);
}

.guarantee-selected i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions .btn {
    flex: 1;
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    font-size: 1.25rem;
    padding: 1.25rem 2rem;
}

/* ===== UTILITIES ===== */
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 768px) {
    .form-card {
        padding: 2rem 1.5rem;
    }

    .progress-bar {
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .step-label {
        font-size: 0.625rem;
        max-width: 60px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }

    .form-row,
    .summary-grid,
    .payment-options {
        grid-template-columns: 1fr;
    }

    .step-header h2 {
        font-size: 1.5rem;
    }

    .step-header i {
        font-size: 3rem;
    }

    .valor-display input {
        font-size: 2rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .certificate-price {
        padding: 1rem;
    }

    .price-box {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .simulator-container {
        padding: 0 1rem;
    }

    .form-card {
        padding: 1.5rem 1rem;
    }

    .step-header h2 {
        font-size: 1.25rem;
    }
}