.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 25px;
  border: 1px solid rgba(0,0,0,0.03);
}

.card-header {
  background-color: transparent;
  border-bottom: 2px solid #E7E7E7;
  padding: 20px 25px 10px 25px;
  font-weight: 700;
  color: #2C3E50;
  font-size: 1.2rem;
}

.card-body {
  padding: 25px;
}

.form-label {
  font-weight: 600;
  color: #4A4A4A;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.form-control, .form-select {
  border: 1px solid #D8D7D7;
  border-radius: 8px;
  padding: 10px 15px;
  color: #4A4A4A;
}

.form-control:focus, .form-select:focus {
  border-color: #2C3E50;
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.15);
}

.radio-group {
  background-color: #F5F5F5;
  padding: 15px;
  border-radius: 8px;
}

.termo-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding: 20px;
  background-color: #F9F9F9;
  border-radius: 8px;
  border: 1px solid #D8D7D7;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4A4A4A;
}

.termo-scroll p {
  margin-bottom: 15px;
}

.btn-submit {
  background-color: #2C3E50;
  color: white;
  padding: 12px 40px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
  margin-bottom: 50px;
}

.btn-submit:hover {
  background-color: #1a2632;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.condicional-box {
  background-color: #F5F5F5;
  padding: 20px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #2C3E50;
}

hr {
  background-color: #D8D7D7;
  opacity: 0.5;
  margin: 25px 0;
}

/* Garantir que os toasts fiquem visíveis */
.toast-container {
  z-index: 9999;
}

.toast {
  min-width: 350px;
  background-color: white;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toast-header {
  border-bottom: none;
  padding: 12px 16px;
}

.toast-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Estilo para campos inválidos */
.is-invalid {
  border-color: #dc3545 !important;
  background-image: none !important;
}

.is-invalid:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.border-danger {
  border: 2px solid #dc3545 !important;
  border-radius: 8px;
}

/* Modal customizado (como SweetAlert) */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(5px);
  animation: overlayFadeIn 0.2s ease;
}

.custom-modal {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.custom-modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -10px auto 20px;
  animation: iconPop 0.4s ease;
}

.custom-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Gotham', sans-serif;
}

.custom-modal-message {
  color: #4A4A4A;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  padding: 0 10px;
  font-family: 'Gotham', sans-serif;
}

.custom-modal-button {
  border: none;
  color: white;
  padding: 12px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Gotham', sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.custom-modal-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.custom-modal-button:active {
  transform: translateY(0);
}

.d-flex.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem !important;
}

.d-flex.flex-wrap .form-check {
  margin-right: 0;
  min-width: 140px;
}

@media (max-width: 768px) {
  .d-flex.flex-wrap .form-check {
      min-width: 100%;
  }
}

.character-counter {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
}

.radio-group .d-flex.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem !important;
}

.radio-status {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem !important;
  width: 100%;
}

.radio-status .form-check {
  margin-right: 0;
  flex: 1 1 0;
  min-width: 120px;
}

.radio-status .form-check-label {
  white-space: nowrap;
}

.radio-group .d-flex.flex-wrap .form-check {
  min-width: auto;
  margin-right: 15px;
}

@media (max-width: 768px) {
  .radio-group .d-flex.flex-wrap .form-check {
      min-width: 100%;
      margin-right: 0;
  }
}

.radio-group .form-check-label {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .radio-group .form-check-label {
      white-space: normal;
  }
}

@media (max-width: 768px) {
  .radio-status .form-check {
      flex: 0 0 100%;
      min-width: 100%;
  }
  
  .radio-status .form-check-label {
      white-space: normal;
  }
}

@media (max-width: 480px) {
  .radio-status {
      gap: 0.5rem !important;
  }
}

/* Gênero - botões animados */
.radio-genero {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  background-color: #F5F5F5;
  border-radius: 8px;
}

.genero-card {
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 50px;
  border: 2px solid #D8D7D7;
  background-color: #fff;
  color: #4A4A4A;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  user-select: none;
  white-space: nowrap;
}

.genero-card:hover {
  border-color: #2C3E50;
  color: #2C3E50;
  background-color: #f0f3f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44,62,80,0.13);
}

input[name="genero"]:checked + .genero-card {
  background-color: #2C3E50;
  border-color: #2C3E50;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(44,62,80,0.25);
}

@media (max-width: 768px) {
  .genero-card {
    width: 100%;
    text-align: center;
  }
}


@keyframes modalFadeIn {
  from {
      opacity: 0;
      transform: scale(0.8);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

@keyframes overlayFadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

@keyframes iconPop {
  0% {
      transform: scale(0);
  }
  50% {
      transform: scale(1.2);
  }
  100% {
      transform: scale(1);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .custom-modal {
      width: 95%;
      padding: 25px;
  }
  
  .custom-modal-icon {
      width: 70px;
      height: 70px;
  }
  
  .custom-modal-icon span {
      font-size: 35px !important;
  }
  
  .custom-modal-title {
      font-size: 22px;
  }
  
  .custom-modal-message {
      font-size: 15px;
  }

  .radio-group .d-flex.flex-wrap .form-check {
    min-width: 100%;
}
}

@media (min-width: 1200px) {
  .d-flex.flex-wrap .form-check {
    min-width: 190px;
  }
}

@media (min-width: 1400px) {
  .d-flex.flex-wrap .form-check {
    min-width: 230px;
  }
}
/* ── Pill buttons (versão botões) ─────────────────────────── */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  background-color: #F5F5F5;
  border-radius: 8px;
}

.pill-card {
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 50px;
  border: 2px solid #D8D7D7;
  background-color: #fff;
  color: #4A4A4A;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
  user-select: none;
  white-space: nowrap;
  margin: 0;
}

.pill-card:hover {
  border-color: #2C3E50;
  color: #2C3E50;
  background-color: #f0f3f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44,62,80,0.13);
}

input[type="radio"]:checked + .pill-card {
  background-color: #2C3E50;
  border-color: #2C3E50;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(44,62,80,0.25);
}

@media (max-width: 768px) {
  .pill-card { width: 100%; text-align: center; }
}
