/* Fonte nativa moderna aplicada ao modal */
.modal-container {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  padding: 32px 28px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  box-sizing: border-box;
}

/* Overlay escurecido com leve desfoque de fundo */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Botão de Fechar (X) */
.btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: #1e293b;
}

/* Título Centralizado */
.modal-title {
  margin: 0 0 20px 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  line-height: 1.2;
}

/* Estilização do Select e Label */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333333;
}

.select-wrapper {
  position: relative;
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1e293b;
  background-color: #f8fafc;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  appearance: none; /* Remove a seta padrão do sistema */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2064748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select:focus {
  border-color: #233862;
  box-shadow: 0 0 0 3px rgba(35, 56, 98, 0.15);
  background-color: #ffffff;
}

/* Botão Principal (#233862, Texto Branco, Arredondado) */
.btn-primary {
  width: 100%;
  padding: 14px 20px;
  background-color: #233862;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: #1a2a4a;
}

.btn-primary:active {
  transform: scale(0.99);
}