
@font-face {
  font-family: 'museo_sans_500';
  src: url('../fonts/Museo_Sans_500.otf');
}
@font-face {
  font-family: 'museo_sans_900';
  src: url('../fonts/Museo_Sans_900.otf');
}
@font-face {
  font-family: 'museo_sans_700';
  src: url('../fonts/Museo_Sans_700.otf');
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'museo_sans_500', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ──────────────────────────── */
.hidden { display: none !important; }
.page   { display: block; }

/* ══════════════════════════════════════════
   DESKTOP LAYOUT  (≥ 768px)
══════════════════════════════════════════ */
.desktop-layout {
  display: none;
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
}

.desktop-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg-desktop.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  z-index: 0;
}

.desktop-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* justify-content: center; */
  gap: 48px;
  padding: 48px 60px 48px 80px;
  /* max-width: 1400px; */
  width: 100%;
  margin: 0 auto;
}

/* ── Brand Block (left) ─────────────────── */
.brand-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 45px;
}

.brand-logo img{
  width: 17%
}

.brand-wordmark {
  font-weight: 700;
  font-size: 12px;
  color: #00B1A9;
  letter-spacing: 0.2em;
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.05;
}

.title-petronas {
  font-family: 'museo_sans_900', sans-serif;
  font-size: clamp(28px, 4.25vw, 80px);
  color: #00B1A9;
  line-height: 0.45;
  display: block;
}

.title-integrity {
  font-family: 'museo_sans_900', sans-serif;
  font-size: clamp(44px, 6.45vw, 122px);
  color: #20419C;
  line-height: 1.2;
  display: block;
}

.title-timeout {
  font-family: 'museo_sans_700', sans-serif;
  font-size: clamp(26px, 4vw, 72px);
  color: #20419C;
  line-height: 1.1;
  display: block;
}

.brand-divider {
  width: 50%;
  height: 2px;
  background: #20419C;
  border-radius: 2px;
}

.brand-taglines {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tagline-main {
  font-size: clamp(17px, 2.45vw, 46px);
  color: #100C93;
  font-family:'museo_sans_700', sans-serif;
  font-weight:500;
}

.tagline-hash {
  font-size: clamp(14px, 2vw, 38px);
  color: #231F20;
  font-family:'museo_sans_700', sans-serif;
  font-weight:500;
}

/* ── Card Wrapper (center) ──────────────── */
.card-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 650px;
  position: relative;
}

/* ══════════════════════════════════════════
   FORM CARD  (shared desktop + mobile)
══════════════════════════════════════════ */
.form-card {
  background: rgba(200, 211, 206, 0.302);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 40px;
  padding: 38px 60px;
  width: 100%;
  /* blur + saturation — frost: 25, splay: 100 */
  /* backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%); */

  /* light edge — light: 90°, 100% */
  border: 1px solid rgba(255, 255, 255, 0.35);

  /* depth: 37 — inner highlight + outer shadow */
  box-shadow:
    9px 8px 20px #272940BA, 
    inset 15px 15px 20px rgba(221, 226, 224, 1), 
    inset -15px -15px 20px rgba(221, 226, 224, 1);

  /* dispersion: 100 — helps colors bleed through */
  filter: brightness(1.05) contrast(1.02);
}

.overlay-cards {
  position: absolute;
  inset: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.overlay-cards .layer-1{
  border-radius: 67px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 40.82%, #FFF 82.08%);
  width: 100%;
  height: 100%;
  rotate: 180deg;
  z-index: -1;
  filter: blur(12px);
  position: absolute;
  inset: 0;
}
.overlay-cards .layer-2{
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 57.56%, #FFFFFF 89.16%);
  border-radius: 40px;
  width: 100%;
  height: 70%;
  z-index: -1;
  filter: blur(12px);
  margin-top: auto;
  position: absolute;
  bottom: 0;
}

/* Card heading "REGISTER" */
.card-heading {
  font-family: 'museo_sans_900', sans-serif;
  font-size: 45px;
  color: #20419A;
  text-align: center;
  margin-bottom: 32px;
}

/* Event info block */
.event-info {
  text-align: center;
  margin-bottom: 36px;
}

.event-date,
.event-time {
  font-weight: 500;
  font-size: 30px;
  color: #20419A;
  line-height: 1.3;
}

.event-venue {
  font-family: 'museo_sans_900', sans-serif;
  font-size: 30px;
  color: #20419A;
  margin-top: 2px;
}

/* ── Form fields ────────────────────────── */
.register-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.field-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  /*gap: 2px;*/
}

/* White pill input */
.pill-input {
  width: 100%;
  padding: 13px 22px;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 30px;
  font-family: 'museo_sans_900', sans-serif;
  font-weight: 700;
  font-size: 27px;
  color: #000000;
  text-align: center;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  letter-spacing: 0.03em;
}

.pill-input::placeholder {
  color: #000000;
  opacity: 1;
  font-weight: 700;
}

.pill-input:focus {
  border-color: #00B1A9;
  box-shadow: 0 0 0 3px rgba(0,181,173,0.15);
}

.pill-input.error {
  border-color: #e53e3e;
}

/* White pill select */
.select-wrap {
  position: relative;
}

.pill-select {
  width: 100%;
  padding: 13px 48px 13px 22px;
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 30px;
  font-family: 'museo_sans_900', sans-serif;
  font-size: 27px;
  color: #000000;
  text-align: center;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  letter-spacing: 0.03em;
}

.pill-select:focus {
  border-color: #00B1A9;
  box-shadow: 0 0 0 3px rgba(0,181,173,0.15);
}

.pill-select.error {
  border-color: #e53e3e;
}

.select-chevron {
  position: absolute;
  right: 28px;
  top: 52%;
  transform: translateY(calc(-50% - 8px));
  pointer-events: none;
}

/* Field error text */
.field-error {
  font-size: 13px;
  color: #e53e3e;
  text-align: center;
  font-style: italic;
  min-height: 16px;
  display: block;
}

/* Helper italic text */
.helper-text {
  font-size: 20px;
  color: #20419A;
  font-style: italic;
  text-align: center;
  margin-top: 10px;
}

/* SUBMIT button */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 240px;
  padding: 14px 24px;
  background: linear-gradient(93deg, #00A19C 28.95%, #20419C 98.58%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-family: 'museo_sans_500', sans-serif;
  font-size: 24px;
  cursor: pointer;
  margin-top: 28px;
  margin-bottom:29px;
}
.submit-btn:active {
  transform: scale(0.97);
}

.submit-btn:disabled {
  background: #7ECBC8;
  cursor: not-allowed;
  transform: none;
}

/* Spinner inside button */
.btn-spinner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.spinner-icon {
  animation: spin 0.8s linear infinite;
}

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

/* Issues link */
.issues-text {
  font-size: 20px;
  color: #20419A;
  font-style: italic;
  text-align: center;
}

.issues-text a {
  color: #20419A;
  text-decoration: none;
  transition: opacity 0.15s;
}

.issues-text a:hover {
  opacity: 0.75;
}

/* ══════════════════════════════════════════
   THANK YOU VIEW
══════════════════════════════════════════ */
.thankyou-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.ty-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #00B1A9;
  background: rgba(0,181,173,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ty-title {
  font-family: 'museo_sans_900';
  font-size: 32px;
  color: #20419C;
  margin-bottom: 50px;
}


.ty-divider {
  width: 100%;
  height: 1px;
  background: rgba(27,47,110,0.12);
}

.ty-qr-label {
  font-size: 25px;
  color: #20419C;
}
.ty-qr-label span{
  font-family: 'museo_sans_900';
}

.ty-qr-wrap {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.09);
  display: inline-block;
  margin: 60px 0;
}

.ty-qr-wrap canvas {
  display: block;
}

.ty-email-note {
  font-size: 25px;
  color: #20419C;
  text-align: balance;
}

.ty-email-highlight {
  color: #00B1A9;
  font-weight: 600;
  opacity: 1;
}

.ty-info-strip {
  width: 100%;
  border-radius: 25px;
  background: #FFF;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  padding: 12px 16px;
}

.ty-info-date {
  font-weight: 700;
  font-size: 12px;
  color: #00B1A9;
  margin-bottom: 3px;
}

.ty-info-detail {
  font-size: 20px;
  color: #20419C;
  font-family: 'museo_sans_700';
}

.register-another-btn {
  background: none;
  border: none;
  font-family: 'museo_sans_500', sans-serif;
  font-size: 11px;
  color: #00B1A9;
  font-style: italic;
  text-decoration: underline;
  cursor: pointer;
  transition: opacity 0.15s;
}

.register-another-btn:hover {
  opacity: 0.7;
}

/* ══════════════════════════════════════════
   MOBILE LAYOUT  (< 768px)
══════════════════════════════════════════ */
.mobile-layout {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  background: white;
}

/* Mobile top white area */
.mobile-top {
  background: white;
  padding: 2px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top:48px;
}

.mobile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mobile-title {
  display: flex;
  flex-direction: column;
}

.brand-divider-mobile {
  width: 116px;
  height: 1px;
  background: #20419C;
  border-radius: 2px;
}


.mobile-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.mobile-logo img {
  width: 100%;
  max-width: 60px;
}

.mobile-wordmark {
  font-weight: 700;
  font-size: 9px;
  color: #00B1A9;
  letter-spacing: 0.18em;
}

.mobile-taglines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* .mobile-taglines .tagline-main { font-size: 12.5px; }
.mobile-taglines .tagline-hash { font-size: 11.5px; } */

/* Mobile background + card section */
.mobile-bg-section {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mobile-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../images/bg-mobile.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.mobile-fade-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, white, transparent);
  z-index: 1;
}

.mobile-card-wrap {
  position: relative;
  z-index: 2;
  padding: 2px 17px 40px;
}

.mobile-card-wrap .form-card {
  border-radius: 20px;
  padding: 20px 20px 18px;
}

.mobile-card-wrap .card-heading {
  font-size: 25px;
  margin-bottom: 12px;
}

.mobile-card-wrap .event-date,
.mobile-card-wrap .event-time {
  font-size: 17px;
}

.mobile-card-wrap .event-venue {
  font-size: 17px;
}

/* ── Responsive show/hide ───────────────── */
@media (min-width: 768px) {
  .desktop-layout { display: block; }
  .mobile-layout  { display: none; }
}

@media (max-width: 767px) {
  .desktop-layout { display: none; }
  .mobile-layout  { display: flex; }
  .pill-input { font-size: 15px;}
  .pill-select { font-size: 15px;}
  .field-error { font-size: 11px; min-height: 14px;}
  .helper-text { font-size: 12px;
  text-shadow: 0 0 10px rgba(255,255,255,1),
               0 0 20px rgba(255,255,255,1),
               0 0 30px rgba(255,255,255,1);;
}
  .issues-text { font-size: 12px;
  text-shadow: 0 0 10px rgba(255,255,255,1),
               0 0 20px rgba(255,255,255,1),
               0 0 30px rgba(255,255,255,1);
  }
  .submit-btn{
      font-size:14px;
      max-width:176px;
      margin-top:17px;
      margin-bottom:8px;
  }
  .event-info{
      margin-bottom:16px;
  }
 
 
  .ty-title { font-size: 20px; margin-bottom: 16px; }
  .ty-qr-label { font-size: 13px; }
  .ty-email-note { font-size: 13px; }
  .ty-qr-wrap { margin: 16px 0 }
  .ty-info-detail { font-size: 12px; }
  .register-form {
      gap:0px
  }
  
}


/* ── Desktop fine-tuning at mid sizes ───── */
@media (min-width: 768px) and (max-width: 1100px) {
  .desktop-content {
    padding: 40px 40px 40px 50px;
    gap: 32px;
  }
  /* .brand-block {
    max-width: 340px;
  } */
}
