:root {
  --color-base: #232b2c;
  --color-white: #ffffff;
  --color-white-bis: hsl(185, 9%, 96%);
  --color-gray: hsl(185, 9%, 70%);
  --color-gray-dark: hsl(187, 11%, 30%);
  --color-accent-1: #673ab7;
  --color-accent-2: #00bcd4;
  --color-accent-2-bis: #029eb6;
  --color-error: #da2400;
  --color-error-bis: #b11d00;
  --color-success: #ecf9ec;
  --color-success-bis: #4caf50;
  --color-success-ter: #243d25;
  --font-family-body: "Asap", sans-serif;
  --font-family-alt: "Signika Negative", sans-serif;
}
@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg)
  }
}
@keyframes hide_popup_content {
  0% {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  100% {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes show_popup_content {
  0% {
    transform: translateY(-100%) scale(0.9);
    opacity: 0;
    visibility: hidden;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }
}
html,
body {
  font-family: var(--font-family-body);
  height: 100%;
}
body {
  background: #f5f5f5;
  position: relative;
}
.main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 100%;
}
.container {
  margin: 0 auto;
  max-width: 1000px;
  padding-left: 10px;
  padding-right: 10px;
}
h1,
h3 {
  text-align: center;
}
h1, h2 {
  color: var(--color-base);
}
h1 span {
  color: var(--color-accent-2-bis);
}
h2 {
  margin: 0 0 1em;
}
h3 {
  color: #374b4e;
}
p {
  margin: 0 0 1.5em;
  padding: 0;
}
p.centered {
  text-align: center;
}
.icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
}
.icon svg {
  width: 100%;
  height: 100%;
}
.popup {
  position: fixed;
  top: 0;
}
.popup,
.popup__wrapper,
.popup__wrapper::after {
  left: 0;
  width: 100%;
  height: 100%;
}
.popup__close,
.popup__wrapper,
.popup__wrapper::after {
  position: absolute;
  top: 0;
}
.popup__close {  
  right: 0;
  display: inline-flex;
  padding: 4px;
  border: none;
  color: var(--color-base);
  background:var(--color-white);
  width: 2em;
  height: 2em;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: all 0.1s linear;
}
.popup__close .icon {
  width: 90%;
  height: 90%;
  color: var(--color-base);
}
.popup__close:active,
.popup__close:hover {
  opacity: 1;
  cursor: pointer;
}
.popup__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup__wrapper::after {
  content: '';
  background: var(--color-base);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}
.popup__content {
  background: var(--color-white);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 1em;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 50em;
  border-radius: 0.25em;
  transform: translateY(-100%) scale(0.9);
  opacity: 0;
  visibility: hidden;
}
.popup.hidden {
  opacity: 0;
  visibility: hidden;
}
.popup.hide .popup__content {
  animation: hide_popup_content 0.1s linear 0.015s forwards;
}
.popup.show {
  opacity: 1;
  visibility: visible;
}
.popup.show .popup__content {
  animation: show_popup_content 0.1s linear 0.015s forwards;
}
.popup.show .popup__wrapper::after {
  opacity: 0.7;
  visibility: visible;
}
.form {
  display: grid;
  grid-template-columns: repeat(12, [col-start] 1fr);
  gap: 1.5em 0.875em;
  padding: 2em 1em 1em;
}
.form > div,
.form > p {
  grid-column: span 12;
}
.form .required {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-error);
}
.form .note {
  font-size: 0.875em;
  color: var(--color-gray-dark);
}
.field h2 {
  margin: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}
.field.field--half {
  grid-column: span 6;
}
.field .label {
  font-size: 0.875em;
  color: var(--color-base);
  font-weight: bold;
}
.button,
.field .input {
  appearance: none;
  border: 1px solid var(--color-gray-dark);
  border-radius: 0.25em;
  line-height: 1.5;
}
.field .input {
  height: 3em;
  padding: 0 0.5em;
}
.field textarea.input {
  min-height: 7em;
}
.field .input[disabled] {
  opacity: 0.6;
}
.button {
  display: inline-flex;
  gap: 1em;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0.5em 1.5em;
  background: var(--color-accent-1);
  color: var(--color-white);
  font-family: var(--font-family-alt);
  font-weight: bold;
  transition: all 0.1s linear;
}
.button:active,
.button:hover {
  cursor: pointer;
}
.button .spinner {
  width: 1.5em;
  height: 1.5em;
  position: relative;
}
.button .spinner > span {
  display: block;
  width: 80%;
  height: 80%;
  border: 4px solid var(--color-white);
  border-color: currentColor transparent transparent transparent;
  border-radius: 300em;
  position: absolute;
  top: 0;
  left: 0;
  animation: spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.button .spinner > span:nth-child(1) {
  animation-delay: -0.45s;
}
.button .spinner > span:nth-child(2) {
  animation-delay: -0.35s;
}
.button .icon {
  color: var(--color-white);
}
.button .spinner,
.button.loading .icon,
.button.loading .text {
  display: none;
}
.button.secondary {
  background: var(--color-gray);
  color: var(--color-base);
}
.button.secondary:active,
.button.secondary:hover {
  background: var(--color-base);
  color: var(--color-white);
}
.button.loading .spinner {
  display: inherit;
}
.button[disabled] {
  opacity: 0.6;
}
.field.field--buttons {
  display: flex;
}
.notification {
  padding: 0.9em 1em;
  border: 1px solid var(--color-gray);
  background: var(--color-white-bis);
  border-radius: 0.25em;
  position: relative;
}
.notification p {
  font-weight: bold;
}
.notification.notification--success 
{
  background: var(--color-success);
  border-color: var(--color-success-bis);
  color: var(--color-success-ter);
}
.notification.notification--error {
  background: var(--color-error);
  border-color: var(--color-error-bis);
  color: var(--color-white);
}
.button.notification-close {
  position: absolute;
  top: 0.4em;
  right: 0.3em;
  width: 1.5em;
  height: 1.5em;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-base);
  font-size: 20px;
  opacity: 0.7;
}
.notification--success .button.notification-close .icon {
  color: var(--color-success-ter);
}
.notification--error .button.notification-close .icon {
  color: var(--color-white);
}
.button.notification-close:hover {
  opacity: 1;
}
.notification p:last-child {
  margin-bottom: 0;
}