/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #ffffff;
  color: #000000;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Styles */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background-color: #ff1616;
  margin-right: 0.5rem;
  border-radius: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: bold;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.625rem;
  text-transform: uppercase;
  color: #666666;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: #666666;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #000000;
}

/* Main Content Styles */
.main-content {
  position: relative;
  min-height: calc(100vh - 53px);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  padding: 1rem;
  overflow: hidden;
}

/* Slideshow Container */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Slideshow Images */
.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

#slide1 {
  background-image: url("imagens/slide1.jpg");
  opacity: 1;
  animation: fade1 20s infinite;
}

#slide2 {
  background-image: url("imagens/slide2.jpg");
  animation: fade2 20s infinite;
}

#slide3 {
  background-image: url("imagens/slide3.jpg");
  animation: fade3 20s infinite;
}

#slide4 {
  background-image: url("imagens/slide4.jpg");
  animation: fade4 20s infinite;
}

#slide5 {
  background-image: url("imagens/slide5.jpg");
  animation: fade5 20s infinite;
}

/* Fade Animations */
@keyframes fade1 {

  0%,
  16%,
  96%,
  100% {
    opacity: 1;
  }

  20%,
  92% {
    opacity: 0;
  }
}

@keyframes fade2 {

  0%,
  16% {
    opacity: 0;
  }

  20%,
  36% {
    opacity: 1;
  }

  40%,
  100% {
    opacity: 0;
  }
}

@keyframes fade3 {

  0%,
  36% {
    opacity: 0;
  }

  40%,
  56% {
    opacity: 1;
  }

  60%,
  100% {
    opacity: 0;
  }
}

@keyframes fade4 {

  0%,
  56% {
    opacity: 0;
  }

  60%,
  76% {
    opacity: 1;
  }

  80%,
  100% {
    opacity: 0;
  }
}

@keyframes fade5 {

  0%,
  76% {
    opacity: 0;
  }

  80%,
  96% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 5));
  z-index: 1;
}

.content-container {
  max-width: 80rem;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.welcome-text {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Service Cards Styles */
.service-cards-container {
  margin-bottom: 2rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

/* Modificar o estilo dos service-cards para garantir layout 3x3 */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Modificar o estilo dos service-cards para ter fundo branco em vez de transparente */
.service-card {
  background-color: #ffffff;
  /* Mantendo o fundo branco conforme solicitado */
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Mantendo uma sombra sutil */
}

.service-card:hover {
  background-color: #ffffff;
  /* Mantendo o fundo branco no hover */
  transform: translateY(-5px);
  border-color: #ff1616;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card.active {
  background-color: #ffffff;
  /* Mantendo o fundo branco quando ativo */
  border-color: #ff1616;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Restaurar as cores originais do texto para manter o padrão do site */
.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #000000;
  /* Restaurado para a cor original */
}

.card-description {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.8);
  /* Restaurado para a cor original */
}

/* Garantir que a cor do ícone permaneça no padrão do site */
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ff1616;
  /* Mantendo a cor vermelha padrão do site */
}

/* Service Content Styles */
.service-content {
  max-width: 36rem;
  margin: 0 auto;
  display: none;
}

.service-content.active {
  display: block;
}

.content-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.content-description {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.red-link {
  color: #ff1616;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.red-button {
  background-color: #ff1616;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.red-button:hover {
  background-color: #e60000;
}

/* Back to Home Button */
.back-home-container {
  padding: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.back-home-button {
  display: inline-flex;
  align-items: center;
  color: #666666;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.back-home-button i {
  margin-right: 0.5rem;
}

.back-home-button:hover {
  color: #ff1616;
}

/* Form Styles */
.form-content {
  min-height: calc(100vh - 53px);
  background-color: #ffffff;
  transition: background-image 0.5s ease-in-out;
  /* Adicionar transição suave para troca de imagens */
}

.form-container {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.radio-options {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Melhorar a interatividade dos radio options */
.radio-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 0.5rem;
  border: 2px solid transparent;
  border-radius: 8px;
}

.radio-option:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 22, 22, 0.05);
}

.radio-option:active {
  transform: translateY(1px);
}

.radio-option.selected {
  border-color: #ff1616;
  background-color: rgba(255, 22, 22, 0.1);
}

/* Default state for radio options */
.radio-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid #d1d1d1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

.radio-inner {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.radio-label {
  font-size: 0.75rem;
  text-align: center;
  color: #666666;
  transition: color 0.3s ease;
  font-weight: 500;
}

/* Active state for radio options */
.radio-option .radio-circle.active {
  border-color: #ff1616;
}

.radio-option .radio-inner.active {
  background-color: #ff1616;
}

.radio-option .radio-label.active {
  color: #ff1616;
  font-weight: bold;
}

.form-section-title {
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.form-section-title.center {
  text-align: center;
  margin-bottom: 1rem;
}

.form-fields {
  margin-bottom: 2rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 0.5rem;
  border: none;
  border-bottom: 1px solid #d1d1d1;
  background-color: transparent;
  transition: border-color 0.2s;
  font-size: 1rem;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: #666666;
}

/* Estilo para campos com erro */
.form-input.error,
.form-select.error {
  border-color: #ff1616;
  background-color: rgba(255, 22, 22, 0.05);
}

.form-textarea {
  width: 100%;
  min-height: 6.25rem;
  padding: 0.75rem 0.75rem;
  border: 1px solid #d1d1d1;
  border-radius: 0.25rem;
  resize: vertical;
  transition: border-color 0.2s;
  font-size: 1rem;
}

.form-textarea:focus {
  outline: none;
  border-color: #666666;
}

.form-section {
  margin-bottom: 2rem;
}

/* File Upload Styles */
.file-upload {
  margin-bottom: 1.5rem;
}

.file-upload-label {
  display: block;
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.file-upload-input {
  display: none;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: #f0f0f0;
  border: 1px solid #d1d1d1;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  color: #666666;
  width: 100%;
  justify-content: center;
}

.file-upload-button:hover {
  background-color: #e0e0e0;
}

.file-upload-button i {
  margin-right: 0.5rem;
}

.file-name {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #666666;
  word-break: break-all;
}

.file-upload-preview {
  margin-top: 0.5rem;
  max-width: 100%;
  border-radius: 0.25rem;
  border: 1px solid #d1d1d1;
  padding: 0.5rem;
  background-color: #f9f9f9;
}

.file-upload-preview img {
  max-width: 100%;
  max-height: 200px;
  display: block;
  margin: 0 auto;
}

/* Checkbox and Radio Styles */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checkbox-input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  min-width: 18px;
  min-height: 18px;
}

.checkbox-label {
  font-size: 0.875rem;
  color: #666666;
  line-height: 1.4;
}

.radio-field {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.radio-input {
  margin-right: 0.5rem;
  min-width: 18px;
  min-height: 18px;
}

.radio-field-label {
  font-size: 0.875rem;
  color: #666666;
}

.radio-group {
  margin-bottom: 1.5rem;
}

.radio-group-label {
  display: block;
  font-size: 0.875rem;
  color: #666666;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Form validation styles */
.error-message {
  color: #ff1616;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ff1616;
}

/* Success Page Styles */
.success-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.success-card {
  max-width: 24rem;
  width: 100%;
  border: 2px solid #f0f0f0;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
}

.success-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 2px solid #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.success-message {
  font-size: 0.875rem;
  color: #666666;
}

/* Alert Box Styles */
.alert-box {
  margin-bottom: 1.5rem;
  border: 2px solid #ff9800;
  border-radius: 0.5rem;
  background-color: #fff8e1;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
}

.alert-icon {
  color: #ff9800;
  font-size: 1.5rem;
  margin-right: 1rem;
  padding-top: 0.25rem;
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #e65100;
}

.alert-text {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: #333333;
}

.alert-steps {
  font-size: 0.875rem;
  color: #333333;
}

.alert-steps ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.alert-steps li {
  margin-bottom: 0.25rem;
}

/* Adicionar estilos para a lista de alerta */
.alert-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #333333;
}

.alert-list li {
  margin-bottom: 0.25rem;
}

/* Estilos para o select */
.form-select {
  width: 100%;
  padding: 0.75rem 0.5rem;
  border: none;
  border-bottom: 1px solid #d1d1d1;
  background-color: transparent;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
  font-size: 1rem;
}

.form-select:focus {
  outline: none;
  border-color: #666666;
}

.form-select.error {
  border-color: #ff1616;
}

/* Estilos para o overlay do formulário de consórcio */
.form-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

/* Responsive Styles */
/* Atualizar as media queries para manter o layout consistente */
@media (max-width: 1200px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }
}

@media (max-width: 900px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 768px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .form-container {
    padding: 1.5rem 1rem;
  }

  .radio-options {
    gap: 1.5rem;
  }

  .radio-circle {
    width: 3.5rem;
    height: 3.5rem;
  }

  .radio-inner {
    width: 2.5rem;
    height: 2.5rem;
  }

  .alert-box {
    padding: 0.75rem;
  }

  .alert-title {
    font-size: 1rem;
  }

  .success-card {
    padding: 1.5rem;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }
}

@media (max-width: 640px) {
  .content-title {
    font-size: 1.25rem;
  }

  .service-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
  }

  .service-card {
    padding: 1.25rem;
  }

  .card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .radio-options {
    gap: 1rem;
  }

  .radio-circle {
    width: 3rem;
    height: 3rem;
  }

  .radio-inner {
    width: 2rem;
    height: 2rem;
  }

  .form-title {
    font-size: 1.1rem;
  }

  .alert-box {
    flex-direction: column;
  }

  .alert-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .file-upload-button {
    padding: 0.75rem 0.5rem;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .header {
    padding: 0.5rem;
  }

  .logo-icon {
    width: 25px;
    height: 25px;
  }

  .logo-title {
    font-size: 0.8rem;
  }

  .logo-subtitle {
    font-size: 0.6rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .form-container {
    padding: 1rem 0.75rem;
  }

  .form-input,
  .form-select {
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
  }

  .radio-group-label,
  .form-section-title {
    font-size: 0.8rem;
  }

  .checkbox-label,
  .radio-field-label {
    font-size: 0.8rem;
  }

  .red-button {
    padding: 0.6rem 1.25rem;
    width: 100%;
  }

  .service-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .welcome-text {
    font-size: 1rem;
  }

  .radio-circle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .radio-inner {
    width: 1.75rem;
    height: 1.75rem;
  }

  .alert-steps ol,
  .alert-list {
    padding-left: 1.25rem;
  }

  .success-icon {
    width: 4rem;
    height: 4rem;
  }

  .success-title {
    font-size: 1.1rem;
  }

  .back-home-button {
    font-size: 0.8rem;
  }

  .service-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 360px) {
  .header {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  .logo {
    margin-bottom: 0.5rem;
  }

  .nav {
    width: 100%;
    justify-content: space-around;
  }

  .form-input,
  .form-select {
    font-size: 0.9rem;
  }

  .radio-options {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .radio-option {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .radio-circle {
    margin-bottom: 0;
    width: 2.5rem;
    height: 2.5rem;
  }

  .radio-inner {
    width: 1.5rem;
    height: 1.5rem;
  }

  .alert-title {
    font-size: 0.95rem;
  }

  .alert-text,
  .alert-steps,
  .alert-list {
    font-size: 0.8rem;
  }

  .file-upload-button {
    font-size: 0.8rem;
  }
}

/* Estilos para mensagens de erro de arquivos */
.file-error-message {
  color: #ff1616;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Estilos para informações de tamanho de arquivo */
.file-size-info {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Melhorar a exibição do nome do arquivo com tamanho */
.file-name {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #666;
  word-break: break-all;
  display: flex;
  align-items: center;
}

/* Estilo para a caixa de informações do formulário */
.form-info-box {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
  border-left: 4px solid #ff9800;
}

.form-info-box h4 {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.form-info-box ul {
  margin: 0;
  padding-left: 1.5rem;
  font-size: 0.8rem;
  color: #666;
}

.form-info-box li {
  margin-bottom: 0.25rem;
}

/* === Ajuste clássico para 1 card centralizado e menor === */
.service-cards-container {
  display: grid;
  /* centraliza de modo direto */
  place-items: center;
  /* alinha horizontal e vertical */
  gap: 1rem;
}

.service-cards-container .service-card {
  width: 280px;
  /* tamanho “cartão”, menor */
  max-width: 90%;
  padding: 1rem;
  /* reduz espaçamento interno */
}

/* Opcional: ícone e textos mais contidos */
.service-cards-container .card-icon {
  font-size: 2rem;
}

.service-cards-container .card-title {
  font-size: 1.05rem;
}

.service-cards-container .card-description {
  font-size: 0.85rem;
}