/* ========== Global ========== */

:root {
  --primary: #45464b;
  --secondary: #f7b313;
  --yellow: #ffeb00;
  --orange100: #f9b400;
  --orange200: #f6bf3d;
  --white100: #f4f4f4;
  --gray: #d8d8d8;
  --bg-input: #45464c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito", sans-serif;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f7f7f7;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ========== Header ========== */

header {
  width: 100%;
  background-color: var(--primary);
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--secondary);
}

/* ========== Introduction ========== */
.introduction {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--yellow);
  min-height: 485px;
  max-height: 485px;
  gap: 0;
  background-color: var(--white100);
}

.introduction > div:nth-child(2) {
  line-height: 0;
}

.introduction > div:nth-child(1) {
  margin-right: -100px;
}

.introduction::before {
  content: "";
  background-image: url("../assets/ball-connect.png");
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  background-size: cover;
  background-position: 100%;
  width: 45%;
  height: 300px;
  position: absolute;
  top: 0px;
  left: 0px;
}

.introduction > div {
  padding: 5px;
  z-index: 1;
}

.introduction > div > h1 {
  font-weight: 700;
  font-size: clamp(35px, 4.5vw, 50px);
  line-height: 50px;
  margin-bottom: 20px;
}

.introduction > div > h1,
.introduction,
p {
  color: var(--primary);
}

.introduction p {
  margin-top: 10px;
  font-size: clamp(16px, 2vw, 21px);
}

.introduction p:nth-child(3) {
  margin-top: 10px;
  font-size: clamp(16px, 2vw, 16px);
}

.introduction p span {
  background-color: var(--orange100);
  border-radius: 12px;
  padding: 0 7px;
}

.introduction-button {
  background-color: var(--yellow);
  border-radius: 35px;
  width: fit-content;
  padding: 9px 25px;
  font-size: 30px;
  color: var(--primary);
  border: 0;
  margin: 0 auto;
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s linear;
}

.introduction-button:hover {
  transform: scale(105%);
}

.hero-banner {
  position: relative;
  margin-top: 70px;
}

.hero-banner::before {
  content: "";
  background-image: url("../assets/connect-symbol-banner.png");
  background-repeat: no-repeat;
  z-index: -10;
  background-size: cover;
  background-position: 100%;
  width: 320px;
  height: 320px;
  position: absolute;
  top: 0px;
  left: 134px;
}

@media (max-width: 930px) {
  .hero-banner {
    margin-top: 139px;
  }

  .hero-banner > img {
    width: 500px;
    height: 345px;
  }

  .hero-banner::before {
    width: 260px;
    height: 260px;
    top: 0px;
    left: 115px;
  }
}

@media (max-width: 800px) {
  .hero-banner {
    margin-top: 209px;
  }

  .introduction > div:nth-child(1) {
    margin-right: -80px;
  }

  .hero-banner > img {
    width: 400px;
    height: 275px;
  }

  .hero-banner::before {
    width: 230px;
    height: 230px;
    top: 0px;
    left: 90px;
  }
}

@media (max-width: 720px) {
  .hero-banner {
    margin-top: 40px;
    margin-bottom: -5px;
  }

  .introduction {
    flex-direction: column;
    min-height: fit-content;
    max-height: fit-content;
    gap: 0;
  }

  .introduction > div:nth-child(1) {
    margin-right: 0;
  }

  .introduction > div > h1 {
    margin-top: 50px;
  }

  .introduction-button {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  .introduction,
  p {
    margin-top: 0;
  }

  .introduction > div:nth-child(1) {
    margin-left: 5px;
  }

  .introduction-sub {
    width: fit-content;
  }

  .introduction-sub > p {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .hero-banner > img {
    width: 300px;
    height: 245px;

  }

  .hero-banner::before {
    width: 150px;
    height: 150px;
    top: -20px;
    left: 50px;
  }
}

/* ========== why-finance ========== */

.why-finance {
  background-color: var(--gray);
  min-height: 550px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 100px;
  border-top: 2px solid var(--yellow);
}

.why-finance > div {
  position: relative;
}

.why-finance > div > h2 {
  font-weight: 800;
  font-size: 35px;
  text-align: center;
  color: var(--primary);
  margin-bottom: 80px;
}

.card-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  gap: 30px;
  margin-bottom: 80px;
  padding: 5px;
}

.card-item {
  width: 160px;
  height: 180px;
  background-color: var(--white100);
  border-radius: 20px;
  padding: 20px 15px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.card-item > span {
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  position: absolute;
  top: -40px;
  left: 35px;
}

.card-item > p {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  margin-top: 20px;
}

.card-item:nth-child(3) > p {
  margin-top: 40px;
  font-size: 12px;
}

.second-button {
  background-color: var(--yellow);
  border-radius: 35px;
  width: fit-content;
  padding: 9px 25px;
  font-size: 33px;
  color: var(--primary);
  border: 0;
  margin: 0 auto;
  position: absolute;
  bottom: -30px;
  left: 0;
  right: 0;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s linear;
}

.second-button:hover {
  transform: scale(105%);
}

@media (max-width: 500px) {
  .second-button {
    width: fit-content;
  }
}

@media (max-width: 460px) {
  .second-button {
    font-size: 24px;
    padding: 8px 15px;
  }
}

/* ========== Benefits ========== */

.benefits {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 70px;
  min-height: 600px;
  position: relative;
  border-bottom: 4px solid var(--primary);
  gap: 100px;
}

.benefits::before {
  content: "";
  background-image: url("../assets/ball-connect.png");
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0.5;
  background-size: cover;
  background-position: 100%;
  width: 47%;
  height: 350px;
  position: absolute;
  top: 30%;
  left: 0px;
  z-index: 0;
}

.benefits-left {
  position: relative;
  height: 480px;
}

.benefits-left > span::before {
  content: "";
  background-image: url("../assets/connect-symbol.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 100%;
  width: 320px;
  height: 320px;
  position: absolute;
  top: 110px;
  left: 55px;
  z-index: -1;
}

.benefits-left > span > img {
  margin-top: 8px;
  z-index: 2;
}

.benefits-right {
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefits-right > h2 {
  font-weight: 800;
  font-size: 40px;
  text-align: left;
  margin-left: 10px;
  margin-bottom: 10px;
  color: var(--primary);
}

.benefits-label-container {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.benefits-label-container > p {
  background-color: var(--primary);
  border-radius: 50px;
  color: #fff;
  padding: 0px 20px;
  font-size: 16px;
  width: fit-content;
  display: flex;
  align-items: center;
  height: 55px;
  font-weight: 700;
  word-break: break-word;
  min-width: 410px;
}

@media (max-width: 1180px) {
  .benefits-left {
    margin-left: 0;
  }
}

@media (max-width: 1000px) {
  .benefits {
    gap: 30px;
  }
}

@media (max-width: 910px) {
  .benefits {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }

  .benefits::before {
    width: 90%;
    height: 350px;
    top: 60%;
    left: 0px;
  }
  .benefits-left {
    height: fit-content;
  }

  .benefits-left > span > img {
    margin-bottom: -4px;
    line-height: 0;
  }

  .benefits-left {
    line-height: 0;
  }
}

@media (max-width: 510px) {
  .benefits-label-container > p {
    width: 85%;
    margin: 0 auto;
    min-width: 85%;
    height: fit-content;
    padding: 15px;
    font-size: 14px;
    border-radius: 40px;
  }
}

@media (max-width: 500px) {
  .benefits-left > span > img {
    width: 340px;
    height: 450px;
  }

  .benefits-left > span::before {
    width: 260px;
    height: 260px;
    top: 100px;
    left: 50px;
  }
}

@media (max-width: 360px) {
  .benefits-left {
    height: 400px;
  }

  .benefits-left > span > img {
    width: 280px;
    height: 390px;
  }

  .benefits-left > span::before {
    width: 230px;
    height: 230px;
    top: 80px;
    left: 40px;
  }
}

/* ========== I Want to hire ========== */

.want-to-hire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  background-color: #ebebeb;
}

.want-to-hire > img {
  margin-top: 30px;
}

.want-to-hire-button {
  background-color: var(--secondary);
  border-radius: 35px;
  width: fit-content;
  padding: 5px 60px;
  font-size: 33px;
  color: var(--primary);
  border: 0;
  margin: 0 auto;
  margin-top: -30px;
  font-weight: 700;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.2s linear;
}

.want-to-hire-button:hover {
  transform: scale(105%);
}

@media (max-width: 500px) {
  .want-to-hire-button {
    width: fit-content;
  }
}

@media (max-width: 410px) {
  .want-to-hire-button {
    font-size: 30px;
  }
}

.want-to-hire > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 40px;
  padding: 0 15px;
}

.want-to-hire > div > p {
  color: #000;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 295px) {
  .want-to-hire > img {
    width: 200px;
  }
}

/* ========== Form ========== */

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form > input {
  width: 90%;
  margin: 0 auto;
  padding: 10px;
  border: 0;
  background-color: var(--bg-input);
  color: #fff;
}

.form input::placeholder {
  color: #f4f4f4;
}

.terms-of-use-checkbox-container > label {
  color: var(--primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terms-of-use-checkbox-container > strong {
  pointer-events: none;
}

.terms-of-use-checkbox-container {
  text-align: center;
  line-height: 13px;
  min-height: 27px;
}

.terms-of-use {
  cursor: pointer;
}

#terms-error {
  font-size: 13px;
  color: #ff3333;
  opacity: 0.95;
  min-height: 18px;
  height: 18px;
}

.form > button {
  margin-top: 5px;
  background-color: #fff;
  max-width: inherit;
  width: 200px;
  font-size: 17px;
  font-weight: bold;
  height: 36px;
  border: 0;
  border-radius: 20px;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.2s linear;
}

.form > button:hover {
  opacity: 0.8;
}

.placeholder::placeholder {
  color: #ff3333 !important;
  opacity: 0.95;
}

.form > select {
  width: 90%;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--bg-input);
  background-color: var(--bg-input);
  color: #fff;
  cursor: pointer;
  appearance: none;
}

.form select option {
  color: #f4f4f4;
  background-color: var(--bg-input);
}

#vehicle-in-mind.placeholder,
#what-vehicle.placeholder {
  color: #ff3333;
  opacity: 0.95;
}

#vehicle-in-mind.placeholder > option,
#what-vehicle.placeholder > option {
  color: #fff;
}

.connect-form {
  background-color: var(--secondary) !important;
}

.connect-form > div > span {
  background-color: transparent !important;
}


/* ========== Loading ==========*/

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--primary);
  border-bottom-color: transparent;
  border-radius: 50%;
  margin: -4px 0;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.spinner.hidden {
  display: none;
}

@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========== Footer ========== */

footer {
  width: 100%;
  background-color: var(--primary);
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: auto;
}

footer > p {
  color: var(--orange100);
  font-size: 13px;
}

/* ========== SweetAlert2 ========== */

.swal2-styled.swal2-confirm {
  background-color: var(--orange100) !important;
  color: var(--primary) !important;
  font-weight: bold;
}

.success-message > p {
  font-size: 15px;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}

.swal2-popup {
  background: var(--secondary) !important;
}

.swal2-success-circular-line-left {
  background-color: transparent !important;
}

.swal2-success-circular-line-right {
  background-color: transparent !important;
}

.swal2-success-fix {
  background-color: transparent !important;
}

.swal2-styled.swal2-confirm {
  background-color: #fff !important
}
