:root {
  --primary: #4b22f5;
  --secondary: #3d1abd;

  --primary-light: #f3f2ff;
  --secondary-light: #e8e8ff;

  --container: 960px;
  --transition-duration: 0.3s;
}

body {
  font-family: Montserrat, sans-serif;
  background: #000;
  color: #fff;
  margin: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.header {
  background: var(--primary);
  color: #fff;
  padding-top: 3rem;
  padding-bottom: 6rem;
  text-align: center;
  position: fixed;
  inset: 0 0 auto;
  z-index: -1;
}

@media (width >=576px) {
  .header {
    padding-top: 4rem;
    padding-bottom: 8rem;
  }
}


@media (width >=992px) {
  .header {
    padding-top: 5rem;
    padding-bottom: 10rem;
  }
}

.header-title {
  margin: 0;
  font-size: 1.5rem;
}

@media (width >=992px) {
  .header-title {
    font-size: 2rem;
  }
}

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.template {
  padding: 1.5rem;
  background-color: white;
  color: black;
  border-radius: .5rem;
  margin-top: 8rem;
}

@media (width >=992px) {
  .template {
    margin-top: 10rem;
  }
}

@media (width >=576px) {
  .template {
    padding: 3rem;
  }
}

@media (width >=992px) {
  .template {
    padding: 4rem;
  }
}

.btn {
  display: flex;
  column-gap: .5rem;
  border: none;
  text-align: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: .5rem;
  color: white;
  background-color: var(--primary);
  cursor: pointer;
  transition-property: color, background-color;
  transition-duration: var(--transition-duration);
  font-size: .875rem;
  font-weight: 700;
}

.btn:hover {
  background-color: var(--secondary);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-control {
  padding: 1rem;
  background-color: white;
  border: 1px solid #999;
  border-radius: .5rem;
  transition-property: border-color, box-shadow;
  transition-duration: var(--transition-duration);
}

.form-control:active,
.form-control:hover,
.form-control:focus {
  border-color: var(--primary);
}

.form-control:active,
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

select.form-control {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 7"><path d="M5 5 8 2H2Z" fill="%23999"/></svg>');
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: right .75rem center;
  cursor: pointer;
  padding-right: 3rem;
}

select.form-control:active,
select.form-control:hover,
select.form-control:focus {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 7"><path d="M5 5 8 2H2Z" fill="%234b22f5"/></svg>');
}

textarea.form-control {
  resize: none;
  field-sizing: content;
}

.footer {
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}

.form-control[type="color"] {
  width: 4rem;
  min-height: 3.28rem;
  padding: 0.5rem;
  cursor: pointer;
  appearance: none;
}


@media (width >=992px) {
  .form-control[type="color"] {
    height: 100%;
  }
}

.input-group {
  flex-direction: row;
  gap: 0;
}

.input-group label {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  border: 1px solid #999;
  border-top-left-radius: .5rem;
  border-bottom-left-radius: .5rem;
  border-right: 0;
  background-color: #f9f9f9;
  width: 100%;
}

.input-group input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (width >=992px) {
  .form-group {
    flex-direction: row;
  }

  .form-group>* {
    width: calc(50% - .5rem);
  }
}

.form-control.is-required {
  border-color: #ef4444;
}

.form-control.is-required:focus,
.form-control.is-required:active,
.form-control.is-required:hover {
  box-shadow: 0 0 0 3px #fef2f2;
}

.form-control.is-required::-webkit-input-placeholder {
  color: #ef4444;
}

.form-control.is-required::-moz-placeholder {
  color: #ef4444;
}

.form-control.is-required::placeholder {
  color: #ef4444;
}