/* Calculadora de Tempo de Vida - Estilos */
.ctv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    background-color: #f9fafb;
}

.ctv-header {
    padding: 2rem 0 1rem;
    text-align: center;
}

.ctv-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #111827;
}

.ctv-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

.ctv-main {
    padding-bottom: 3rem;
}

.ctv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .ctv-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.ctv-form-section,
.ctv-results-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.ctv-section-title,
.ctv-results-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.ctv-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

@media (min-width: 640px) {
    .ctv-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ctv-full-width {
    grid-column: 1 / -1;
}

.ctv-label {
    display: block;
}

.ctv-label-text {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151;
}

.ctv-input,
.ctv-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ctv-input:focus,
.ctv-select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.ctv-help-text {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.ctv-submit-btn {
    width: 100%;
    background-color: #111827;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ctv-submit-btn:hover {
    background-color: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ctv-submit-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.ctv-loading {
    display: none;
}

.ctv-submit-btn.loading .ctv-btn-text {
    display: none;
}

.ctv-submit-btn.loading .ctv-loading {
    display: inline;
}

.ctv-results {
    margin-bottom: 1.5rem;
}

.ctv-placeholder {
    color: #6b7280;
}

.ctv-result-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ctv-expectativa {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}

.ctv-progress-bar {
    width: 100%;
    height: 0.75rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.ctv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: 9999px;
    transition: width 0.5s ease-in-out;
}

.ctv-tempo-restante {
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.75rem;
    color: #166534;
}

.ctv-dicas {
    margin-top: 1rem;
}

.ctv-dicas-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.ctv-dicas-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: #374151;
}

.ctv-dicas-list li {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.ctv-ad-space {
    height: 7rem;
    border-radius: 0.75rem;
    background-color: #f3f4f6;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    margin-top: 1.25rem;
}

.ctv-disclaimer {
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.ctv-monetization {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.ctv-monetization-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ctv-monetization-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.ctv-monetization-list li {
    margin-bottom: 0.25rem;
}

.ctv-faq-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.ctv-faq-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.ctv-faq-item {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
}

.ctv-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ctv-faq-question {
    cursor: pointer;
    font-weight: 500;
    color: #111827;
    padding: 0.5rem 0;
    list-style: none;
}

.ctv-faq-question::-webkit-details-marker {
    display: none;
}

.ctv-faq-question::before {
    content: '▶';
    margin-right: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.ctv-faq-item[open] .ctv-faq-question::before {
    transform: rotate(90deg);
}

.ctv-faq-answer {
    margin-top: 0.5rem;
    color: #374151;
    line-height: 1.6;
}

/* Responsividade */
@media (max-width: 640px) {
    .ctv-title {
        font-size: 2rem;
    }
    
    .ctv-form-section,
    .ctv-results-section {
        padding: 1rem;
    }
    
    .ctv-container {
        padding: 0 0.5rem;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ctv-result-content {
    animation: fadeIn 0.5s ease-in-out;
}

/* Utilitários */
.font-semibold {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

