/* 🌑 Modal Bottom Sheet */
.modal-bottom-sheet .modal-dialog {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  transform: none !important;
  z-index: 1055;
}

.modal-bottom-sheet .modal-content {
  border-radius: 16px 16px 0 0;
  padding: 30px 20px;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.modal-bottom-sheet.modal-dialog-centered {
  align-items: flex-end;
}

.modal-backdrop.show {
  background-color: rgba(0, 0, 0, 0.3); /* pode ajustar a opacidade */
}

.modal-header {
  margin-top: -20px;
  margin-bottom: 20px;
  font-family: 'Josefin Sans', sans-serif;
}

.form-check {
  border: 2.5px solid #6b0400;
  border-radius: 16px;
  padding: 12px 16px;
  background-color: #fff;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  max-width: 520px;
  margin: 20px;
}

.plano-card {
  border: 2.5px solid #ccc;
  border-radius: 16px;
  padding: 14px 16px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* 💡 Estilo de cartão selecionado */
.plano-card.selecionado {
  border-color: #6b0400;
  font-weight: 600;
}

.icon-plano-pro {
  background-color: #6b0400;
  border-radius: 16px;
  padding: 8px;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.form-check i {
  background-color: #6b0400;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  padding: 10px;
  object-fit: contain;
  align-items: center;
  display: flex;
  color: #FFFFFF !important;
  justify-content: center;
  font-size: 20px;
}

.modal-price p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  color: #333;
  opacity: 0.8;
}

.modal-price span {
  font-size: 1.1rem;
  color: #666;
  opacity: 0.7;
  font-weight: 400;
  text-decoration: line-through;
  margin: 0;
}

.modal-price strong {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2ecc71;
  margin: 0;
}

.btn-close {
  background-color: transparent;
  font-size: 1.25rem;
  color: #6b0400;
}

.btn-close:focus {
  box-shadow: none;
}

.text-direita {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85em;
  color: #666;
  opacity: 0.7;
}

.cadastro-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: -40px;
}

.cadastro-col {
  flex: 1 1 45%;
  min-width: 260px;
}

.input-group-floating {
  position: relative;
  display: flex;
  flex-direction: column;
}

.input-group-floating label {
  position: absolute;
  top: -0.6rem;
  left: 0.8rem;
  background: #FFFFFF;
  padding: 0 4px;
  font-size: 14px;
  color: #999;
  z-index: 1;
  pointer-events: none;
}

.custom-input {
  border: 2px solid #999;
  border-radius: 8px;
  padding: 14px 12px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
  background: #FFFFFF;
  color: #333;
}

.custom-input::placeholder {
  color: #999;
  opacity: 1;
}

.custom-input:focus {
  border-color: #6b0400;
}

.custom-input:focus+label {
  border-color: #6b0400;
  color: #6b0400;
}

.btn-modal {
  background-color: #6b0400;
  color: #FFFFFF;
  font-family: 'Josefin Sans', sans-serif;
  padding: 14px 24px;
  border-radius: 12px;
  border: none !important;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.btn-modal:hover {
  background-color: #8b0602;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-modal:focus {
  outline: 3px solid #c0392b4d;
  outline-offset: 3px;
}


/* 🌐 Responsividade aprimorada */
@media (max-width: 992px) {
  .modal-bottom-sheet .modal-content {
    padding: 24px 16px;
  }

  .form-check {
    gap: 20px;
    padding: 10px 14px;
    margin: 12px;
  }

  .modal-price p {
    font-size: 1rem;
  }

  .modal-price span,
  .modal-price strong {
    font-size: 1rem;
  }

  .btn-modal {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .modal-header {
    margin-top: -10px;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .venda-container {
    flex-direction: column;
    text-align: center;
  }

  .cadastro-form {
    gap: 16px;
    margin-top: -30px;
  }

  .cadastro-col {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .modal-bottom-sheet .modal-content {
    padding: 20px 14px;
  }

  .form-check {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .form-check i {
    width: 36px;
    height: 36px;
    font-size: 18px;
    padding: 8px;
  }

  .btn-modal {
    width: 100%;
    font-size: 1.05rem;
    padding: 12px;
  }

  .modal-header {
    margin-top: 0;
    text-align: center;
  }

  .modal-price {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .form-check {
    padding: 10px;
    gap: 12px;
  }

  .plano-card {
    padding: 12px;
  }

  .custom-input {
    font-size: 15px;
    padding: 12px 10px;
  }

  .input-group-floating label {
    font-size: 13px;
    top: -0.5rem;
  }

  .modal-price p,
  .modal-price span,
  .modal-price strong {
    font-size: 0.95rem;
  }

  .btn-modal {
    font-size: 1rem;
  }
}
