/* 
 * Estilos para o Sistema de Certidões Nacionais
 * 34° Registro Civil de São Paulo
 */

/* Variáveis CSS */
:root {
    --primary-color: #003366;
    --secondary-color: #FF8C00;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

/* Reset e estilos base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    width: 180px;
}

.header-title {
    text-align: center;
}

.header-title h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header-title p {
    font-size: 1rem;
}

/* Navegação */
.main-nav {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-right: 10px;
}

.nav-link {
    display: block;
    padding: 15px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

/* Seção de introdução */
.intro-section {
    padding: 40px 0;
    background-color: white;
    text-align: center;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefits {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
    flex-wrap: wrap;
}

.benefit {
    flex: 1;
    min-width: 200px;
    margin: 15px;
    padding: 20px;
    background-color: var(--light-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.benefit i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Contêineres de formulário */
.form-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.form-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-col {
    flex: 1;
    padding: 0 10px;
    min-width: 250px;
    margin-bottom: 15px;
}

/* Abas */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    background-color: var(--light-color);
}

.tab.active {
    background-color: white;
    border-color: var(--border-color);
    border-bottom-color: white;
    font-weight: bold;
    color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Resumo de preços */
.price-summary {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.price-total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 15px;
    text-align: right;
}

/* Métodos de pagamento */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    flex: 1;
    min-width: 100px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover, .payment-method.active {
    border-color: var(--secondary-color);
    background-color: rgba(255, 140, 0, 0.1);
}

.payment-method i {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Botões */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: #e67e00;
}

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

.btn-primary:hover {
    background-color: #002244;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #218838;
}

.btn-block {
    display: block;
    width: 100%;
}

.text-center {
    text-align: center;
}

/* Notificações */
.notification-preview {
    background-color: var(--light-color);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 5px 5px 0;
}

.notification-preview h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Alertas */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Cartões */
.card {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background-color: var(--light-color);
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

/* Seções */
.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    background-color: var(--light-color);
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-answer {
    padding: 15px;
    display: none;
    background-color: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 5px 5px;
}

.faq-item.active .faq-question {
    background-color: var(--primary-color);
    color: white;
    border-radius: 5px 5px 0 0;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Rodapé */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-item {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .form-col {
        flex: 100%;
    }
    
    .tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab {
        border-radius: 0;
        margin-right: 0;
        margin-bottom: 2px;
        border: 1px solid var(--border-color);
    }
    
    .tab.active {
        border-bottom-color: var(--border-color);
    }
    
    .footer-section {
        flex: 100%;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Utilitários */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 2.5rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
