/* Estilos da Calculadora de ITBI */
.calculadora-itbi {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calculadora-itbi h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 600;
}

.calculadora-itbi h4 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.campo-grupo {
    margin-bottom: 20px;
}

.campo-grupo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.campo-grupo input[type="text"],
.campo-grupo input[type="number"],
.campo-grupo select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.campo-grupo input[type="text"]:focus,
.campo-grupo input[type="number"]:focus,
.campo-grupo select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.campo-grupo input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.campo-grupo small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Grupo de botões */
.botoes-grupo {
    display: flex;
    gap: var(--wp--preset--spacing--20);
    margin-top: var(--wp--preset--spacing--40);
    font-family: inherit;
    font-size: var(--wp--preset--font-size--small);
    line-height: 1.5;
}

#calcular-btn,
#limpar-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: normal;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: var(--wp--preset--color--vivid-cyan-blue);
    color: var(--wp--preset--color--white);
}

#calcular-btn {
    background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple);
    color: var(--wp--preset--color--white);
}

#calcular-btn:hover {
    background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple);
    transform: translateY(-1px);
    box-shadow: var(--wp--preset--shadow--natural);
    opacity: 0.95;
}

#calcular-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

#calcular-btn:disabled {
    background: var(--wp--preset--color--cyan-bluish-gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

#limpar-btn {
    background: var(--wp--preset--color--vivid-red);
    color: var(--wp--preset--color--white);
}

#limpar-btn:hover {
    background: var(--wp--preset--color--vivid-red);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: var(--wp--preset--shadow--natural);
}

#limpar-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.resultado {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e8, #f0f9f0);
    border: 2px solid #27ae60;
    border-radius: 8px;
    animation: slideIn 0.5s ease;
}

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

.resultado h4 {
    color: #27ae60;
    margin-bottom: 15px;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #d5e8d4;
}

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

.resultado-label {
    font-weight: 500;
    color: #2c3e50;
}

.resultado-valor {
    font-weight: 600;
    color: #27ae60;
    font-size: 18px;
}

.resultado-valor.destaque {
    font-size: 24px;
    color: #e74c3c;
}

.explicacao {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 6px 6px 0;
}

.explicacao h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.explicacao p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #34495e;
}

.explicacao ul {
    margin-left: 20px;
    color: #34495e;
}

.explicacao li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.aviso {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.aviso strong {
    display: block;
    margin-bottom: 5px;
}

.erro {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .calculadora-itbi {
        margin: 10px;
        padding: 15px;
    }
    
    .botoes-grupo {
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    #calcular-btn,
    #limpar-btn {
        flex: 1;
        padding: 10px 5px;
        font-size: 14px;
        margin: 0;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .calculadora-itbi h3 {
        font-size: 20px;
    }
    
    .campo-grupo input[type="text"],
    .campo-grupo input[type="number"],
    .campo-grupo select {
        padding: 10px;
        font-size: 16px;
    }
    
    .botoes-grupo {
        gap: 10px;
    }
    
    #calcular-btn,
    #limpar-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .resultado-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .resultado-valor {
        font-size: 16px;
    }
    
    .resultado-valor.destaque {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .calculadora-itbi {
        margin: 5px;
        padding: 10px;
    }
    
    .explicacao {
        padding: 15px;
    }
    
    .explicacao ul {
        margin-left: 15px;
    }
}




/* Estilos para o FAQ */
.faq-itbi {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-itbi h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.faq-itbi h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.faq-itbi details {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    overflow: hidden;
}

.faq-itbi details:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.faq-itbi summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    color: #2c3e50;
    list-style: none;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    border-radius: 8px;
    min-height: 56px;
    -webkit-tap-highlight-color: transparent;
}

.faq-itbi summary:hover {
    background-color: #f1f3f5;
}

.faq-itbi summary::-webkit-details-marker {
    display: none;
}

.faq-itbi summary::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e9ecef;
    color: #2c3e50;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-itbi details[open] summary {
    background-color: #f8f9fa;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: 1px solid #e9ecef;
}

.faq-itbi details[open] summary::after {
    content: '−';
    background: #e9ecef;
    color: #2c3e50;
}

.faq-itbi p {
    padding: 20px;
    color: #4a5568;
    line-height: 1.7;
    margin: 0;
    background-color: #ffffff;
    font-size: 15px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Responsividade para FAQ */
@media (max-width: 768px) {
    .faq-itbi {
        padding: 16px;
        margin: 20px 10px;
        border-radius: 8px;
    }
    
    .faq-itbi h2 {
        font-size: 1.4em;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .faq-itbi summary {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 52px;
    }
    
    .faq-itbi summary::after {
        width: 22px;
        height: 22px;
        font-size: 16px;
    }
    
    .faq-itbi p {
        padding: 16px;
        font-size: 14px;
        line-height: 1.6;
    }
}


