main {
  min-height: unset;
}
main::before {
  height: 3546rem;
  top: -2608.26rem;
}
.blurbg-overlay {
  position: absolute;
  background: url("../images/news-blur-bg.webp") top center no-repeat;
  background-size: cover;
  width: 100%;
  height: 725rem;
  top: 550rem;
  left: 0;
  z-index: -1;
}
/* --- Main Header Style --- */

.container {
  display: flex;
  gap: 20rem;
  max-width: 1280rem;
  margin-inline: auto;
  padding-bottom: 20rem;
}

.main-title {
  display: block;
  text-align: center;
  font-size: 28rem;
  color: #ffffff;
  line-height: 44rem;
  margin-block: 55rem 26rem;
}

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

/* --- Layout Grid Wrap --- */
.content-wrapper {
  background: #636b7a14;
  position: relative;
  border-radius: 2rem;
}
.content-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2rem;
  /* border thickness */
  border-radius: inherit;

  background: linear-gradient(180deg, rgba(35, 34, 49, 0.5) 0%, #0e142c 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;
}
.cms-content-wrapper {
  height: 713rem;
  background: #210923b2;
  border-radius: 16rem;
}
.boi-hoan .cms-content-section-wrapper {
  max-width: unset;
  padding: unset;
}
.boi-hoan .cms-content {
  width: 644rem;
  margin: unset;
  height: 681rem;
  margin-block: 16rem;
  margin-right: 3rem;
  padding-inline: 16rem 8rem;
  padding-block: unset;
  background: transparent;
  overflow-y: auto;
  backdrop-filter: unset;
}

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

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

/* --- Right Side Support Card and Form --- */
.support-form-card {
  background: #636b7a14;
  border-radius: 2rem;
  padding: 12rem 13rem;
  height: 710rem;
  width: 614rem;
  position: relative;
  overflow: hidden;
}

.support-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2rem;
  /* border thickness */
  border-radius: inherit;

  background: linear-gradient(180deg, rgba(35, 34, 49, 0.5) 0%, #0e142c 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;
}

.support-form-card-bg {
  position: absolute;
  top: 0;
  background-size: contain;
  left: 0;
  right: 0;
  z-index: -1;
  height: 282rem;
}

.support-form-card h3 {
  color: white;
  text-align: left;
  font-size: 22rem;
  margin-bottom: 12rem;
  line-height: 44rem;
  font-weight: 700;
}

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

.form-group {
  margin-bottom: 36rem;
  position: relative;
}

.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 #070916 inset;
  box-shadow: 0 0 0 1000px #070916 inset;
  background:
    linear-gradient(#070916, #070916) padding-box,
    linear-gradient(91.13deg, #684325 0.18%, rgba(39, 57, 106, 0) 100%)
      border-box;
  border-radius: 2rem;
  /* 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;
  border: 1px solid transparent;
  background:
    linear-gradient(#070916, #070916) padding-box,
    linear-gradient(91.13deg, #684325 0.18%, rgba(39, 57, 106, 0) 100%)
      border-box;
  outline: none;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background:
    linear-gradient(#070916, #070916) padding-box,
    linear-gradient(91.13deg, #684325 0.18%, rgba(39, 57, 106, 0) 100%)
      border-box;
  border-radius: 2rem;
  border: 1rem solid transparent;
  padding: 14rem 28rem;
  color: #ffffff;
  margin: 1rem;
  font-size: 16rem;
  line-height: 20rem;
  transition: all 0.3s ease;
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
  border: 1px solid transparent;
  outline: none;
  background:
    linear-gradient(#070916, #070916) padding-box,
    linear-gradient(91.13deg, #f36c40 0.18%, rgba(39, 57, 106, 0) 100%)
      border-box;
  position: relative;
}

.form-group textarea {
  resize: none;
}

.btn-submit-wrapper {
  display: flex;
  justify-content: center;
}

.btn-submit {
  border-radius: 50rem;
  border: none;
  width: 157rem;
  height: 40rem;
  font-size: 17rem;
  line-height: 20rem;
  font-weight: 500;
  color: white;
  background: linear-gradient(90deg, #ff0000 35.35%, #ffae6c 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  cursor: pointer;
}

/* 
.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) {
  main::before {
    top: 215rem;
  }
  .blurbg-overlay {
    display: none;
  }
  .container {
    margin-top: unset;
    flex-direction: column;
    gap: 0;
  }

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

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

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

  .support-form-card {
    width: 100%;
    height: auto;
  }

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

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

  .support-form-card h3 {
    font-size: 20rem;
    margin-bottom: 9rem;
  }

  .form-desc {
    font-size: 16rem;
    text-align: left;
    margin-bottom: 30rem;
  }
  .content-wrapper {
    backdrop-filter: blur(140px);
  }
  .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 {
    padding: 16rem 12rem;
    width: 100%;
    height: auto;
    margin-top: 0;
  }

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

  .main-header h1 {
    font-size: 22px;
    text-align: center;
  }
  .btn-submit-wrapper {
    margin-top: -20rem;
  }
}
