.form-page {
  min-height: 100vh;
  background: var(--brand-gray);
}

.form-page main {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 34px 18px 70px;
}

.form-page > .form-container {
  margin-top: 34px;
  margin-bottom: 70px;
}

.form-container {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--brand-white);
  box-shadow: var(--shadow);
}

.form-container .form-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

h2 {
  margin: 0 0 12px;
  color: var(--brand-gray);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  text-align: center;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
}

.form-group > label,
.form-group > span:first-child,
label {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-gray);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea,
.form-group select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--brand-white);
  color: var(--text);
  font-family: var(--font-brand) !important;
  font-size: 15px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand-gray) 50%), linear-gradient(135deg, var(--brand-gray) 50%, transparent 50%);
  background-position: calc(100% - 20px) 20px, calc(100% - 14px) 20px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:hover,
input:focus,
select:hover,
select:focus,
textarea:hover,
textarea:focus {
  border-color: var(--brand-yellow);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 198, 0, 0.22);
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
  accent-color: var(--brand-yellow);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-group label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius);
  background: #f8f8f8;
  color: var(--brand-gray);
  cursor: pointer;
}

input[type="file"] {
  padding: 0;
  border: 0;
  background: #f8f8f8;
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  min-height: 46px;
  margin: 0 14px 0 0;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--brand-yellow);
  color: var(--brand-gray);
  font-family: var(--font-brand) !important;
  font-weight: 800;
  cursor: pointer;
}

small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.aviso-procedimentos,
.criterio {
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-left: 6px solid var(--brand-yellow);
  border-radius: var(--radius);
  background: #fff8dc;
  color: var(--brand-gray);
  font-size: 15px;
  line-height: 1.5;
}

.aviso-procedimentos strong,
.criterio strong,
.criterio span {
  color: var(--brand-gray) !important;
}

.aviso-anexo-obrigatorio {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 22px;
  left: 50%;
  width: min(92vw, 540px);
  padding: 16px 18px;
  transform: translateX(-50%);
  border-radius: var(--radius);
  background: var(--danger);
  color: var(--brand-white);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: var(--shadow);
}

.aviso-anexo-obrigatorio.visivel {
  display: block;
}

.notification,
#notification {
  display: none;
}

.notification-center {
  position: relative;
  margin-left: auto;
}

.notification-center-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
  color: var(--brand-white);
  cursor: pointer;
}

.notification-center-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-center-button:hover,
.notification-center-button:focus {
  background: rgba(255, 255, 255, 0.18);
  color: var(--brand-white);
  outline: none;
}

.notification-badge {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-yellow);
  color: var(--brand-gray);
  font-size: 11px;
  font-weight: 800;
}

.notification-panel {
  width: min(380px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 110px));
  overflow: auto;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  padding: 14px;
  border-radius: var(--radius);
  background: #222426;
  color: var(--brand-white);
  box-shadow: var(--shadow);
}

.notification-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.notification-panel-header span {
  color: #c8c9ca;
  font-size: 12px;
}

.notification-panel-list {
  display: grid;
  gap: 10px;
}

.notification-panel-item {
  padding: 12px;
  border-radius: var(--radius);
  border-left: 7px solid var(--brand-yellow);
  background: #fff8dc;
  color: var(--brand-gray);
}

.notification-panel-item.success {
  border-left-color: #37b26c;
  background: #e9f8ef;
}

.notification-panel-item strong {
  display: block;
  margin-bottom: 6px;
}

.notification-panel-item p,
.notification-panel-item li {
  color: var(--brand-gray);
  font-size: 13px;
  line-height: 1.4;
}

.notification-panel-item a {
  color: var(--brand-gray);
  font-weight: 800;
}

.notification-empty {
  margin: 0;
  color: #d7d8da;
}

.notification-toast-stack {
  width: min(420px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
  position: sticky;
  top: 12px;
  z-index: 900;
  margin: 0 22px 0 auto;
  pointer-events: none;
  margin-top: 10px;
}

.notification-toast {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  position: relative;
  padding: 15px 44px 15px 15px;
  border-left: 7px solid #37b26c;
  border-radius: var(--radius);
  background: #e9f8ef;
  color: var(--brand-gray);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  pointer-events: auto;
  animation: notification-slide-in 0.24s ease-out;
}

.notification-toast.error {
  border-left-color: var(--brand-yellow);
  background: #fff8dc;
}

.notification-toast-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #37b26c;
  color: var(--brand-white);
  font-size: 14px;
  font-weight: 800;
}

.notification-toast.error .notification-toast-icon {
  background: var(--brand-yellow);
  color: var(--brand-gray);
}

.notification-toast-body strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-gray);
  font-size: 15px;
}

.notification-toast-body p {
  margin: 5px 0 0;
  color: var(--brand-gray);
  line-height: 1.42;
}

.notification-code {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: var(--brand-gray);
  font-size: 12px;
  font-weight: 800;
}

.notification-content {
  margin-top: 10px;
}

.notification-details {
  margin: 0;
  padding-left: 18px;
  text-align: left;
}

.notification-details li {
  margin: 6px 0;
  color: var(--brand-gray);
  line-height: 1.4;
}

.notification-action a {
  color: var(--brand-gray);
  font-weight: 800;
}

.notification-toast-close {
  width: 28px;
  height: 28px;
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--brand-gray);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@keyframes notification-slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

ul {
  color: var(--text);
}

@media (max-width: 720px) {
  .form-page main {
    padding: 22px 10px 42px;
  }

  .form-container {
    padding: 22px 14px;
  }

  .radio-group {
    display: grid;
  }

  .notification-toast-stack {
    top: 8px;
    margin: 0 12px 0 auto;
  }

  .notification-panel {
    right: -4px;
  }
}
