/* =====================================
   1. BASE / BODY
===================================== */

body {
  position: relative;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;

  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url(./assets/background.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  color: #fff;
}


/* =====================================
   2. TYPOGRAPHY
===================================== */

.title,
.subtitle,
.form-title {
  font-family: "Krikikrak Tape";
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  line-height: 100%;
}

.title {
  font-size: 9.173rem;
  color: white;
  text-align: center;
  margin: 0;
}

.title .title-art {
  font-family: "Godya Display Balinese";
  font-size: 15.257rem;
  font-weight: 400;
  display: inline-block;
  margin-bottom: -5rem;
}

.subtitle {
  font-size: 3rem;
}

.form-title {
  font-size: 2.25rem;
  line-height: 4.8rem;
}


/* =====================================
   3. LAYOUT
===================================== */

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4.25rem;
}

form {
  width: 17.5rem;
  position: relative;
}

.form-group {
  margin-bottom: 0.75rem;
}

#message {
  position: absolute;
  width: 100%;
}

.contacts {
  position: absolute;
  bottom: 2.375rem;
  right: 2.8125rem;
  display: flex;
  gap: 0.625rem;
}


/* =====================================
   4. INPUTS
===================================== */

input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  padding: 0.625rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  line-height: normal;
  color: rgba(255, 255, 255, 0.60);
}


/* =====================================
   5. CHECKBOX
===================================== */

.checkbox-wrapper,
input,
button,
.message,
.error {
  font-family: "Poppins";
  font-size: 0.875rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.5rem;
}

.checkbox-wrapper input {
  display: none;
}

.custom-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 10px;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
}

.custom-checkbox::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.1s ease-out;
}

.checkbox-wrapper input:checked+.custom-checkbox::after {
  transform: rotate(45deg) scale(1);
}


/* =====================================
   6. BUTTON
===================================== */

button.button {
  width: 100%;
  padding: 0.625rem;
  border: none;
  border-radius: 0.875rem;
  background: #967CFF;
  cursor: pointer;
  color: #fff;
  margin-top: 0.25rem;
  transition: all 300ms ease-out;
}

.button:hover {
  transform: scale(1.1);
}

.button:active {
  transform: scale(0.95) rotate(3deg);
}


/* =====================================
   7. MESSAGES
===================================== */

.message {
  margin-top: 10px;
  font-size: 14px;
}

.error {
  color: red;
}

.success {
  color: green;
}


/* =====================================
   8. CONTACT BUTTONS
===================================== */

.email-link,
.telegram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: #967CFF;
  transition: background 0.2s ease;
}


/* =====================================
   9. MOBILE OPTIMIZATION
===================================== */

/* Mobil, Tablet */
@media (max-width: 1024px) {
  body {
    padding: 1.5rem;
    height: auto;
    min-height: 100vh;
  }

  .title {
    font-size: 4.3125rem;
  }

  .title .title-art {
    font-size: 8.125rem;
    margin-bottom: -2rem;
  }

  .subtitle {
    font-size: 1.625rem;
  }

  .form-title {
    font-size: 1.8125rem;
  }

  .contacts {
    bottom: 1.5rem;
    right: 1.5rem;
  }


  .form-container {
    margin-top: 2.5rem;
  }

  .contacts {
    position: static;
    margin-top: 4.125rem;
    justify-content: center;
  }
}


/* Small phones */
@media (max-width: 480px) {

  .title {
    font-size: 3rem;
  }

  .title .title-art {
    font-size: 5rem;
    margin-bottom: -1.5rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  .form-title {
    line-height: normal;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: center;
  }


  form {
    width: 100%;
  }
}