:root {
  --brand-green: #00d000;
  --brand-yellow: #ffd000;
  --brand-blue: #183eff;
  --brand-red: #ff0000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background-image: url("../images/fundo_multicor.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.cadastro-card {
  width: min(900px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 62, 255, 0.2);
  box-shadow: 0 12px 28px rgba(24, 62, 255, 0.12);
  border-radius: 16px;
  padding: 28px;
}

.cadastro-title {
  margin: 0 0 6px;
  color: #102eaf;
}

.cadastro-subtitle {
  margin: 0 0 18px;
  color: #4c5fba;
}

.search-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.search-wrap label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #14226f;
}

.search-wrap input {
  height: 40px;
  border: 1px solid rgba(24, 62, 255, 0.2);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.95rem;
  outline: none;
}

.search-wrap input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(24, 62, 255, 0.14);
}

.instituicoes {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.instituicao-item {
  width: 100%;
  border: 2px solid rgba(24, 62, 255, 0.15);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.instituicao-item:hover,
.instituicao-item:focus-visible {
  border-color: var(--brand-blue);
  box-shadow: 0 0.5rem 1rem rgba(24, 62, 255, 0.12);
  outline: none;
}

.instituicao-item.is-selected {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0, 208, 0, 0.16);
}

.instituicao-nome {
  display: block;
  color: #14226f;
  font-size: 0.98rem;
  font-weight: 700;
}

.instituicao-meta {
  display: block;
  margin-top: 4px;
  color: #5362a8;
  font-size: 0.83rem;
}

.empty-message {
  color: #5160a5;
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-secondary {
  border-color: rgba(255, 0, 0, 0.38);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-red);
}

.btn-primary {
  border-color: rgba(24, 62, 255, 0.7);
  background: var(--brand-blue);
  color: #fff;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .cadastro-card {
    padding: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

