/* ============================================
   CALCULADORA PREMIUM - SOLNER
   Design Limpo e Profissional
============================================ */


.calculadora-premium-page {
    background: var(--white);
    overflow-x: hidden;
}


/* ============================================
   HERO COM IMAGEM DE FUNDO + FILTRO PRETO 75%
============================================ */
.hero-cinema {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 210px;
    padding-bottom: 140px;
    margin-top: 0;
}

/* Imagem de Fundo */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-calculadora.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Filtro Preto 75% Opacidade */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2;
}

.hero-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 182, 0, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(220, 88, 42, 0.12) 0%, transparent 50%);
    opacity: 0.8;
    z-index: 3;
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 4;
}

.hero-content-cinema {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
}

/* Badge PREMIUM com efeito RADAR */
.hero-badge-cinema {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Bolinha CENTRAL com gradiente */
.badge-pulse {
    position: relative;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(220, 88, 42, 0.8),
                0 0 16px rgba(220, 88, 42, 0.4);
}

/* Onda 1 - Expansão */
.badge-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(220, 88, 42, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radar-ping 2s ease-out infinite;
}

/* Onda 2 - Expansão com delay */
.badge-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 182, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: radar-ping 2s ease-out infinite 1s;
}

/* Animação de PULSO com brilho */
@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 8px rgba(220, 88, 42, 0.8),
                    0 0 16px rgba(220, 88, 42, 0.4);
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.9;
        box-shadow: 0 0 12px rgba(220, 88, 42, 1),
                    0 0 24px rgba(220, 88, 42, 0.6),
                    0 0 32px rgba(255, 182, 0, 0.3);
    }
}

/* Animação RADAR - Ondas expandindo */
@keyframes radar-ping {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    80% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(4);
        opacity: 0;
    }
}

.badge-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Título - UMA LINHA NO DESKTOP */
.hero-title-cinema {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.title-gradient {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtítulo */
.hero-subtitle-cinema {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.hero-features-inline {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.feature-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
}

.feature-inline img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ============================================
   BOTÃO PADRÃO - EFEITO DO MENU
============================================ */
.btn-hero-cta,
.btn-calcular,
.btn-cta-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gradient-orange);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(220, 88, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-hero-cta::before,
.btn-calcular::before,
.btn-cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-hero-cta:hover::before,
.btn-calcular:hover::before,
.btn-cta-block:hover::before {
    left: 100%;
}

.btn-hero-cta:hover,
.btn-calcular:hover,
.btn-cta-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 88, 42, 0.4);
}

.btn-hero-cta:active,
.btn-calcular:active,
.btn-cta-block:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 88, 42, 0.3);
}

.btn-arrow,
.btn-cta-block svg {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: var(--transition-base);
}

.btn-hero-cta:hover .btn-arrow,
.btn-cta-block:hover svg {
    transform: translateX(4px);
}

/* ============================================
   CALCULADORA
============================================ */
.calculator-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.calc-card {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

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

.calc-header h2 {
    font-size: 32px;
    font-weight: 500;
    color: var(--gray-900);
    margin: 0 0 16px;
}

.calc-header p {
    font-size: 15px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid */
.calc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.calc-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1;
}

.calc-field label img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(8%) sepia(90%) saturate(5577%) hue-rotate(238deg);
}

.calc-field label span {
    line-height: 1;
}

/* Input */
.input-wrapper {
    position: relative;
}

.input-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-500);
    pointer-events: none;
}

.calc-field input[type="number"] {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: none;
    border-bottom: 2px solid var(--gray-300);
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-main);
    transition: var(--transition-base);
}

.calc-field input:focus {
    outline: none;
    border-bottom-color: var(--accent-orange);
    box-shadow: none;
}

/* Select */
.calc-field select {
    width: 100%;
    padding: 14px 32px 14px 0;
    border: none;
    border-bottom: 2px solid var(--gray-300);
    border-radius: 0;
    font-size: 15px;
    font-family: var(--font-main);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-base);
    background: transparent;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23737373" stroke-width="2" stroke-linecap="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.calc-field select:focus {
    outline: none;
    border-bottom-color: var(--accent-orange);
    box-shadow: none;
}

.field-hint {
    font-size: 12px;
    color: var(--gray-500);
}

/* Botão Calcular - Ajustado */
.btn-calcular {
    width: 100%;
    padding: 18px 40px;
    font-size: 17px;
    margin-bottom: 16px;
}

.btn-calcular:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-calc-loading {
    display: none;
    align-items: center;
    gap: 10px;
}

.btn-calcular.loading .btn-calc-text {
    display: none;
}

.btn-calcular.loading .btn-calc-loading {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.btn-calc-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Security */
.calc-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 10px;
    font-size: 13px;
    color: var(--gray-600);
}

.calc-security img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* ============================================
   MODAL DE RESULTADO - SEM ÍCONES + CORES NEUTRAS
============================================ */
.modal-resultado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal-resultado.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-smooth);
}

.modal-resultado.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--gray-900);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray-600);
}

.modal-close:hover svg {
    stroke: var(--white);
}

/* Modal Header - SEM ÍCONE */
.modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 500;
    color: var(--gray-900);
    margin: 0 0 8px;
}

.modal-header p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
}

/* Modal Cards - GRID 3 COLUNAS + TODOS NEUTROS */
.modal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.modal-card {
    padding: 28px 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-base);
}

.modal-card:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.modal-card .card-label {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-card .card-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1;
}

.modal-card .card-chart {
    margin: 16px 0;
}

.modal-card .card-desc {
    font-size: 12px;
    color: var(--gray-600);
}

.modal-card .card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 12px;
}

.modal-card .card-info strong {
    font-size: 18px;
    color: var(--gray-900);
}

/* Modal Comparativo - SEM ÍCONES + CORES NEUTRAS */
.modal-comparativo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 32px;
    background: var(--gray-50);
    border-radius: 20px;
    margin-bottom: 40px;
}

.comparativo-item {
    padding: 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
}

.comparativo-depois {
    border-color: var(--gray-400);
}

.comparativo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.comparativo-header span {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-900);
}

.comparativo-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comparativo-item li {
    font-size: 14px;
    line-height: 1.5;
    color: var(--gray-700);
}

.comparativo-seta {
    width: 48px;
    height: 48px;
    background: var(--gray-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comparativo-seta svg {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* ============================================
   MODAL CTA - FUNDO PRETO + IMAGEM
============================================ */
.modal-cta {
    position: relative;
    border-radius: 20px;
    padding: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}

/* Imagem de Fundo */
.modal-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-calculadora.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Filtro Preto com Opacidade */
.modal-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2;
}

.cta-block-content {
    position: relative;
    z-index: 3;
}

.cta-block-content h3 {
    font-size: 24px;
    line-height: 1.2;
    color: var(--white);
    margin: 0 0 8px;
}

.cta-block-content p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.btn-cta-block {
    position: relative;
    z-index: 3;
    white-space: nowrap;
}

/* ============================================
   ANIMAÇÕES
============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVO
============================================ */
@media (max-width: 1024px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-cards {
        grid-template-columns: 1fr;
    }
    
    .modal-comparativo {
        grid-template-columns: 1fr;
    }
    
    .comparativo-seta {
        transform: rotate(90deg);
        margin: 0 auto;
    }
    
    .modal-cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-cinema {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .hero-title-cinema {
        font-size: 31px;
    }
    
    .hero-title-cinema br {
        display: none;
    }
    
    .hero-subtitle-cinema {
        font-size: 18px;
        font-weight: 400;
        line-height: 1.5;
    }
    
    .hero-features-inline {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        align-items: center;
        justify-items: center;
        margin-bottom: 32px;
    }
    
    .hero-features-inline .feature-icon-desktop {
        display: none;
    }
    
    .feature-inline {
        position: relative;
        padding: 0 12px;
        font-size: 13px;
        font-weight: 500;
    }
    
    .feature-inline:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 16px;
        background: rgba(255, 255, 255, 0.3);
    }
    
    .calculator-section {
        padding: 100px 0;
    }
    
    .calc-card {
        padding: 32px 20px;
    }
    
    .calc-header h2 {
        font-size: 24px;
    }
    
    .modal-cta {
        padding: 32px 24px;
        flex-direction: column;
        text-align: center;
    }
    
    .cta-block-content h3 {
        font-size: 25px;
        line-height: 1.3;
    }
    
    .modal-content {
        padding: 32px 20px;
    }
    
    .modal-header h2 {
        font-size: 24px;
    }
    
    .modal-card .card-value {
        font-size: 28px;
    }
    
    .btn-cta-block {
        width: 100%;
    }
}