* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    background: #c3e0ed;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

/* Main Content */
.main {
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    background: #d7e9f1;
    padding: 25px 0;
    min-height: 250px;
}

.hero-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-left {
    padding-right: 40px;
}

.main-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.description {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #5a6c7d;
    margin-bottom: 18px;
    text-align: justify;
}

.instruction {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0;
}

/* Diploma Digital Card */
.content-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.diploma-digital-card {
    background: #2300C2;
    color: white;
    padding: 16px 18px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    width: 300px;
    height: 175px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    align-self: flex-start;
    font-size: 2rem;
}

.diploma-icon {
    width: 90px;
    height: 90px;
    padding-top: 10px;
    padding-right: 20px;
    align-self: flex-start;
    object-fit: contain;
}

.diploma-digital-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.verification-field {
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 2px;
}

.verification-input {
    flex: 1;
    padding: 8px 10px;
    border: none;
    font-size: 12px;
    color: #666;
    outline: none;
    background: white;
}

.verification-input::placeholder {
    color: #999;
}

.verify-btn {
    background: white;
    color: #666;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    border-left: 1px solid #e5e5e5;
}

.verify-btn:hover {
    background: #f8f9fa;
}

/* Search Section */
.search-section {
    background: white;
    padding: 60px 0;
    min-height: 450px;
}

.search-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
    min-height: 90vh;
}

.search-left {
    max-width: 500px;
}

.search-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

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

.form-group:last-of-type {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
    transition: border-color 0.3s ease;
    height: 48px;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.search-input-group {
    position: relative;
}

.help-text {
    margin-top: 8px;
    margin-bottom: 12px;
}

.help-text a {
    color: #007bff;
    text-decoration: none;
    font-size: 13px;
}

.help-text a:hover {
    text-decoration: underline;
}

.search-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    border: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 12px;
    height: 48px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #FFC107 0%, #FF8C00 100%);
    transform: translateY(-1px);
}

/* Search Results */
.search-results {
    display: none;
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
}

.search-results.visible {
    display: block;
}

.search-results h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.results-content {
    min-height: 60px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.results-content.has-results {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    font-style: normal;
}

/* Illustration */
.search-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
}

.illustration {
    width: 100%;
    max-width: 480px;
}

.illustration img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #5a6c7d;
}

.modal-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-content li {
    margin-bottom: 8px;
    color: #5a6c7d;
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .content-left {
        padding-right: 0;
    }
    
    .search-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .search-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0 30px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .diploma-digital-card {
        min-width: auto;
        padding: 25px;
    }
    
    .diploma-digital-card h3 {
        font-size: 1.9rem;
    }
    
    .search-section {
        padding: 30px 0 60px;
    }
    
    .form-group select,
    .form-group input {
        padding: 12px;
        font-size: 14px;
    }
    
    .search-btn {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .diploma-digital-card {
        padding: 20px;
    }
    
    .verification-field {
        flex-direction: column;
    }
    
    .verify-btn {
        padding: 12px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}

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

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

.main-title,
.description,
.diploma-digital-card,
.search-form {
    animation: fadeInUp 0.6s ease-out;
}

.diploma-digital-card {
    animation-delay: 0.2s;
}

.search-form {
    animation-delay: 0.4s;
}

/* Estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .search-btn {
    background: #ccc;
}

.loading .search-btn::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #666;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
}

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

/* Melhorias de acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus {
    outline: 3px solid #6B73FF;
    outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
    outline: 3px solid #6B73FF;
    outline-offset: 2px;
}

/* Estilo específico para o campo HWM4 */
#busca {
    width: 30% !important;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
    transition: border-color 0.3s ease;
    height: 48px;
    box-sizing: border-box;
}

/* Container do captcha */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-code {
    display: block;
    
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    letter-spacing: 1px;
    min-width: 80px;
    text-align: left;
    user-select: none;
   
}

.refresh-captcha {
    display: none;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-left: 5px;
}

.refresh-captcha:hover {
    background: #5a6268;
} 