:root {
  --brand: #ca1d23;
  --brand-deep: #b70d15;
  --dark: #252525;
  --text: #111;
  --muted: #454545;
  --cream: #fff5dc;
  --blush: #fff2f2;
  --blush-footer: #fee8e7;
  --border: #ececec;
  --radius-lg: 38px;
  --radius-md: 18px;
  --container: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dark);
  font-family: Roboto, "Noto Sans SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.landing-container {
  width: min(calc(100% - 112px), var(--container));
  margin-inline: auto;
}
.section-space { padding: 64px 0; }

/* Header and hero */
.site-header {
  height: 100px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
}.header-row {
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand img { width: 174px; height: auto; }
.header-enquire {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--brand);
  color: #fff;
  padding: 12px 24px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 13px;
  transition: background .2s ease;
}
.header-enquire:hover { background: var(--brand-deep); color: #fff; }

/* Full-width hero banner */
.hero.landing-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.hero {
  height: clamp(420px, 41.6vw, 532px);
  border-radius: 0 0 34px 34px;
  position: relative;
  overflow: hidden;
}
.hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 54%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.56) 0%, rgba(0,0,0,.22) 54%, rgba(0,0,0,.08) 100%);
}
.hero-content {
  position: absolute;
  left: 56px;
  bottom: 44px;
  color: #fff;
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(36px, 3.2vw, 56px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero h1 span { display: block; }
.hero .eligibility {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 5px;
  background: var(--brand);
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}
.hero .eligibility i { font-size: 20px; }

/* Shared type */
.section-title h2,
.section-title h3 {
  text-transform: uppercase;
  color: var(--dark);
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  font-size: clamp(27px, 2.15vw, 36px);
}
.section-title h3 { margin-top: 14px; }
.left-title {
  margin: 0 0 42px;
  color: var(--dark);
  font-size: clamp(27px, 2.08vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
}
.left-title span { margin-left: 10px; }

/* Scholarships */
.scholarship-section { padding-top: 72px; }
.trust-panel {
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: 46px 40px 40px;
}
.trust-copy {
  margin: 44px 0 28px;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
}
.trust-copy p { margin: 0 0 14px; }
.waiver-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 22px 27px;
  border-radius: 24px;
  background: #fff;
}
.waiver-card img { width: 124px; flex: 0 0 124px; }
.waiver-card h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.5;
  margin: 0 0 10px;
}
.waiver-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 3px 0;
}
.sub-heading {
  margin: 68px 0 43px;
  text-transform: uppercase;
}
.sub-heading h2, .sub-heading p {
  margin: 0;
  font-size: clamp(27px, 2.1vw, 36px);
  font-weight: 700;
  line-height: 1.3;
}
.sub-heading p { margin-top: 12px; }
.scholarship-card {
  position: relative;
  min-height: 306px;
  border: 1px solid #e6e6e6;
  border-top: 5px solid var(--brand);
  border-radius: 13px;
  padding: 30px 19px 19px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.scholarship-card h3 {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 18px;
}
.scholarship-card .excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.read-more {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  display: inline-flex;
  gap: 22px;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  width: fit-content;
}
.read-more:hover { text-decoration: underline; }

/* Video rows */
.video-section { background: var(--blush); padding-top: 62px; padding-bottom: 70px; }
.highlights-title { margin-top: 55px; }
.video-card {
  display: block;
  padding: 0;
  border: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 13px;
  background: #222;
  position: relative;
  aspect-ratio: 16 / 9;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 67px;
  height: 48px;
  border-radius: 13px;
  background: #ff0033;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform .18s ease;
}
.video-play i { font-size: 34px; line-height: 1; margin-left: 3px; }
.video-card:hover .video-play,
.feature-video:hover .video-play { transform: translate(-50%, -50%) scale(1.06); }

/* Programmes slider */
.programmes-section { overflow: hidden; padding-top: 68px; padding-bottom: 74px; }
.programmes-section > .landing-container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
.programme-header {
  width: min(calc(100% - 112px), var(--container));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 42px;
}
.slider-controls { display: flex; gap: 12px; }
.slider-controls button {
  width: 50px;
  height: 50px;
  background: #fff;
  border: 1px solid #cecece;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dark);
  font-size: 22px;
}
.slider-controls button:hover { border-color: var(--brand); color: var(--brand); }
.programme-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 0 0 5px 0;
  margin: 0;
  scrollbar-width: none;
}
.programme-track::-webkit-scrollbar { display: none; }
.programme-card {
  flex: 0 0 clamp(340px, 28vw, 410px);
  height: 260px;
  border: 0;
  padding: 0;
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  text-align: left;
  scroll-snap-align: start;
  background: #111;
  cursor: pointer;
}
.programme-card img { width: 100%; height: 100%; object-fit: cover; }
.programme-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,.78), rgba(0,0,0,0));
}
.programme-card span {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 17px;
  right: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

/* CTA */
.future-cta {
  position: relative;
  overflow: hidden;
  background: #c9141d;
  border-radius: 0 0 29px 29px;
  padding: 58px 0;
  color: #fff;
}

.cta-pattern {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

/* kiri guna Vector.png */
.cta-pattern-left {
  width: 443px;
  height: 328px;
  left: -90px;
  top: -35px;
  background-image: url("../images/Vector.png");
}

/* kanan guna VectorR.png */
.cta-pattern-right {
  width: 390px;
  height: 360px;
  right: -60px;
  bottom: -75px;
  background-image: url("../images/VectorR.png");
}

.cta-content {
  position: relative;
  z-index: 1;
}

.future-cta h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 2.2vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
}
.future-cta h2 span { display: block; }
.future-cta p { margin: 3px 0; font-weight: 300; font-size: 16px; line-height: 1.5; }
.outline-button {
  display: inline-flex;
  height: 48px;
  margin-top: 30px;
  padding: 0 25px;
  justify-content: center;
  align-items: center;
  border: 1px solid #fff;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.outline-button:hover { color: var(--brand); background: #fff; }

@media (max-width: 767.98px) {
  .cta-pattern {
    opacity: 0.25;
  }

  .cta-pattern-left {
    width: 280px;
    height: 210px;
    left: -150px;
    top: -25px;
  }

  .cta-pattern-right {
    width: 260px;
    height: 240px;
    right: -130px;
    bottom: -55px;
  }
}
/* Why UCSI */
.benefit-section { padding-top: 70px; padding-bottom: 70px; }
.benefit-heading { margin-bottom: 56px; }
.benefit-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  margin-bottom: 27px;
}
.benefit-item:last-child { margin-bottom: 0; }
.benefit-item img { width: 48px; height: 48px; border-radius: 14px; }
.benefit-item h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 1px 0 8px;
  line-height: 1.35;
}
.benefit-item p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 7px;
}
.feature-video {
  aspect-ratio: 1.72;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #222;
  position: relative;
}
.feature-video img { width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.contact-section {
  background: var(--blush-footer);
  border-radius: 38px 38px 0 0;
  padding: 70px 0 22px;
}
.contact-body { padding: 0 20px; }
.contact-section h2 {
  font-size: clamp(28px, 2.15vw, 36px);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 35px;
}
.contact-section h2 span { margin-left: 10px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 19px;
  border-bottom: 1px solid #efcecd;
  padding: 0 0 20px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.5;
}
.contact-line img { width: 26px; height: 26px; object-fit: contain; }
.contact-line.address { align-items: flex-start; border-bottom: 0; margin-bottom: 9px; }
.map-buttons { display: flex; gap: 17px; }
.map-buttons a {
  height: 45px;
  min-width: 145px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #252525;
  font-weight: 500;
}
.map-buttons img { height: 20px; width: 20px; object-fit: contain; }
.map-frame {
  width: 100%;
  height: 360px;
  border: 4px solid #fff;
  border-radius: 13px;
}
.copyright {
  margin: 55px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

/* Modals */
.custom-modal .modal-dialog { max-width: 1160px; }
.custom-modal .modal-content {
  position: relative;
  border: 0;
  border-radius: 28px;
  padding: 47px 42px 42px;
}
.modal-close {
  position: absolute;
  top: 29px;
  right: 30px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #111;
  z-index: 2;
}
.modal-header-title {
  text-align: center;
  padding: 0 45px;
  margin-bottom: 42px;
}
.modal-header-title h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 2.15vw, 36px);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.35;
}
.modal-header-title h3 {
  margin: 0;
  font-size: clamp(25px, 2.15vw, 36px);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.35;
}
.modal-detail-box {
  background: #fff1f1;
  border-radius: 15px;
  padding: 28px 29px;
  font-size: 16px;
  color: #111;
  line-height: 1.55;
}
.modal-detail-box p { margin: 0 0 14px; }
.modal-detail-box p:last-child { margin-bottom: 0; }
.modal-detail-box strong {
  display: block;
  margin-bottom: 9px;
}
.modal-detail-box ul { margin: 0 0 20px; padding-left: 24px; }
.modal-detail-box li { margin-bottom: 7px; padding-left: 3px; }
.sports-table {
  margin: 16px 0 13px;
  width: min(100%, 700px);
  border-collapse: collapse;
}
.sports-table td { border-bottom: 1px solid #dadada; padding: 8px 15px; }
.sports-table td:first-child { width: 38%; background: #d11d25; color: #fff; }
.programme-modal-title { text-align: left; margin-bottom: 28px; }
.programme-modal-title h2, .programme-modal-title h3 { text-align: left; }
.programme-intro { margin-bottom: 24px !important; }
.programme-level h4 {
  color: var(--brand);
  font-weight: 700;
  font-size: 17px;
  margin: 20px 0 9px;
}
.programme-level ul { margin-bottom: 0; }
.video-modal .modal-content { border: 0; border-radius: 17px; overflow: hidden; background: #000; }
.video-close { color: #fff; top: 13px; right: 14px; text-shadow: 0 0 3px #000; }


/* Programme modal card layout */
.programme-modal .modal-content {
  background: #fff;
  padding: 6px 38px 44px;
}
.programme-modal .modal-header-title { display: none; }
.programme-modal-body {
  background: transparent;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}
.programme-popup-title {
  max-width: 1040px;
  margin: 18px auto 48px;
  text-align: center;
}
.programme-popup-title h2 {
  margin: 0 0 8px;
  color: var(--dark);
  font-size: clamp(29px, 2.1vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}
.programme-popup-title h3 {
  margin: 0 0 20px;
  color: var(--dark);
  font-size: clamp(29px, 2.1vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.programme-popup-title p {
  margin: 0 auto 12px;
  max-width: 1040px;
  color: #000;
  font-size: 16px;
  line-height: 1.55;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.course-card {
  min-height: 158px;
  background: #fff2f2;
  border-radius: 13px;
  padding: 27px 30px;
}
.course-card h4 {
  color: #d11d25;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 12px;
}
.course-card ul {
  margin: 0;
  padding-left: 24px;
}
.course-card li {
  margin-bottom: 4px;
}
.course-card li:last-child { margin-bottom: 0; }
.course-card.full-span { grid-column: span 2; min-height: 0; }

/* Responsive */
@media (max-width: 1199.98px) {
  .landing-container { width: min(calc(100% - 48px), var(--container)); padding-top: 30px;}
  .programme-header { width: calc(100% - 48px); }
  .hero-content { left: 42px; bottom: 38px; }
  .trust-panel { padding: 40px 30px 30px; }
}
@media (max-width: 991.98px) {
  .section-space { padding: 52px 0; }
  .hero { height: 470px; }
  .hero > img { object-position: 56% center; }
  .hero h1 { font-size: 38px; }
  .waiver-card { padding: 20px 24px; }
  .benefit-heading { margin-bottom: 40px; }
  .feature-video { margin-top: 10px; }
  .contact-body { padding: 0; }
  .map-frame { margin-top: 14px; }
}
@media (max-width: 767.98px) {
<!--  .landing-container { width: calc(100% - 32px); } -->
  .site-header, .header-row { height: 80px; }
  .brand img { width: auto; height: 70px; }
  .header-enquire { height: 32px; padding: 0 11px; font-size: 14px; }
  .hero { width: 100%; border-radius: 0 0 22px 22px; height: 455px; }
  .hero > img { object-position: 61% center; }
  .hero-overlay { background: linear-gradient(0deg, rgba(0,0,0,.7), rgba(0,0,0,.05) 65%); }
  .hero-content { left: 20px; right: 20px; bottom: 25px; }
  .hero h1 { font-size: clamp(27px, 8vw, 34px); line-height: 1.26; margin-bottom: 16px; }
  .hero .eligibility { align-items: flex-start; font-size: 13px; padding: 9px 11px; gap: 8px; }
  .hero .eligibility i { font-size: 16px; margin-top: 2px; }
  .scholarship-section { padding-top: 44px; }
  .trust-panel { padding: 31px 17px 18px; border-radius: 23px; }
  .section-title h2, .section-title h3 { font-size: 25px; }
  .section-title h3 { margin-top: 8px; }
  .trust-copy { font-size: 16px; margin: 28px 0 20px; }
  .waiver-card { gap: 15px; padding: 18px 16px; border-radius: 16px; }
  .waiver-card img { width: 76px; flex-basis: 76px; }
  .waiver-card h4 { font-size: 16px; margin-bottom: 6px; }
  .waiver-card p { font-size: 16px; }
  .sub-heading { margin: 43px 0 28px; }
  .sub-heading h2, .sub-heading p { font-size: 26px; }
  .scholarship-card { min-height: 275px; padding: 22px 17px 17px; }
  .scholarship-card h3 { font-size: 18px; }
  .video-section { padding-top: 45px; padding-bottom: 50px; }
  .left-title { font-size: 26px; margin-bottom: 26px; }
  .left-title span { display: block; margin: 3px 0 0; }
  .highlights-title { margin-top: 42px; }
  .programmes-section { padding-top: 50px; padding-bottom: 52px; }
  .programme-header { align-items: flex-end; margin-bottom: 26px; }
  .slider-controls button { width: 40px; height: 40px; font-size: 18px; }
  .programme-header { width: calc(100% - 32px); }
  .programme-track { gap: 12px; }
  .programme-card { flex-basis: 82vw; height: 230px; }
  .future-cta { border-radius: 0 0 22px 22px; padding: 45px 16px; }
  .future-cta p { font-size: 16px; }
  .cta-pattern { width: 170px; height: 270px; }
  .benefit-section { padding-top: 50px; padding-bottom: 52px; }
  .benefit-heading { margin-bottom: 35px; }
  .benefit-item { grid-template-columns: 43px 1fr; gap: 13px; margin-bottom: 24px; }
  .benefit-item img { width: 43px; height: 43px; }
  .benefit-item h4 { font-size: 17px; }
  .benefit-item p { font-size: 16px; }
  .contact-section { padding: 47px 0 18px; border-radius: 24px 24px 0 0; }
  .contact-section h2 { margin-bottom: 27px; font-size: 27px; }
  .contact-section h2 span { display: block; margin: 3px 0 0; }
  .map-buttons { flex-wrap: wrap; }
  .map-buttons a { min-width: 137px; }
  .map-frame { height: 270px; }
  .copyright { font-size: 12px; margin-top: 36px; }
  .custom-modal .modal-content { padding: 5px 17px 17px; border-radius: 20px; margin: 100px 20px 0 20px; }
  .modal-close { top: 17px; right: 18px; font-size: 21px; }
  .modal-header-title { margin-bottom: 25px; padding: 0 12px; }
  .modal-header-title h2, .modal-header-title h3 { font-size: 22px; }
  .modal-detail-box { padding: 18px 16px; font-size: 14px; }
  .sports-table td { padding: 7px 8px; font-size: 13px; }
  .programme-modal .modal-content { padding: 5px 14px 14px; }
  .programme-popup-title { margin: 0 auto 28px; }
  .programme-popup-title h2,
  .programme-popup-title h3 { font-size: 24px; }
  .programme-popup-title p { font-size: 14px; text-align: center; }
  .course-grid { grid-template-columns: 1fr; gap: 14px; }
  .course-card, .course-card.full-span { grid-column: auto; min-height: 0; padding: 20px 18px; }
  .course-card h4 { font-size: 18px; }
}



/* Revision v4: allow long programme popups to scroll inside the modal */
.programme-modal .modal-dialog {
  align-items: flex-start;
  margin-top: 24px;
  margin-bottom: 24px;
}

.programme-modal .modal-content {
  max-height: calc(90vh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-top: 100px;
}

.programme-modal .modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  z-index: 10;
}

@media (max-width: 767.98px) {
  .programme-modal .modal-dialog {
    margin: 10px;
  }

  .programme-modal .modal-content {
    max-height: calc(85vh - 20px);
  }
}


/* Revision v6: stronger desktop override + cache-busting version */
@media (min-width: 992px) {
  body .site-header,
  body .header-row {
    height: 92px !important;
  }

  body .brand img {
    width: auto;
    height: 70px;
  }

  body .hero {
    width: 100% !important;
    max-width: none !important;
    height: 620px !important;
    border-radius: 0 0 36px 36px !important;
  }

  body .hero > img {
    object-position: center 40% !important;
  }

  body .scholarship-cards > [class*="col-"] {
    display: flex !important;
  }

  body .scholarship-card {
    height: 100% !important;
    width: 100% !important;
  }
}

/* Keep the hero practical on medium laptop screens */
@media (min-width: 992px) and (max-width: 1440px) {
  body .hero {
    height: 560px !important;
  }
}


/* Preview ASPX enquiry form - copied from functional index.aspx controls and styled for the new landing page */
.enquiry-section {
  padding: 54px 0 50px;
  background: #fff;
}

.enquiry-panel {
  max-width: 1060px;
  margin: 0 auto;
}

.enquiry-title {
  text-align: center;
  margin-bottom: 26px;
}

.enquiry-title h2,
.enquiry-title h3 {
  margin: 0;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.enquiry-title h2 {
  font-size: 26px;
}

.enquiry-title h3 {
  font-size: 30px;
}

.enquiry-title p {
  margin: 10px 0 0;
  color: #555;
  font-size: 14px;
}

.ucsi-enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.ucsi-enquiry-form .full-name,
.ucsi-enquiry-form .contact-number,
.ucsi-enquiry-form .email,
.ucsi-enquiry-form .interested,
.ucsi-enquiry-form .country {
  width: 100%;
  height: 43px;
  border: 1px solid #d9d9d9;
  background: #f8f8fa;
  color: #252525;
  font-size: 14px;
  padding: 0 14px;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.ucsi-enquiry-form .full-name:focus,
.ucsi-enquiry-form .contact-number:focus,
.ucsi-enquiry-form .email:focus,
.ucsi-enquiry-form .interested:focus,
.ucsi-enquiry-form .country:focus {
  border-color: var(--brand);
  outline: none;
  background: #fff;
}

.ucsi-enquiry-form .submit {
  grid-column: 1 / -1;
  width: 100%;
  height: 45px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  border-radius: 0;
  cursor: pointer;
}

.ucsi-enquiry-form .submit:hover {
  background: var(--brand-deep);
}

.ucsi-enquiry-form .validator {
  display: block;
  margin: -5px 0 -9px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  grid-column: span 1;
}

.source-hidden,
.textField,
#txtBestFriendName,
#TextBox1,
.chkValid {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 767.98px) {
  .enquiry-section {
    padding: 38px 0 38px;
  }

  .enquiry-title h2 {
    font-size: 22px;
  }

  .enquiry-title h3 {
    font-size: 25px;
  }

  .ucsi-enquiry-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ucsi-enquiry-form .validator {
    grid-column: auto;
  }
}


/* Revision: final enquiry form visual alignment */
.enquiry-section {
  padding: 76px 0 68px !important;
  background: #fff !important;
}

.enquiry-panel {
  max-width: 1240px !important;
  margin: 0 auto !important;
}

.enquiry-title {
  text-align: center !important;
  margin-bottom: 58px !important;
}

.enquiry-title h2 {
  margin: 0 0 8px !important;
  color: #252525 !important;
  font-size: 40px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

.enquiry-title h3 {
  margin: 0 !important;
  color: #252525 !important;
  font-size: 42px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  text-transform: uppercase !important;
}

.enquiry-title p {
  margin: 24px 0 0 !important;
  color: #555 !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.ucsi-enquiry-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px 18px !important;
}

.ucsi-enquiry-form .full-name,
.ucsi-enquiry-form .contact-number,
.ucsi-enquiry-form .email,
.ucsi-enquiry-form .interested,
.ucsi-enquiry-form .country {
  width: 100% !important;
  height: 54px !important;
  border: 1px solid #d4d4d8 !important;
  background-color: #f7f7f9 !important;
  color: #252525 !important;
  font-size: 18px !important;
  padding: 0 14px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

.ucsi-enquiry-form select,
.ucsi-enquiry-form .interested,
.ucsi-enquiry-form .country {
  appearance: auto !important;
}

.ucsi-enquiry-form .submit {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  height: 54px !important;
  margin-top: 28px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #d71920 !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.ucsi-enquiry-form .submit:hover {
  background: #bd1118 !important;
}

.ucsi-enquiry-form .validator {
  grid-column: span 1 !important;
  display: block !important;
  margin: -8px 0 -10px !important;
  color: #d71920 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

@media (max-width: 767.98px) {
  .enquiry-section {
    padding: 48px 0 44px !important;
  }

  .enquiry-title {
    margin-bottom: 32px !important;
  }

  .enquiry-title h2 {
    font-size: 28px !important;
  }

  .enquiry-title h3 {
    font-size: 32px !important;
  }

  .enquiry-title p {
    margin-top: 14px !important;
    font-size: 16px !important;
  }

  .ucsi-enquiry-form {
    grid-template-columns: 1fr !important;
    gap: 13px !important;
  }

  .ucsi-enquiry-form .full-name,
  .ucsi-enquiry-form .contact-number,
  .ucsi-enquiry-form .email,
  .ucsi-enquiry-form .interested,
  .ucsi-enquiry-form .country,
  .ucsi-enquiry-form .submit {
    height: 50px !important;
    font-size: 15px !important;
  }

  .ucsi-enquiry-form .validator {
    grid-column: auto !important;
  }
}


/* Revision: keep ASP.NET validators inside each field without breaking the 2-column grid */
.ucsi-enquiry-form .form-field {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
}

.ucsi-enquiry-form .form-field .validator {
  display: block !important;
  min-height: 16px !important;
  margin: 0 0 5px !important;
  color: #d71920 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.ucsi-enquiry-form .form-field .validator[style*="hidden"],
.ucsi-enquiry-form .form-field .validator[style*="none"] {
  min-height: 0 !important;
  margin: 0 !important;
}

.ucsi-enquiry-form .form-field input,
.ucsi-enquiry-form .form-field select {
  display: block !important;
}

.ucsi-enquiry-form > .validator {
  display: none !important;
}

.source-hidden,
.textField,
#txtBestFriendName,
#TextBox1,
.chkValid {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.ucsi-enquiry-form {
  align-items: start !important;
}

@media (max-width: 767.98px) {
  .ucsi-enquiry-form .form-field .validator {
    font-size: 11px !important;
  }
}

/* Fix loading cursor on enquiry form hover */
.enquiry-section,
.enquiry-section * {
  cursor: default !important;
}

.ucsi-enquiry-form input,
.ucsi-enquiry-form textarea {
  cursor: text !important;
}

.ucsi-enquiry-form select,
.ucsi-enquiry-form option {
  cursor: pointer !important;
}

.ucsi-enquiry-form .submit {
  cursor: pointer !important;
}

/* Darker form text */
.ucsi-enquiry-form input,
.ucsi-enquiry-form select,
.ucsi-enquiry-form textarea,
.ucsi-enquiry-form option {
  color: grey !important;

}

/* Darker placeholder */
.ucsi-enquiry-form input::placeholder,
.ucsi-enquiry-form textarea::placeholder {
  color: grey !important;
  opacity: 1 !important;

}

/* Dropdown placeholder/default selected text */
.ucsi-enquiry-form select.placeholder,
.ucsi-enquiry-form .placeholder {
  color: grey !important;
  opacity: 1 !important;
 }

/* Mobile modal height + scroll fix */
@media (max-width: 767.98px) {
  .custom-modal .modal-dialog,
  .programme-modal .modal-dialog {
    margin: 8px auto !important;
    max-height: 85vh !important;
  }

  .custom-modal .modal-content,
  .programme-modal .modal-content {
    max-height: 85vh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .custom-modal .modal-close,
  .programme-modal .modal-close {
    position: sticky !important;
    top: 0 !important;
    margin-left: auto !important;
    background: #fff !important;
    z-index: 20 !important;
  }
}

/* Hide header Enquire Now button on mobile only */
@media (max-width: 767.98px) {
  .header-enquire {
    display: none !important;
  }
}