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

:root {
  --light_white: #fafafa;
  --medium_white: #e5e5e5;
  --header_font: "Work Sans", sans-serif;
  --para_font: "Sarala", sans-serif;
  --grey: #363d4f;
  --shadow_md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

html {
  font-size: 62.5%;
}

body {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: table;
  background-color: #111;
  color: var(--medium_white);
  line-height: 1.6;
  font-family: var(--para_font);
  overflow: hidden;
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  margin: auto;
  width: 90vw;
  display: flex;
  justify-content: space-between;
}

.bg_line {
  position: relative;
  width: 1px;
  height: 100%;
  overflow: hidden;
}

.bg_line::after {
  content: "";
  display: block;
  position: absolute;
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #ffffff 75%,
    #ffffff 100%
  );
  animation: drop 7s 0s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.bg_line:nth-child(1)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #ff4500 75%,
    #ff4500 100%
  );
  animation-delay: 0.5s;
}

.bg_line:nth-child(2)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #32cd32 75%,
    #32cd32 100%
  );
  animation-delay: 1s;
}

.bg_line:nth-child(3)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #1e90ff 75%,
    #1e90ff 100%
  );
  animation-delay: 1.5s;
}

.bg_line:nth-child(4)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #ffd700 75%,
    #ffd700 100%
  );
  animation-delay: 2s;
}

.bg_line:nth-child(5)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #8a2be2 75%,
    #8a2be2 100%
  );
  animation-delay: 2.5s;
}

.bg_line:nth-child(6)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #20b2aa 75%,
    #20b2aa 100%
  );
  animation-delay: 3s;
}

.bg_line:nth-child(7)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #dc143c 75%,
    #dc143c 100%
  );
  animation-delay: 3.5s;
}

.bg_line:nth-child(8)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #00fa9a 75%,
    #00fa9a 100%
  );
  animation-delay: 4s;
}

.bg_line:nth-child(9)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #ff1493 75%,
    #ff1493 100%
  );
  animation-delay: 4.5s;
}

.bg_line:nth-child(10)::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    #00bfff 75%,
    #00bfff 100%
  );
  animation-delay: 5s;
}

@keyframes drop {
  0% {
    top: -50%;
  }
  100% {
    top: 110%;
  }
}

/* LOGO */
.logo {
  position: absolute;
  top: 1rem;
  left: 1%;
}

.logo a {
  text-decoration: none;
  cursor: pointer;
}

.logo a svg {
  width: 20rem;
  height: 5rem;
}

/* MAIN */
main {
  width: 100%;
  height: 80vh;
  margin-top: 7rem;
  background: transparent;
  padding: 2rem;
  display: flex;
  gap: 3rem;
}

.form_video {
  flex-basis: 45%;
  flex-shrink: 0;
  align-self: center;
  box-shadow: var(--shadow_md);
  position: relative;
  box-shadow: rgba(154, 154, 200, 0.25) 0px 5px 10px -5px,
    rgba(0, 0, 0, 0.3) 0px 8px 10px -8px;
}

.form_video::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.6rem;
  border-top-right-radius: 0.6rem;
  border-top-left-radius: 0.6rem;
  background: linear-gradient(135deg, #A8FFF0, #10E6BD);

}

.video_container {
  width: 100%;
  height: clamp(30rem, 25rem, 15rem);
  border-width: 2rem 1.2rem 1.2rem 1.2rem;
  border-style: solid;
  border-color: #1f1a1f;
  border-radius: 0.4rem;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at center, #0ca48d33, #000);
}

.video_container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #10e6bd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transition: opacity 0.3s ease;
  z-index: 5;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.play_btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.1rem 1rem;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.video_container.playing .play_btn {
  opacity: 0;
}

.progress_container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #A8FFF0, #10E6BD);
  width: 0%;
  transition: width 0.1s linear;
  position: relative;
}

.progress_handle {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #10E6BD;
  border: 2px solid white;
  border-radius: 50%;
  cursor: grab;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 0 5px rgba(16, 230, 189, 0.7);
  /* color: rgb(16, 229, 190); */
}

.progress_handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
  background: linear-gradient(135deg, #A8FFF0, #10E6BD, #066D61);
}

.video_container:hover .progress_container {
  opacity: 1;
}

.form_body {
  flex-basis: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 100;
  background: #111;
}

.header h2 {
  font-family: var(--header_font);
  font-size: clamp(5rem, 3.5rem, 2.8rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.header h2 span {
  background: linear-gradient(
    135deg,
    #A8FFF0,
    #4CF3CE,
    #10E6BD,
    #0CA48D,
    #066D61
  );
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: moveGradient 6s ease-in-out infinite;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(16, 230, 189, 0.6),
               0 0 25px rgba(16, 230, 189, 0.4);
}

@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.header p {
  font-size: clamp(1.6rem, 1.4rem, 1.2rem);
  color: var(--medium_white);
}

form {
  width: 100%;
  border: 0.2rem solid #c1bbbb64;
  border-radius: 0.4rem;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.5rem;
   box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
}

form::-webkit-scrollbar {
  display: none;
}

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

.field label {
  font-family: var(--header_font);
  font-size: clamp(1.6rem, 1.4rem, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.1rem;
  cursor: pointer;
}

.field input {
  font-family: var(--para_font);
  font-size: clamp(1.6rem, 1.4rem, 1.2rem);
  padding: 1rem 0.5rem;
  border-radius: 0.3rem;
  border: 0.1rem solid #c1bbbb64;
  color: var(--medium_white);
  background: inherit;
}

.field input::placeholder {
  font-family: var(--para_font);
  font-size: clamp(1.4rem, 1.2rem, 1rem);
  letter-spacing: 0.2rem;
  opacity: 0.6;
}

.field input:focus {
  outline: none;
  border: 0.4rem solid #c1bbbb64;
  transition: border 0.2s ease;
}

.field input[type="number"] {
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field input[type="number"]:focus {
  border: 0;
}

.phone_field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.phone_input_group {
  display: flex;
  align-items: center;
  border: 0.1rem solid #c1bbbb64;
  border-radius: 0.3rem;
  background: inherit;
  overflow: hidden;
}

.phone_input_group .country_code {
  border: .1rem solid #c1bbbb64;
  width: 100%;
}

.phone_input_group select {
  width: 20%;
  font-family: var(--para_font);
  font-size: clamp(1.6rem, 1.4rem, 1.2rem);
  padding: 1rem 0.8rem;
  border: none;
  background: #ffffff1a;
  color: #ddd;
  outline: none;
  cursor: pointer;
}

.phone_input_group input {
  width: calc(100% - 24%);
  flex: 1;
  font-family: var(--para_font);
  font-size: clamp(1.6rem, 1.4rem, 1.2rem);
  padding: 1rem 0.5rem;
  border: none;
  outline: none;
  background: inherit;
  color: var(--medium_white);
}

.phone_input_group input::placeholder {
  font-family: var(--para_font);
  font-size: clamp(1.4rem, 1.2rem, 1rem);
  letter-spacing: 0.2rem;
  opacity: 0.6;
}

.phone_input_group:focus-within {
  border: 0.4rem solid #c1bbbb64;
  transition: border 0.2s ease;
}

.phone_input_group:focus-within input {
  outline: none;
}

.first_form_btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem .5rem;
  font-family: var(--header_font);
  font-size: clamp(1.8rem, 1.6rem, 1.4rem);
  letter-spacing: .4;
  background: linear-gradient(135deg, #A8FFF0, #4CF3CE, #10E6BD, #0CA48D, #066D61);
  border: none;
  transition: background .4s ease, transform .2s ease;
  cursor: pointer;
  position: relative;
  pointer-events: auto;
  opacity: 1;
}

.first_form_btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn_loader {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: .3rem solid transparent;
  border-top: .3rem solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  right: 1.2rem;
  top: 20%;
  transform: translateY(-50%);
  margin-left: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

button:hover {
  background: linear-gradient(135deg, #10E6BD, #0CA48D, #066D61, #044E47);
  transform: translateY(-2px);
}

footer {
  position: relative;
  height: 5.4rem;
  background: inherit;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0 2rem;
  border-top: .1rem solid #c1bbbb64;
  z-index: 10;
}

footer .logo {
  position: relative;
  top: 0;
  left: 0;
}

footer .logo a svg {
  width: 12rem;
  height: 2.5rem;
}

footer .socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--header_font);
  font-size: clamp(1.3rem, 1.2rem, 1rem);
}

footer .socials a {
  text-decoration: none;
  color: var(--medium_white);
  cursor: pointer;
}

footer .socials .email {
  display: flex;
  align-items: center;
}

footer .email i {

  display: inline-block;
  margin: .2rem;
  font-size: 1.2rem;
  color: #fff;
}

footer .socials .copyright {
  color: #45b2a6;
}

/* Form Modal */
.form_modal.hide {
  display: none;
}

.form_modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.9);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proceed_modal.hide {
  display: none;
}

.proceed_modal {
  width: 60vw;
  height: 30rem;
  background: rgba(17, 17, 17, 1);
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.25);
  position: relative;
}

.proceed_modal > i:first-of-type {
  font-size: 4rem;
}

.proceed_modal h4 {
  font-family: var(--header_font);
  font-size: clamp(1.5rem, 1.2rem, 1.1rem);
  text-align: center;
}

.proceed_modal p {
  font-family: var(--para_font);
  font-size: clamp(2.5rem, 2rem, 1.5rem);
  text-align: center;
}

.proceed_modal span {
  display: flex;
  gap: 0;
}

.arrow_slide {
  animation: slideArrows .6s ease-out forwards !important;
}

.arrow_bounce span {
  animation: proceedArrow 1s ease-in-out infinite;
  cursor: pointer;
}

@keyframes slideArrows {
  0% {
    transform: translateX(1rem);
    opacity: 0.9;
  }

  100% {
    transform: translateX(10rem);
    opacity: 0;
  }
}

@keyframes proceedArrow {
  0% { transform: translateY(0); }
  25% { transform: translateY(.25rem); }
  50% { transform: translateY(.45rem); }
  70% { transform: translateY(-.35rem); }
  100% { transform: translateY(0); }
}


.proceed_modal span i {
  display: inline-block;
  font-size: 3rem;
  color: #10e5be;
  animation: proceedArrow 1s ease infinite;
  cursor: pointer;
}

.proceed_modal span i:first-of-type {
  margin-right: -4rem;
}

#close_modal, #close_sec_form {
  display: inline-block;
  font-size: 2.5rem;
  position: absolute;
  top: -2%;
  right: -1.5%;
  cursor: pointer;
}

.secondary_form.hide {
  display: none;
}

.secondary_form {
  width: 45rem;
  height: 55rem;
  background: rgba(17, 17, 17, 1);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.25);
  padding: 1.5rem;
  position: relative;
}

.selection_block {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.question_block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.question_block h5 {
  font-family: var(--header_font);
  font-size: clamp(1.6rem, 1.4rem, 1.2rem);
  font-weight: bold;
  letter-spacing: 0.1rem;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.options label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #e2e2e2;
  padding: 0.5rem 0;
  user-select: none;
  font-family: var(--para_font);
  font-size: clamp(1.4rem, 1.2rem, 1rem);
  cursor: pointer;
}

.option input[type="checkbox"], .option input[type="radio"] {
  display: none;
}

.checkbox {
  width: 1.8rem;
  height: 1.8rem;
  border: 0.2rem solid var(--medium_white);
  border-radius: 50%;
  margin-right: 0.8rem;
  position: relative;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.option input[type="checkbox"]:checked + .checkbox, .option input[type="radio"]:checked + .checkbox {
  background: linear-gradient(135deg, #A8FFF0, #10E6BD);
  border-color: #10E6BD;
}

.selection_block button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem .5rem;
  font-family: var(--header_font);
  font-size: clamp(1.8rem, 1.6rem, 1.4rem);
  letter-spacing: .4;
  background: linear-gradient(135deg, #A8FFF0, #4CF3CE, #10E6BD, #0CA48D, #066D61);
  border: none;
  transition: background .4s ease, transform .2s ease;
  cursor: pointer;
  pointer-events: auto;
  opacity: 1;
  position: relative;
}

.selection_block button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* RESPONSIVENESS */
@media  screen and (max-width: 970px) {
  body {
    height: 100vh;
    overflow-y: auto;
  }

  main {
    flex-direction: column;
    height: 100%;
  }

  .proceed_modal, .secondary_form {
    margin-top: 10rem;
  }

  .proceed_modal {
    width: 85vw;
  }

  .secondary_form {
    width: 70vw;
    height: 70vh;
  }
}

@media screen and (max-width: 600px) {
  .logo {
    left: 4%;
  }
  .logo a svg {
    width: 12rem;
  }

  main {
    width: 100vw;
  }

  .form_body {
    flex-basis: 100%;
  }

  .header h2 {
    font-size: clamp(3rem, 2rem, 1.6rem);
  }

  .header p {
    font-size: clamp(1.4rem, 1.2rem, 1rem);
  }

  .field label, .field input {
    font-size: clamp(1.4rem, 1.2rem, 1rem);
  }

  .field input::placeholder {
    font-size: 1.2rem;
    letter-spacing: .1rem;
  }

  .field input:focus {
    border: .3rem solid #c1bbbb64;
  }

  .question_block h5 {
    font-size: clamp(1.4rem, 1.2rem, 1rem);
  }

  .options label {
    font-size: clamp(1.4rem, 1.2rem, 1rem);
  }

  .checkbox {
    width: 1.5rem;
    height: 1.5rem;
  }

  footer {
    width: 100vw;
    height: 100%;
    font-size: 55%;
    flex-direction: column;
    padding: 1rem .5rem;
  }

  footer .socials {
    flex-direction: column;
  }

  .form_modal {
    padding: 2rem;
  }

  .proceed_modal {
    height: max-content;
  }

  .proceed_modal h4 {
    letter-spacing: .1rem;
  }

  .proceed_modal p {
    font-size: clamp(2rem, 1.5rem, 1.2rem);
  }

  .secondary_form {
    width: 100vw;
  }
}

