/* ANCAQ CENTER - Cursos CSS */

.ancaq-cursos-section {
  background: #f8f9fa;
  padding: 80px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ancaq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cursos-header {
  text-align: center;
  margin-bottom: 50px;
}

.cursos-header h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
}

.cursos-header h2 span {
  color: #c2247c;
  font-weight: 700;
}

.cursos-header p {
  color: #666;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.curso-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.curso-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.curso-card.popular {
  border: 3px solid #c2247c;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c2247c, #d63a91);
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(194, 36, 124, 0.3);
}

.curso-icon {
  width: 300px;
  height: 250px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 2rem;
  color: white;
}

.curso-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.3;
}

.curso-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.curso-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.current-price {
  color: #0055a5;
  font-size: 1.8rem;
  font-weight: 700;
}

.curso-info {
  display: flex;
  justify-content: space-around;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #666;
}

.info-item i {
  color: #c2247c;
  font-size: 1.1rem;
}

.curso-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  flex-grow: 1;
}

.curso-features li {
  padding: 8px 0;
  color: #555;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.curso-features li i {
  color: #0055a5;
  margin-top: 3px;
  flex-shrink: 0;
}

.btn-inscrever {
  background: linear-gradient(135deg, #0055a5, #0073d1);
  color: white;
  border: none;
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-inscrever:hover {
  background: linear-gradient(135deg, #003d7a, #0055a5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 85, 165, 0.3);
}

.curso-card.popular .btn-inscrever {
  background: linear-gradient(135deg, #c2247c, #d63a91);
}

.curso-card.popular .btn-inscrever:hover {
  background: linear-gradient(135deg, #a01d64, #c2247c);
  box-shadow: 0 5px 15px rgba(194, 36, 124, 0.3);
}

.cursos-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-ver-mais {
  background: #f39c12;
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-ver-mais:hover {
  background: #d68910;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* Modal Styles */
.ancaq-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  margin: 50px auto;
  padding: 0;
  width: 90%;
  max-width: 700px;
  border-radius: 15px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.3);
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: #c2247c;
  background: #f5f5f5;
}

.modal-content h3 {
  text-align: center;
  color: #333;
  font-size: 2rem;
  margin: 0;
  padding: 30px 60px 10px 30px;
}

.modal-content h3 span {
  color: #c2247c;
}

.modal-subtitle {
  text-align: center;
  color: #666;
  padding: 0 30px 20px 30px;
  margin: 0;
  border-bottom: 2px solid #f0f0f0;
}

#ancaq-form-inscricao {
  padding: 30px;
}

.form-section {
  margin-bottom: 30px;
}

.form-section h4 {
  color: #0055a5;
  font-size: 1.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section h4 i {
  color: #c2247c;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0055a5;
  box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.1);
}

.form-group input[readonly] {
  background: #f5f5f5;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-footer {
  border-top: 2px solid #f0f0f0;
  padding-top: 25px;
  margin-top: 25px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-label a {
  color: #c2247c;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.btn-submit {
  background: linear-gradient(135deg, #f39c12, #f5b041);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #d68910, #f39c12);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.modal-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.modal-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .cursos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }
  
  .modal-content h3 {
    font-size: 1.5rem;
    padding: 20px 50px 10px 20px;
  }
  
  #ancaq-form-inscricao {
    padding: 20px;
  }
}