/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Root Variables */
:root {
  --light-gray: #B6B6B6;
  --dark-gray: #737373;
  --black: #2b2b2b;
  --white: #FFFFFF;
  --purple: #7d4e9e;
  --light-purple: #EFEEFF;
}

/* Global Styles */
body {
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  color: var(--black);
  padding: 0;
  margin: 0;
}

.container {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 5rem;
  margin-top: 1px;
}

div {
  transition: 0.3s;
}

a {
  text-decoration: none;
  color: var(--black);
  transition: 0.3s;
}

/* Typography */
h1,
h2,
h3,
h4 {
  margin-block: 0;
  color: var(--purple);
}

h1 {
  font-weight: 600;
  font-size: 2rem;
}

h2 {
  font-weight: 600;
}

h1.title {
  text-align: left !important;
}

.no-margin-top {
  margin-block-start: 0;
}

.text-center {
  text-align: center !important;
}

/* Layout */
.wrapper {
  width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 3rem !important;
  box-sizing: border-box;
}

#pendaftaran .wrapper {
  width: 1440px;
  max-width: 100%;
  border-radius: 4px;
  padding: 4rem 0;
}

#pendaftaran .content {
  width: 1200px;
  max-width: 100%;
}

.wrapper-login {
  display: flex;
  width: 1200px;
  max-width: 100%;
  flex-wrap: wrap;
  border-radius: 4px;
  gap: 8rem;
  box-sizing: border-box;
  padding-top: 6rem;
}

.half-login {
  display: flex;
  flex-direction: column;
  flex: 1 0 380px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.half-login img {
  border-radius: 4px;
  transition: 0.15s;
  box-sizing: border-box;
}

section {
  display: flex;
  flex-direction: row;
  justify-content: center;
  max-width: 100vw;
  box-sizing: border-box;
  margin: 0 5rem;
}

section#pendaftaran {
  padding: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 4px;
}

section.syaratDanKetentuan {
  width: 100vw;
  height: 100vh;
  position: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #ffffffd0;
  z-index: 99999;
  top: 0;
  margin: 0 !important;
}

section.syaratDanKetentuan .wrapper-syarat {
  box-sizing: border-box;
  width: 1000px;
  padding: 3rem;
  max-width: 100%;
  max-height: 100%;
  overflow-x: scroll;
  border-radius: 4px;
  box-shadow: 0 4px 18px #e0e0e0;
  ;
  background-color: white;
  border: 2px solid var(--light-gray);
}

section.syaratDanKetentuan .button {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

section.top-section a, #faq a {
  color: var(--purple);
  font-weight: 600;
}

section img {
  width: 100%;
}

.top {
  align-items: flex-start !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

section .content {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.1;
  }

  100% {
    opacity: 1;
  }
}

.title span {
  animation: blink 1.5s infinite;
  /* Adjust duration as needed */
}

/* Navigation */
nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  background-color: var(--white);
  transition: 0.3s;
  z-index: 9999;
}

nav a:hover {
  color: var(--purple);
}

nav .wrapper {
  justify-content: space-between !important;
  width: 1440px;
  gap: 1rem !important;
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--light-gray);
}

nav .navigation {
  display: flex;
  gap: 1rem;
  z-index: 9999;
}

nav .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

nav .logo img {
  height: 27px;
}

nav.active {
  background-color: var(--light-purple);
  box-shadow: 0 4px 18px #e0e0e0;
}

nav.active .wrapper {
  border: none;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle img {
  width: 24px;
  height: auto;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1.5rem 5rem;
  display: flex;
  justify-content: center;
}

footer .wrapper {
  justify-content: flex-start !important;
  gap: 1rem !important;
}

footer .title-footer h3 {
  margin-block: none;
  color: var(--black);
  font-size: 1.1rem;
  font-weight: 500;
}

footer .title-footer h2 {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--black);
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
  border-radius: 8px;
}

form .field {
  display: flex;
  flex-direction: column;
}

form .field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

form p{
  font-size: 0.9rem;
}

label {
  font-size: 1rem;
  color: var(--purple);
  font-weight: 600;
}

input {
  border: none;
  box-sizing: border-box;
  border-bottom: 2px solid var(--dark-gray) !important;
  padding: 1rem 1rem 0.5rem 1rem;
  font-size: 1.25rem;
}

input:focus {
  outline: none;
  border-bottom: 2px solid var(--purple) !important;
}

/* Buttons */
button,
input.bt {
  background-color: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 4px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  box-sizing: border-box;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}

button {
  max-width: 280px;
}

button:hover,
input.bt:hover {
  background-color: #9263b1;
}

/* Image Arrows */
img.arrow {
  height: 10px;
  width: auto;
}

img.arrow2 {
  height: 12px;
  width: auto;
}

/* FAQ */
#faq .wrapper {
  flex-direction: row;
  gap: 2rem;
  align-items: flex-start;
}

.faq {
  flex: 1 1 300px;
  max-width: 100%;
}

.faq-list {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.faq-content.show {
  max-height: 1000px;
  /* Adjust based on the content size */
  opacity: 1;
}

.arrow {
  transition: 0.3s ease;
}

/* Light Purple Background */
.light-purple {
  background-color: var(--light-purple);
}

@media screen and (max-width: 640px) {
  section.top-section .wrapper-login h1 {
    font-size: 2rem !important;
  }
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .wrapper-login h1 {
    text-align: center !important;
  }

  nav .logo img {
    height: 23px;
  }

  p.tengah {
    text-align: center;
  }

  #faq h2 {
    text-align: center !important;
  }

  .container {
    gap: 4rem;
  }

  #pendaftaran .content {
    padding: 0 2rem !important;
  }

  nav .wrapper {
    padding: 1rem 2rem !important;
  }

  section {
    margin: 0 2rem;
  }

  section .between .half-content {
    flex: 1 1 auto;
  }

  section.top-section .wrapper-login h1 {
    font-size: 2rem;
  }

  footer .logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  footer .title-footer {
    width: 100%;
  }

  footer .title-footer h3 {
    font-size: 0.7rem !important;
    text-align: center;
  }

  footer .title-footer h2 {
    font-size: 1rem !important;
    text-align: center;
  }

  /* .half-login {
    flex: 1 0 400px !important;
  } */

  .menu-toggle {
    display: flex !important;
  }

  .navigation {
    display: none !important;
    flex-direction: column;
    width: 100%;
    background-color: var(--white);
    box-sizing: border-box;
    position: absolute;
    top: 57px;
    padding: 1rem 2rem;
    left: 0;
    z-index: 1;
    box-shadow: 0 7px 10px -5px #e0e0e0;
  }

  .navigation a {
    text-align: right;
  }

  .navigation.active {
    display: flex !important;
    background-color: #f1f1f1;
  }

  .content {
    padding: 0;
  }

  section.syaratDanKetentuan .wrapper-syarat {
    padding: 2rem;
  }

  .half{
    flex-direction: column;
  }
}

@media screen and (max-width: 1280px) and (min-width: 967px) {
  .wrapper-login img {
    padding: 2rem;
  }
}

@media screen and (max-width: 967px) {
  .wrapper-login {
    padding-top: 5.3rem !important;
  }
}

@media screen and (max-height: 616px) {
  .wrapper-login {
    padding-top: 6rem !important;
  }
}

@media screen and (max-width: 1280px) {
  .faq {
    padding: 0;
  }

  .wrapper-login {
    padding-top: 5rem;
    gap: 4rem !important;
  }

  section.top-section {
    overflow: visible;
    padding: 0;
  }
  
  .half-login {
    max-width: 100%;
  }

  #pendaftaran .content {
    padding: 0 5rem;
  }


  nav .wrapper {
    padding: 1rem 5rem;
  }
}

@media screen and (max-width: 1440px) {
  #pendaftaran {
    background-color: var(--light-purple);
  }
}

@media screen and (max-width: 967px) {
  .line {
    display: block;
  }
}


/* LOADER */

.load {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  margin: 0;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: white;
  color: var(--purple);
  z-index: 999999999;
  opacity: 1; /* Initial opacity */
  transition: opacity 0.5s ease; /* Smooth transition */
}

.load.hidden {
  opacity: 0; /* Fade out effect */
  pointer-events: none; /* Disable interactions */
}

.loader {
  width: 65px;
  aspect-ratio: 1;
  position: relative;
  z-index: 9999999999;
}

.loader:before,
.loader:after {
  content: "";
  border: 3px solid var(--purple);
  position: absolute;
  border-radius: 50px;
  box-shadow: 0 0 0 3px inset var(--primary);
  animation: l5 2.5s infinite;
}

.loader:after {
  animation-delay: -1.25s;
  border-radius: 0;
}

@keyframes l5 {
  0%    { inset: 0    35px 35px 0; }
  12.5% { inset: 0    35px 0    0; }
  25%   { inset: 35px 35px 0    0; }
  37.5% { inset: 35px 0    0    0; }
  50%   { inset: 35px 0    0    35px; }
  62.5% { inset: 0    0    0    35px; }
  75%   { inset: 0    0    35px 35px; }
  87.5% { inset: 0    0    35px 0; }
  100%  { inset: 0    35px 35px 0; }
}

.scroll-up {
  background-color: #7d4e9e;
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 0 7px 0 #c7c7c7;
  transition: 0.3s;
}

.scroll-up img {
  transform: rotate(180deg);
  width: 25px;
}