/* _root.css */
:root {
  --font-mono: 400 normal 16px/1.6 Monaco, Consolas, Andale Mono, Ubuntu Mono, monospace;
  --font-google: 400 normal 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --primary-color: #d65bd1;
  --secondary-color: #845ec2;
  --error-color: #fc4444;
  --success-color: #008f7a;
  --warning-color: #ff9671;
  --info-color: #0081cf;
  --white: #fafafa;
  --black: #191919;
  --space: 1rem;
}

/* _global.css */
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
}

body {
  font: 400 normal 16px/1.6 "Monaco", "Consolas", "Andale Mono", "Ubuntu Mono", monospace;
}

fieldset.forma {
  border: 1px solid rgba(25, 25, 25, 0.1);
}

fieldset.forma legend {
  font-size: 110%;
  margin-left: 1rem;
  padding: 0 1rem;
}

/* _forma-complete.css */
.forma .forma-control,
.forma [type=submit] {
  font: 400 normal 16px/1.6 "Monaco", "Consolas", "Andale Mono", "Ubuntu Mono", monospace;
  padding: 1rem;
}
.forma label {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
}
.forma .forma-label {
  flex: 0 0 30%;
  order: 1;
}
.forma .forma-valid {
  color: #008f7a;
}
.forma .forma-invalid {
  color: #fc4444;
}
.forma .forma-description {
  color: rgba(25, 25, 25, 0.5);
}
.forma .forma-message {
  font-size: 85%;
}
.forma .forma-fieldset {
  display: none;
  flex: 1 1 auto;
  order: 2;
  position: relative;
}
.forma .forma-open .forma-fieldset {
  align-items: center;
  display: flex;
}
.forma .forma-open .forma-fieldset:after {
  align-items: center;
  background-color: #fafafa;
  border: 1px solid rgba(25, 25, 25, 0.1);
  content: "Hit tab";
  display: flex;
  font-size: 85%;
  padding: 0.3rem;
  position: absolute;
  right: 1rem;
  z-index: 10;
}
.forma .forma-open .forma-manual:before {
  content: "-";
}
.forma .forma-manual:before {
  align-items: center;
  content: "+";
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  order: 99; /* Make sure this is at the end of everything else. */
  padding: 0 1rem;
}
.forma .forma-fieldset * {
  width: calc(100% - 2rem - 2px); /* Fix fields width substract border & padding extra spacing. */
}
.forma .forma-fieldset .forma-control {
  border: 1px solid rgba(25, 25, 25, 0.1);
  outline: 4px solid transparent;
}
.forma .forma-fieldset .forma-control:focus {
  outline: 4px solid rgba(25, 25, 25, 0.1);
}
.forma .forma-fieldset .forma-control:focus:valid {
  outline: 4px solid #008f7a;
}
.forma .forma-fieldset .forma-control:focus:invalid {
  outline: 4px solid #fc4444;
}
.forma .forma-fieldset select.forma-control {
  bottom: 0;
  height: inherit;
  height: 3rem;
  max-height: 4rem;
  top: 0;
  width: 100%;
}
.forma [type=submit] {
  background-color: #845ec2;
  border: 0;
  color: #fafafa;
  cursor: pointer;
  margin: 1rem;
  outline: 0;
  width: calc(100% - 2rem - 2px); /* Fix fields width substract border & padding extra spacing. */
}
.forma [type=submit]:focus,
.forma [type=submit]:active,
.forma [type=submit]:hover {
  background-color: #d65bd1;
}
.forma [type=submit]:disabled {
  background-color: rgba(25, 25, 25, 0.2);
  color: rgba(25, 25, 25, 0.4);
  cursor: not-allowed;
}

.forma .forma-description,
.forma .forma-input,
.forma .forma-message {
  display: block;
}

.forma .forma-control:focus-visible,
.forma [type=submit]:focus-visible {
  outline: 3px solid #0081cf;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .forma * {
    animation: none !important;
    transition: none !important;
  }
}
