main {
  min-height: unset;
}

/* --- Main Header Style --- */
.container {
  margin-top: 45rem;
}

.main-title {
  display: block;
  font-size: 32rem;
  color: #ffffff;
  line-height: 44rem;
  margin-block: 6rem 18rem;
}

.main-title.desktop {
  display: block;
}

.main-title.mobile {
  display: none;
}

.gradient-text {
  color: transparent;
  display: inline-block;
  background: linear-gradient(90deg, #946ae8 0%, #cab7ee 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Layout Grid Wrap --- */
.content-wrapper {
  display: flex;
  gap: 7rem;
}

.content-left {
  width: 689rem;
  display: flex;
  flex-direction: column;
}

.cms-content-wrapper {
  width: 1280rem;
  height: 713rem;
  background: #210923b2;
  border-radius: 16rem;
}
.boi-hoan .cms-content-section-wrapper {
  width: 1280rem;
  max-width: unset;
  padding: unset;
}
.boi-hoan .cms-content-section {
  width: 689rem;
  margin: unset;
  height: 681rem;
  margin-block: 16rem;
  padding-inline: 21rem 14rem;
  padding-block: unset;
  background: transparent;
}

.boi-hoan .cms-content-section .content-img {
  width: 100%;
}

.boi-hoan .cms-content-section .content-img:first-of-type {
  margin-top: 0;
}

.boi-hoan .cms-content-section::-webkit-scrollbar-thumb {
  background: linear-gradient(178.12deg, #3e1273 1.59%, #e72887 89.35%);
  border-radius: 1000px !important;
}
.boi-hoan .cms-content-section::-webkit-scrollbar-track {
  background: #d9d9d91a;
  /* Optional: Round the track edges too */
  border-radius: 1000px !important;
}
.content-right {
  flex: 0.8;
}

/* --- Left Section Elements --- */

/* --- Right Side Support Card and Form --- */
.support-form-card {
  background: #3900554d;
  border-radius: 16rem;
  padding: 20rem;
  height: 760rem;
  width: 561rem;
  box-shadow: -5px 0px 20px 0px #ff23ab26;
  backdrop-filter: blur(37px);
  position: relative;
  overflow: hidden;
}

.support-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1rem;
  /* border thickness */
  border-radius: inherit;
  background: linear-gradient(90deg, #e838e5 -1.12%, #fae4b1 100.84%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.support-form-card-bg {
  position: absolute;
  top: 0;
  background: url(../images/content-box-bg.webp) top center no-repeat;
  background-size: contain;
  left: 0;
  right: 0;
  z-index: -1;
  height: 282rem;
}

.support-form-card h3 {
  color: #fecb45;
  text-align: center;
  font-size: 20rem;
  margin-bottom: 12rem;
  line-height: 44rem;
}

.form-desc {
  font-size: 16rem;
  line-height: 22rem;
  color: #ddd8cd;
  text-align: justify;
  margin-bottom: 41rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 16rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 18rem;
  line-height: 22rem;
}

/* autofill */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group textarea:-webkit-autofill,
.form-group textarea:-webkit-autofill:hover {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #2f1846 inset;
  box-shadow: 0 0 0 1000px #2f1846 inset;
  border: 1px solid #3d255780;
  border-radius: 10rem;
  transition: background-color 9999s ease-in-out 0s;
}

/* autofill + focus */
.form-group input:-webkit-autofill:focus,
.form-group textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #2f1846 inset;
  box-shadow: 0 0 0 1000px #2f1846 inset;
  border: 1px solid transparent;
  background:
    linear-gradient(#2f1846, #2f1846) padding-box,
    linear-gradient(90deg, #fae4b1 -1.12%, #e838e5 100.84%) border-box;
  outline: none;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: #2f184666;
  border: 1px solid #3d255780;
  border-radius: 10rem;
  padding: 14rem 28rem;
  color: #ffffff;
  font-size: 16rem;
  line-height: 20rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border: 1px solid transparent;
  outline: none;
  background:
    linear-gradient(#2f1846, #2f1846) padding-box,
    linear-gradient(90deg, #fae4b1 -1.12%, #e838e5 100.84%) border-box;
  position: relative;
}


.btn-submit-wrapper {
  display: flex;
  margin-top: 10px;
  justify-content: center;
}

.btn-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  color: #ffffff;
  font-size: 17rem;
  font-weight: 500;
  line-height: 20rem;
  background: url('../images/btn-submit.webp') top center no-repeat;
  background-size: cover;
  height: 48rem;
  border: none;
  width: 157rem;
  /* border-radius: 50rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  position: relative;
  box-shadow: 0px 4px 4px 0px #0000004d;
  background: linear-gradient(178.12deg, #E72861 1.59%, #200030 89.35%);
  padding: 14rem 20rem; */
}

/* 
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  border-radius: inherit;
  background: linear-gradient(180deg, #ff0044 0%, #220043 100%);

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
} */
.btn-submit img {
  width: 24rem;
  height: 24rem;
}


.btn-submit:hover {
  opacity: 0.9;
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-spinner {
  width: 20rem;
  height: 20rem;
  animation: btn-spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Toastify overrides: convert internal px to rem ─────────────────────── */
.toastify {
  font-size: 16rem;
  padding: 12rem 16rem;
  border-radius: 6rem;
  min-width: 280rem;
  max-width: 420rem;
  border-radius: 20rem;
  text-align: center;
}

.toastify .toastify-close {
  width: 24rem;
  height: 24rem;
  padding: 4rem;
}

/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
  .container {
    margin-top: unset;
  }

  .main-title {
    font-size: 20rem;
    line-height: 1.4;
    margin-block: 38rem 23rem;
    padding-inline: 12rem;
  }

  .main-title.desktop {
    display: none;
  }

  .main-title.mobile {
    display: block;
  }

  .content-wrapper {
    flex-direction: column;
    gap: 0rem;
  }

  .content-right {
    padding-inline: 12rem;
    order: -1;
  }

  .content-left,
  .content-right {
    flex: none;
    width: 100%;
  }

  .support-form-card {
    background: #3900554d;
    width: 100%;
    height: auto;
  }

  .support-form-card::before {
    content: unset;
  }

  .support-form-card-bg {
    display: none;
  }

  .support-form-card h3 {
    font-size: 18rem;
  }

  .form-desc {
    font-size: 15rem;
    text-align: center;
    margin-bottom: 31rem;
  }

  .cms-content-wrapper {
    width: 100%;
    height: auto;
    background: #170513;
    margin-top: 16rem;
  }
  .boi-hoan .cms-content-section-wrapper {
    max-width: 1277rem;
    width: 100%;
    margin-top: 16rem;
  }
  .boi-hoan .cms-content-section {
    padding: 12rem;
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .boi-hoan .cms-content-section .content-img:first-of-type {
    margin-top: 0;
  }

  .main-header h1 {
    font-size: 22px;
    text-align: center;
  }
}
