@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;700&family=Poppins&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
input,
select,
textarea,
button {
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #d1cccc;
}

/* parte onde colocamos a cor do background atrás do formulário */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 368px;
  background-color: #13914b;
  z-index: -1;
}

.container {
  width: 736px;
  margin: auto;
}

header {
  width: 330px;
  margin: 80px 0 42px;
}

h1 {
  color: #ffffff;
  font-style: "Archivo", sans-serif;
  line-height: 42px;
  font-size: 36px;
}

p {
  color: #42d3ff;
  margin-top: 24px;
}

form {
  width: 736px;
  min-height: 600px;

  padding: 64px;

  background-color: #fafafc;
  border-radius: 8px 8px 0 0;

  display: flex;
  flex-direction: column;
  gap: 48px;
}

fieldset {
  border: none;
}

fieldset legend {
  font-family: "Archivo", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 24px;
  line-height: 34px;

  border-bottom: 1px solid #e6e6f0;
  padding-bottom: 16px;
  width: 100%;
}

.input-wrapper {
  display: flex;
  flex-direction: column;
}

.input-wrapper label {
  font-size: 14px;
  line-height: 24px;
  color: #4e4958;

  margin: 24px 0 8px;
}

.input-wrapper label span {
  margin-left: 12px;
  line-height: 20px;
  color: #74717c;
}

.input-wrapper input,
.input-wrapper textarea,
.input-wrapper select {
  background: #fafafc;

  border-radius: 8px;
  border: 1px solid #e6e6f0;

  height: 56px;
  padding: 0 24px;

  font-size: 16px;
  line-height: 26px;

  color: #74717c;
}

#info {
  height: 168px;
  padding: 0;
}

#category {
  appearance: none; /* appearance: none remove a seta do select input */
  -webkit-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1_54)'%3E%3Cpath d='M8 10L12 14L16 10' stroke='%239C98A6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1_54'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 2rem;
}

.checkbox-wrapper {
  position: relative;

  margin-top: 24px;
  font-size: 14px;
  line-height: 24px;
}

.checkbox-wrapper input {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  opacity: 0;
}

.checkbox-wrapper label {
  display: flex;
  gap: 16px;
  align-items: center;
}

.checkbox-wrapper label::before {
  content: "";
  width: 24px;
  height: 24px;

  display: block;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.checkbox-wrapper input:checked + label::before {
  background-image: url("data:image/svg+xml,%3Csvg width='26' height='26' viewBox='1 1 26 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1' y='1' width='26' height='26' rx='8' fill='%23FAFAFC' stroke='%23E6E6F0'/%3E%3Cg clip-path='url(%23clip0_2768_21)'%3E%3Cpath d='M10 17.17L5.83 13L4.41 14.41L10 20L22 8L20.59 6.59L10 17.17Z' fill='%2342D3FF'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_2768_21'%3E%3Crect width='24' height='24' fill='white' transform='translate(1 1)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
}

.checkbox-wrapper input:focus + label::before {
  outline: 2px solid #42d3ff;
}

.wrapper-time {
  display: flex;
  gap: 20px;
}

#event-date {
  width: 100%;
}

footer {
  width: 736px;
  height: 136px;

  background-color: #f0f0f4;

  border-radius: 0 0 8px 8px;
  padding: 40px 65px;

  margin-bottom: 100px;
}

#btn {
  width: 608px;
  height: 56px;
  padding: 15px 40px;
  justify-content: center;
  align-items: center;
  gap: 10px;

  border: none;
  border-radius: 8px;
  background: #04d361;
  color: #ffffff;

  color: #fff;
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;

  cursor: pointer;
}

#btn:hover {
  background-color: #13914b;
}

input:invalid {
  border: 1px solid red;
}
