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

:root {
  --primary: #45464b;
  --secondary: #f7b313;
  --yellow: #ffeb00;
  --orange100: #f9b400;
  --orange200: #f6bf3d;
  --white50: #f3f3f3;
  --white100: #f4f4f4;
  --gray: #d8d8d8;
  --bg-yellow-600: #f6b213;
  --bg-yellow-500: #ffd246;
  --bg-yellow-50: #dbd4c3;
  --bg-gray300: #dddddd;
  --bg-gray100: #efefef;
  --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);
}

/* ========== Button ========== */

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

.btn:hover {
  transform: scale(105%);
}

.btn-secondary {
  background-color: var(--primary);
  color: #fff;
}

/* ========== Introduction ========== */

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

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

.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;
}

.hero-banner {
  position: relative;
}

.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: 355px;
  height: 355px;
  position: absolute;
  top: 20px;
  left: 60px;
}

@media (max-width: 1100px) {
  .introduction > div:nth-child(2) {
    margin-right: 0;
  }
}

@media (max-width: 1150px) {
  .introduction {
    gap: 0;
  }

  .hero-banner > img {
    width: 430px;
    height: 360px;
    margin-top: 124px;
  }

  .hero-banner::before {
    width: 300px;
    height: 300px;
    top: 120px;
    left: 40px;
  }
}

@media (max-width: 720px) {
  .hero-banner {
    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;
  }
}

@media (max-width: 420px) {
  .introduction > div:nth-child(1) {
    margin-left: 5px;
  }
}

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

  .hero-banner::before {
    width: 250px;
    height: 250px;
    top: 125px;
    left: 25px;
  }
}

/* ========== Card  ========== */

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

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

.card-item > span {
  background-color: var(--primary);
  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: 15px;
  color: var(--primary);
  font-weight: 700;
  margin-top: 50px;
}

.max-width-800 {
  max-width: 800px;
}

.font-weight-600 {
  font-weight: 600 !important;
}

.font-size-small {
  font-size: 13px !important;
}

/* ========== Details ========== */

.details {
  min-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  background-color: var(--bg-yellow-600);
  position: relative;
}


.right-detail {
  opacity: 0.5;
  z-index: 2;
  width: 160px;
  height: 300px;
  position: absolute;
  right: 0px;
  bottom: -170px;
  margin-bottom: -50px;
}


.left-detail {
  opacity: 0.5;
  z-index: 2;
  width: 270px;
  height: 370px;
  position: absolute;
  left: 0px;
  bottom: -170px;
  margin-bottom: -50px;
}


.details-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.details-content img {
  z-index: 3;
}


.title {
  font-size: 35px;
  color: var(--primary);
  font-weight: 800;
  text-align: center;
}

.white {
  color: #fff;
}

.end-line {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: end;
  margin-top: -160px;
  margin-right: 50px;
}

.end-line p {
  color: #fff;
  text-align: end;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 60px;
}

.details-description {
  background-color: var(--bg-gray300);
  border-radius: 30px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 25px;
  min-height: 250px;
  min-width: 1000px;
  margin-bottom: 50px;
}

.details-description ul {
  text-align: center;
  font-weight: 700;
}

.details-description p {
  text-align: center;
}

.bg-yellow-600 {
  background-color: var(--bg-yellow-600);
}
.bg-yellow-500 {
  background-color: var(--bg-yellow-500);
}
.bg-yellow-50 {
  background-color: var(--bg-yellow-50);
}
.bg-gray-300 {
  background-color: var(--bg-gray300);
}
.bg-gray-100 {
  background-color: var(--bg-gray100);
}

.bg-white {
  background-color: #fff;
}

@media (max-width: 1030px) {
  .details-description {
    width: 97%;
    min-width: 97%;
    height: auto;
  }
}

@media (max-width: 930px) {
  .details-content > img {
    width: 97%;
    height: auto;
  }
}

/* ========== bottom-page  ========== */

.bottom-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  background-color: #ebebeb;
  padding-top: 50px;
}

.bottom-page > img {
  margin-top: 30px;
}

.bottom-page-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;
}

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

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

@media (max-width: 410px) {
  .bottom-page-button {
    font-size: 30px;
  }
}

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

.bottom-page > div > p {
  color: #000;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 295px) {
  .bottom-page > 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);
}

#insurance-type.placeholder {
  color: #ff3333;
  opacity: 0.95;
}

#insurance-type > 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;
}

.success-message a {
  text-decoration: underline !important;
}

.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
}
