/* Certidão de Casamento Oficial - Estilo Brasileiro */

/* Container do formulário */
#weddingCertificate {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 700px;
}

#weddingCertificate h1 {
    color: #1a3a5c;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

#certificateForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#certificateForm label {
    color: #1a3a5c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

#certificateForm .form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}

#certificateForm h2 {
    color: #2d5f8d;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

/* Certidão Gerada - Estilo Oficial */
.certidao-casamento-oficial {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    background: linear-gradient(135deg, #fffef0 0%, #fff9e6 50%, #fffef0 100%);
    border: 15px solid #ffd700;
    border-image: repeating-linear-gradient(
        45deg,
        #ffd700,
        #ffd700 10px,
        #ffed4e 10px,
        #ffed4e 20px,
        #d4af37 20px,
        #d4af37 30px
    ) 15;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    font-family: 'Times New Roman', Times, serif;
    position: relative;
}

.certidao-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 3px solid #1e3a8a;
    text-align: center;
    position: relative;
}

.certidao-brasao {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
}

.certidao-brasao img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certidao-header-text {
    color: #1e3a8a;
    margin: 0;
}

.certidao-header-text h1 {
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0.3rem 0;
    letter-spacing: 0.5px;
}

.certidao-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.8rem;
    color: #000;
}

.certidao-body {
    padding: 2rem;
    background: rgba(255, 254, 240, 0.95);
    position: relative;
}

.certidao-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50" y="50" font-size="40" fill="%23e0e0e0" opacity="0.1" text-anchor="middle">BRASIL</text></svg>');
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.certidao-content {
    position: relative;
    z-index: 1;
}

.certidao-foto-container {
    width: 120px;
    height: 150px;
    float: left;
    margin: 0 1.5rem 1rem 0;
    border: 3px solid #1e3a8a;
    border-radius: 4px;
    overflow: hidden;
    background: white;
}

.certidao-foto-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certidao-field {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d0d0d0;
}

.certidao-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    display: block;
}

.certidao-value {
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
}

.certidao-field-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.certidao-field-col {
    flex: 1;
    min-width: 200px;
}

.certidao-field-full {
    width: 100%;
    clear: both;
}

.certidao-matricula {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 4px;
}

.certidao-observacoes {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #d0d0d0;
    border-radius: 4px;
}

.certidao-footer {
    background: white;
    padding: 1.5rem 2rem;
    border-top: 3px solid #1e3a8a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.certidao-logo-cidade {
    width: 80px;
    height: 80px;
    border: 2px solid #1e3a8a;
    border-radius: 4px;
    padding: 0.5rem;
    background: white;
}

.certidao-logo-cidade img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.certidao-assinatura {
    text-align: right;
    flex: 1;
    margin-left: 2rem;
}

.certidao-assinatura-linha {
    width: 250px;
    margin-left: auto;
    border-top: 2px solid #000;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    color: #333;
}

.certidao-data-registro {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Botões de ação */
.certidao-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.certidao-actions .btn {
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .certidao-casamento-oficial {
        max-width: 100%;
        border-width: 10px;
    }

    .certidao-header {
        padding: 1rem;
    }

    .certidao-body {
        padding: 1rem;
    }

    .certidao-foto-container {
        float: none;
        margin: 0 auto 1rem;
        display: block;
    }

    .certidao-field-row {
        flex-direction: column;
    }

    .certidao-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .certidao-assinatura {
        margin-left: 0;
        text-align: center;
    }

    .certidao-assinatura-linha {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .certidao-casamento-oficial {
        border-width: 8px;
    }

    .certidao-title {
        font-size: 1.2rem;
    }

    .certidao-header-text h1 {
        font-size: 0.75rem;
    }
}
