/* fp/css/cursos.css */
/* Palette: Dark blue (#2c3e50), Teal accent (#1abc9c), Light grey (#ecf0f1) */

html, body {
  height: 100%;
  margin: 0;
  padding-top: 120px; /* Espaço para o header fixo */
  font-family: 'Roboto', sans-serif;
  background: url('../../media/p100pro/dron1.png') no-repeat center center fixed;
  background-size: cover;
  color: #2c3e50;
}

.page-title {
  text-align: center;
  margin: 20px 0 40px;
}

.page-title img {
  width: 200px;
  height: auto;
}

.container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto 60px;
  gap: 40px;
  padding: 0 20px;
}

.left, .right {
  background: rgba(236, 240, 241, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
}
.left {
  flex: 3;
}
.right {
  flex: 2;
}

.container-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: #bd1111;
}

.module {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.module:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.module-header {
  background: #000;
  color: #fff;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  transition: background 0.3s;
}
.module-header:hover {
  background: #bd1111;
}

/* Ajusta .module-content para usar flex quando aberto */
.module-content {
  display: none;
  padding: 18px;
  background: #ecf0f1;
  color: #2c3e50;
  box-sizing: border-box;
}
.module.open .module-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* Imagem solta ocupa mais espaço sem borda */
.module-img {
  /* Desativa float para funcionar em flex */
  float: none;
  /* ocupa até metade do espaço */
  max-width: 50%;
  height: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* Form styles */
.right form label {
  display: block;
  margin: 12px 0 6px;
  color: #2c3e50;
  font-weight: 500;
}
.right form input,
.right form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #bdc3c7;
  border-radius: 4px;
  background: #fff;
  transition: border-color 0.3s;
}
.right form input:focus,
.right form select:focus {
  outline: none;
  border-color: #1abc9c;
}

.right form button {
  width: 100%;
  padding: 12px;
  background: #bd1111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.right form button:hover {
  background: #16a085;
}

/* Messages */
.error-messages ul {
  background: #e74c3c;
  color: #fff;
  border-radius: 4px;
  padding: 12px 16px;
  list-style: none;
}
.error-messages li {
  margin-bottom: 6px;
}
.success {
  padding: 12px 16px;
  background: #2ecc71;
  border-radius: 4px;
  color: #fff;
  margin-bottom: 20px;
}
/* === RESPONSIVIDADE PARA CELULAR === */
@media (max-width: 768px) {
  /* empilha formulário acima dos módulos */
  .container {
    flex-direction: column;
    padding: 0 16px;
  }
  .right {
    order: 1;
    width: 100%;
    margin-bottom: 24px;
  }
  .left {
    order: 2;
    width: 100%;
  }

  /* título da página um pouco menor */
  .page-title img {
    width: 150px;
  }

  /* títulos de seção menores */
  .container-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  /* módulos: conteúdo em coluna */
  .module.open .module-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .module-content {
    padding: 12px;
  }

  /* imagens dos módulos cheias e sem float */
  .module-img {
    max-width: 100%;
    height: auto;
    margin: 0 0 12px;
  }

  /* texto dos itens um pouco menor */
  .module-content ul li {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* cabeçalho do módulo ajustado */
  .module-header {
    font-size: 1.25rem;
    padding: 12px 16px;
  }

  /* formulário: inputs e botões maiores para toque */
  .right form label {
    font-size: 0.95rem;
  }
  .right form input,
  .right form select {
    font-size: 1rem;
    padding: 10px;
  }
  .right form button {
    font-size: 1rem;
    padding: 12px;
  }
}
/* Move o texto dentro dos módulos para a direita */
.module-content {
  /* mantém o padding original em cima, direita e embaixo, mas aumenta à esquerda */
  padding: 18px 18px 18px 36px;
}

/* Ajuste também no mobile para manter o recuo proporcional */
@media (max-width: 768px) {
  .module-content {
    padding: 16px 16px 16px 28px;
  }
}