* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 130px;
    width: auto;
    margin-right: 20px;
}

.logo-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper */
.main-content {
    flex: 1;
    /* padding-top: 90px; /*Compensa a altura do header fixo */
}

/* botão de lupa*/
.icon-button {
    position: absolute;
    top: 35px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #0078D7;
    transition: transform 0.2s ease;
}

.icon-button:hover {
    transform: scale(1.2);
}

/*Spinner Loading*/
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0078D7;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    position: absolute;
    right: 15px;
    top: 35px;
    z-index: 10;
}

.checkbox-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  font-size: 15px;
  color: #1a1a1a;
  white-space: nowrap;
}

.checkbox-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

#outrosInputContainer input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dica {
    font-weight: normal;
    font-size: 0.85em;
    color: white;
    font-style: italic;
}


/* Header - FIXO */
.header {
    background: transparent;
    padding: 0px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 30px;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
}


/* Container principal - OTIMIZADO */
.container {
    max-width: 900px;
    background: #104d80;
    backdrop-filter: blur(10px);
    padding: 40px;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    color: #20a1c1;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: white;
    font-size: 16px;
    line-height: 1.5;
}

/* Campos do formulário - ESPAÇAMENTO REDUZIDO */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 15px;
}

.form-row.double {
    display: flex;
    gap: 15px;
}

.form-row.double .form-field {
    flex: 1;
}

/* NOVO: Layout para 3 colunas */
.form-row.triple {
    display: flex;
    gap: 15px;
}

.form-row.triple .form-field {
    flex: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-field label {
    font-weight: 600;
    margin-bottom: 6px;
    /* color: #20a1c1; */
    color: white;
    font-size: 14px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #13cfcf;
    box-shadow: 0 0 0 3px rgba(44, 167, 200, 0.1);
}


/* Botão de envio */
.submit-container {
    text-align: center;
    margin-top: 35px;
}

.submit-btn {
    background: #20a1c1;
    color: white;
    padding: 14px 50px;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(44, 167, 200, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 255,255,0.3)
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsividade */
@media (max-width: 768px) {
    .main-content {
        padding-top: 80px;
    }

    .container {
        max-width: 95%;
        margin: 20px auto;
        padding: 25px 18px;
        border-radius: 15px;
    }

    .form-row.double,
    .form-row.triple {
        flex-direction: column;
        gap: 12px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .form-header {
        margin-bottom: 25px;
    }

    .submit-btn {
        width: 100%;
        padding: 14px;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.6s ease-out;
}

/* Estilo para campos obrigatórios */
.form-field.required label::after {
    content: " *";
    color: red;
}

/* Feedback visual para campos preenchidos automaticamente */
.auto-filled {
    background-color: #f8f9fa !important;
    border-color: #28a745 !important;
}

/* Footer Styles - Modelo Escuro */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
    position: relative;
    z-index: 5;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-column h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ff9500;
}

.footer-column p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #cccccc;
    font-size: 14px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #ff9500;
}

.footer-column ul li:not(:has(a)) {
    color: #cccccc;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: #333333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: #ff9500;
    color: white;
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid #333333;
    color: #999999;
    font-size: 14px;
}

.copyright a {
    color: #ff9500;
    text-decoration: none;
    font-weight: 600;
}

.copyright a:hover {
    color: white;
}

/* Responsive para footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-column h3 {
        font-size: 16px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
    }
}

/* Aparência de campo bloqueado */
.form-field input[readonly] {
  background-color: #f8f9fa;
  cursor: not-allowed;
}