* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2d6e4e 0%, #1a3a5c 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 100%;
    padding: 40px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #c8291f;
}

header h1 {
    color: #c8291f;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.logo-lab {
    width: 120px;
    margin: 0 auto 15px;
    display: block;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

.form-consulta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #c8291f;
    box-shadow: 0 0 0 3px rgba(200, 41, 31, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #c8291f 0%, #d4a03a 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 41, 31, 0.4);
}

.resultado-consulta {
    margin-top: 30px;
    display: none;
}

.resultado-consulta.show {
    display: block;
}

.certificado-card {
    background: #f8f9fa;
    border: 2px solid #c8291f;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.certificado-card h3 {
    color: #c8291f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.certificado-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.info-value {
    color: #666;
}

.certificado-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
}

.status-disponivel {
    background: #d4edda;
    color: #155724;
}

.status-processamento {
    background: #fff3cd;
    color: #856404;
}

.btn-download {
    margin-top: 20px;
    background: #28a745;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-download:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.mensagem-erro {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.mensagem-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
}

.link-inscricao {
    color: #c8291f;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link-inscricao:hover {
    color: #2d6e4e;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .info-item {
        flex-direction: column;
        gap: 5px;
    }

    .info-label {
        min-width: auto;
    }
}
