/* Register page presentation only. Checkout and ticket behavior live in existing scripts. */
#content.flash-page {
  display: flex;
  flex-direction: column;
  background: #f5f7ff !important;
  font-family: 'Outfit', sans-serif;
}
#content.flash-page > * { order: 4; }
#content.flash-page > .flash-hero { order: 0; }
#content.flash-page > #ticket-section { order: 1; }
#content.flash-page > .flash-steps { order: 2; }

.flash-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #17202a;
  padding: 52px 24px 132px;
}
.flash-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,12,18,.66) 0%, rgba(5,12,18,.50) 48%, rgba(5,12,18,.35) 100%),
    linear-gradient(0deg, rgba(4,10,17,.56), transparent 42%),
    url('../images/bharat-mandapam-register-hero.jpg') center 51% / cover no-repeat;
}
.flash-hero-inner {
  width: min(100%, 1360px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, .84fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.flash-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px;
  border: 1px solid rgba(195,179,255,.37); border-radius: 100px;
  color: #ded7ff; background: rgba(180,150,255,.1);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.flash-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #a77cff; box-shadow: 0 0 13px #b596ff; }
.flash-hero .flash-eyebrow {
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.3);
  background: #b83238;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.flash-hero .flash-eyebrow::before { display: none; }
.flash-hero h1 {
  max-width: 700px;
  margin: 31px 0 24px;
  color: #fff !important;
  font-size: clamp(54px, 6.1vw, 88px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .98;
  text-shadow: 0 2px 18px rgba(0,0,0,.16);
}
.flash-hero h1 span { display: block; color: #fff; white-space: nowrap; }
.flash-intro {
  max-width: 585px;
  margin: 0 0 31px;
  color: #f3f5f5;
  font-size: 18px;
  line-height: 1.55;
  text-shadow: 0 1px 7px rgba(0,0,0,.36);
}
.flash-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.flash-meta span { display: inline-flex; align-items: center; gap: 7px; }
.flash-meta svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flash-preview {
  position: relative;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(255,255,255,.67);
  border-radius: 24px;
  background: rgba(24,32,38,.54);
  box-shadow: 0 18px 38px rgba(0,0,0,.17);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.flash-off {
  position: absolute;
  top: -17px;
  right: 23px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 8px;
  background: #b83238;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transform: rotate(4deg);
}
.flash-preview-kicker {
  margin: 0 0 12px;
  color: #f0f1f1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.flash-regular { margin: 0; color: #edf0ee; font-size: 16px; }
.flash-regular s { text-decoration-thickness: 1px; }
.flash-reference {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(70px, 7.4vw, 104px);
  font-weight: 800;
  letter-spacing: -.073em;
  line-height: 1.06;
  white-space: nowrap;
}
.flash-reference-label { margin: 9px 0 24px; color: #f0f1ef; font-size: 12px; line-height: 1.5; }
.flash-clock { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.3); }
.flash-clock-digits { display: flex; flex-shrink: 0; }
.flash-clock-digits b {
  display: grid;
  place-items: center;
  width: auto;
  min-width: 2.5ch;
  padding-inline: .3em;
  box-sizing: content-box;
  white-space: nowrap;
  height: 59px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px;
  background: rgba(0,0,0,.15);
  color: #fff;
  font-size: 37px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.flash-clock p { margin: 0; color: #f2f3f2; font-size: 12px; line-height: 1.4; text-transform: uppercase; font-weight: 600; }
.flash-clock-details { flex: 1 1 120px; min-width: 0; }
.flash-clock p strong { display: block; color: #fff; font-size: 15px; }
.flash-clock-subtime {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.flash-clock-subtime b { font-weight: 700; }
.flash-clock-caption { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .025em; }
.flash-clock-status { margin: 14px 0 0; color: #fff; font-size: 13px; font-weight: 700; }
.flash-clock-status:empty { display: none; }
.flash-qualifier { margin: 19px 0 0; color: #f0f1ef; font-size: 12px; line-height: 1.55; }
.flash-photo-credit {
  position: absolute;
  right: 22px;
  bottom: 103px;
  color: rgba(255,255,255,.88) !important;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: 0 1px 4px #000;
}
.flash-photo-credit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

#content.flash-page #ticket-section { width: min(100%,1160px); box-sizing: border-box; margin: -93px auto 42px !important; padding: 0 22px !important; position: relative; z-index: 2; }
.flash-ticket-panel {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border-radius: 30px; overflow: hidden;
  background: #fff; box-shadow: 0 24px 74px rgba(14,30,84,.14);
  border: 1px solid rgba(83,105,166,.12);
}
.flash-ticket-info { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg,#152760,#29216b); color: #fff; padding: 44px; }
.flash-ticket-info .flash-eyebrow { font-size: 10px; padding: 7px 12px; }
.flash-ticket-info h2 { color: #fff !important; font-size: clamp(29px,3.5vw,43px); letter-spacing: -.035em; line-height: 1.12; margin: 22px 0 14px; }
.flash-ticket-info p { color: #cbd4f3; line-height: 1.7; font-size: 15px; }
.flash-ticket-buy { padding: 40px 44px; background: linear-gradient(145deg,#fff,#f7f8ff); }
.flash-ticket-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.flash-ticket-head span { color: #6241cc; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.flash-ticket-head strong { color: #4a3494; background: #eee9ff; border-radius: 100px; padding: 7px 12px; font-size: 11px; }
.flash-ticket-buy h3 { color: #132451; font-size: 30px; margin: 20px 0 8px; line-height: 1.2; letter-spacing: -.03em; }
#rzp-price-display { display: block; color: #17295e; font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.045em; }
#rzp-discount-badge { margin-top: 10px; }
#rzp-discount-text { color: #6343ca; font-size: 13px; font-weight: 700; }
.flash-coupon { margin: 24px 0; }
.flash-coupon label { display: block; color: #253765; font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.flash-coupon-control { display: flex; gap: 9px; }
.flash-coupon input { flex: 1; min-width: 0; border-radius: 11px; border: 1px solid #d9def0; background: #fff; color: #172754; padding: 13px 15px; font: 500 14px 'Outfit',sans-serif; outline: none; }
.flash-coupon input:focus { border-color: #795de4; box-shadow: 0 0 0 3px rgba(121,93,228,.14); }
.flash-coupon button { border-radius: 11px; border: 1px solid #ccd1eb; color: #423294; background: #f2f0ff; padding: 11px 19px; font: 700 13px 'Outfit',sans-serif; cursor: pointer; transition: background .2s, transform .2s; }
.flash-coupon button:hover { background: #e8e3ff; transform: translateY(-2px); }
#rzp-coupon-msg { font-size: 12px; margin: 7px 0 0; min-height: 19px; }
#rzp-buy-btn { width: 100%; border: 0; display: flex; align-items: center; justify-content: center; min-height: 62px; padding: 16px; border-radius: 14px; background: linear-gradient(105deg,#6740d9,#345ee6); color: white; font: 800 17px 'Outfit',sans-serif; letter-spacing: .025em; cursor: pointer; box-shadow: 0 12px 25px rgba(74,71,202,.27); transition: transform .2s, box-shadow .2s, filter .2s; }
#rzp-buy-btn:hover { transform: translateY(-3px); filter: brightness(1.08); box-shadow: 0 17px 30px rgba(74,71,202,.37); }
#rzp-buy-btn:focus-visible,.flash-coupon button:focus-visible { outline: 3px solid #a78bfa; outline-offset: 3px; }
.flash-buy-note { color: #687694; text-align: center; font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
.flash-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 20px; border-top: 1px solid #e5e8f5; margin-top: 26px; padding-top: 20px; color: #687694; font-size: 11px; font-weight: 600; }
.flash-trust span::before { content: '✓'; color: #7964da; margin-right: 6px; }
.flash-steps { width: min(100%,1160px); box-sizing: border-box; margin: 25px auto 70px; padding: 0 22px; }
.flash-steps-head { text-align: center; margin-bottom: 29px; }
.flash-steps-head span { color: #6152bd; text-transform: uppercase; font-size: 12px; letter-spacing: .16em; font-weight: 800; }
.flash-steps-head h2 { color: #14265b !important; font-size: clamp(28px,3vw,38px); margin: 10px 0; letter-spacing: -.035em; }
.flash-steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.flash-steps-grid article { background: #fff; border: 1px solid #e2e6f5; border-radius: 18px; padding: 23px; }
.flash-steps-grid b { color: #7254d9; font-size: 13px; }
.flash-steps-grid h3 { color: #162759; font-size: 17px; margin: 10px 0 6px; }
.flash-steps-grid p { color: #65718c; font-size: 13px; line-height: 1.6; margin: 0; }
@media (max-width: 850px) {
  .flash-hero { padding: 52px 22px 128px; }
  .flash-hero::before { background-position: center, center, 52% center; }
  .flash-hero-inner { grid-template-columns: 1fr; gap: 43px; }
  .flash-hero h1 { font-size: clamp(54px, 9vw, 75px); }
  .flash-preview { width: min(100%, 570px); }
  .flash-ticket-panel { grid-template-columns: 1fr; }
  .flash-ticket-info { padding: 32px 34px; }
}
@media (max-width: 600px) {
  .flash-hero { padding: 44px 18px 117px; }
  .flash-hero::before {
    background-image:
      linear-gradient(90deg,rgba(4,9,14,.69),rgba(4,9,14,.52)),
      linear-gradient(0deg,rgba(3,8,13,.35),transparent 50%),
      url('../images/bharat-mandapam-register-hero.jpg');
    background-position: center, center, 48% center;
  }
  .flash-hero .flash-eyebrow { font-size: 10px; padding: 7px 10px; }
  .flash-hero h1 { margin: 26px 0 20px; font-size: clamp(39px, 10vw, 60px); }
  .flash-intro { font-size: 16px; margin-bottom: 23px; }
  .flash-meta { gap: 9px 18px; font-size: 12px; }
  .flash-preview { padding: 27px 22px 24px; border-radius: 19px; }
  .flash-reference { font-size: clamp(62px, 15vw, 88px); }
  .flash-off { right: 15px; font-size: 13px; }
  .flash-photo-credit { bottom: 84px; right: 18px; font-size: 9px; }
  #content.flash-page #ticket-section { padding: 0 14px !important; margin-top: -76px !important; }
  .flash-ticket-panel { border-radius: 22px; }
  .flash-ticket-info,.flash-ticket-buy { padding: 27px 23px; }
  .flash-steps-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .flash-hero h1 { font-size: 37px; }
  .flash-reference { font-size: 60px; }
  .flash-preview { padding-inline: 18px; }
}

/* Phone checkout: compact editorial hero, then a clear real-price purchase panel.
   Kept within the register page stylesheet so other SBS pages are unaffected. */
@media (min-width: 320px) and (max-width: 480px) {
  #content.flash-page {
    background: #f1f3fb !important;
  }

  body:has(#content.flash-page) .event-ribbon {
    height: 31px !important;
    overflow: hidden;
    font-size: 10px !important;
    line-height: 31px;
  }
  body:has(#content.flash-page) .event-ribbon-track {
    min-width: max-content;
  }

  .flash-hero {
    padding: 24px 16px 43px;
  }
  .flash-hero::before {
    background-image:
      linear-gradient(90deg, rgba(4,9,14,.72), rgba(4,9,14,.48)),
      linear-gradient(0deg, rgba(3,8,13,.48), transparent 56%),
      url('../images/bharat-mandapam-register-hero.jpg');
    background-position: center, center, 50% center;
  }
  .flash-hero-inner {
    gap: 17px;
    align-items: start;
  }
  .flash-hero-copy { min-width: 0; }
  .flash-hero .flash-eyebrow {
    padding: 6px 9px;
    font-size: 9px;
    letter-spacing: .025em;
  }
  .flash-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(35px, 9.7vw, 41px);
    line-height: .91;
    letter-spacing: -.055em;
  }
  .flash-intro {
    max-width: 340px;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
  }
  .flash-meta {
    gap: 6px 13px;
    font-size: 11px;
    line-height: 1.25;
  }
  .flash-meta span { gap: 5px; }
  .flash-meta svg { width: 13px; height: 13px; }

  .flash-preview {
    width: 100%;
    box-sizing: border-box;
    padding: 18px 17px 15px;
    border-radius: 16px;
    background: rgba(16, 24, 32, .75);
    box-shadow: 0 10px 26px rgba(0,0,0,.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .flash-off {
    top: -10px;
    right: 13px;
    padding: 6px 9px;
    font-size: 11px;
  }
  .flash-preview-kicker {
    margin: 0 0 6px;
    font-size: 10px;
    letter-spacing: .07em;
  }
  .flash-regular { font-size: 12px; }
  .flash-reference {
    margin-top: 1px;
    font-size: clamp(52px, 14.2vw, 61px);
    line-height: 1;
  }
  .flash-reference-label {
    margin: 4px 0 12px;
    max-width: 260px;
    font-size: 11px;
    line-height: 1.35;
  }
  .flash-clock {
    gap: 10px;
    padding-top: 11px;
  }
  .flash-clock-digits b {
    height: 40px;
    border-radius: 7px;
    font-size: 26px;
  }
  .flash-clock p { font-size: 9px; }
  .flash-clock p strong { font-size: 12px; }
  .flash-clock-subtime { margin-top: 0; font-size: 16px; }
  .flash-clock-caption { font-size: 8px; }
  .flash-clock-status { margin-top: 8px; font-size: 11px; }
  .flash-qualifier {
    margin: 9px 0 0;
    font-size: 11px;
    line-height: 1.4;
  }
  .flash-photo-credit {
    right: 14px;
    bottom: 9px;
    font-size: 8px;
  }

  #content.flash-page #ticket-section {
    width: 100%;
    margin: -24px auto 28px !important;
    padding: 0 12px !important;
  }
  .flash-ticket-panel {
    grid-template-columns: 1fr;
    border-radius: 19px;
    box-shadow: 0 16px 38px rgba(14,30,84,.13);
  }
  .flash-ticket-info {
    padding: 15px 18px 13px;
    background: linear-gradient(115deg, #152760, #29216b);
  }
  .flash-ticket-info .flash-eyebrow {
    align-self: flex-start;
    padding: 5px 9px;
    font-size: 9px;
  }
  .flash-ticket-info h2 {
    margin: 9px 0 5px;
    font-size: 21px;
    line-height: 1.05;
  }
  .flash-ticket-info p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
  }
  .flash-ticket-buy {
    padding: 17px 17px 16px;
    background: #fff;
  }
  .flash-ticket-head { gap: 7px; }
  .flash-ticket-head span {
    font-size: 9px;
    letter-spacing: .09em;
  }
  .flash-ticket-head strong {
    padding: 6px 9px;
    font-size: 9px;
  }
  .flash-ticket-buy h3 {
    margin: 11px 0 2px;
    font-size: 19px;
    line-height: 1.15;
  }
  #content.flash-page #rzp-price-display {
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -.045em;
  }
  #content.flash-page #rzp-discount-badge { margin-top: 5px; }
  #content.flash-page #rzp-discount-text { font-size: 11px; }
  .flash-coupon { margin: 13px 0 12px; }
  .flash-coupon label {
    margin-bottom: 6px;
    font-size: 11px;
  }
  .flash-coupon-control { gap: 8px; }
  .flash-coupon input {
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
  }
  .flash-coupon button {
    min-width: 82px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    border: 1px solid #d9d3fb !important;
    background: #f0edff !important;
    color: #423294 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  #content.flash-page #rzp-coupon-msg {
    min-height: 14px;
    margin-top: 4px;
    font-size: 11px;
  }
  #content.flash-page #rzp-buy-btn {
    min-height: 54px;
    padding: 13px;
    border-radius: 12px;
    font-size: 15px;
  }
  #content.flash-page .flash-buy-note {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.4;
  }
  .flash-trust {
    gap: 6px 12px;
    margin-top: 12px;
    padding-top: 11px;
    font-size: 10px;
  }
  .flash-trust span::before { margin-right: 4px; }

  .flash-steps {
    width: 100%;
    margin: 11px auto 35px;
    padding: 0 14px;
  }
  .flash-steps > div:first-child {
    margin-bottom: 19px !important;
  }
  .flash-steps > div:first-child > span {
    margin-bottom: 7px !important;
    font-size: 10px !important;
  }
  .flash-steps > div:first-child h2 {
    font-size: 25px !important;
    line-height: 1.08;
  }
  .flash-steps > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  .flash-steps > div:nth-child(2) > div {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 13px 14px !important;
    border-radius: 14px !important;
    text-align: left !important;
  }
  .flash-steps > div:nth-child(2) > div > div:first-child {
    grid-row: 1 / span 2;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    font-size: 17px !important;
  }
  .flash-steps > div:nth-child(2) h4 {
    margin: 0 0 3px !important;
    font-size: 14px !important;
    line-height: 1.25;
  }
  .flash-steps > div:nth-child(2) p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .register-membership {
    padding: 36px 14px !important;
  }
  .register-membership > div {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 22px !important;
  }
  .register-membership > div > div:first-child {
    min-width: 0;
    padding: 28px 20px !important;
  }
  .register-membership > div > div:last-child {
    min-width: 0;
  }
  .register-membership > div > div:last-child h2 {
    font-size: 26px !important;
  }

  /* Inline-styled checkout modal: retain its structure, improve phone scrolling
     and tap targets without changing any checkout behavior. */
  #content.flash-page #rzp-modal-overlay {
    align-items: flex-start !important;
    justify-content: center !important;
    z-index: 100000 !important;
    padding: max(8px, env(safe-area-inset-top)) 9px max(8px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }
  #content.flash-page #rzp-modal-overlay > div {
    width: 100% !important;
    max-width: 430px !important;
    max-height: calc(100dvh - 16px) !important;
    margin: auto !important;
    overflow-y: auto !important;
    border-radius: 17px !important;
    overscroll-behavior: contain;
  }
  #content.flash-page #rzp-modal-overlay > div > button:first-child {
    top: 12px !important;
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 24px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    background: rgba(255,255,255,.16) !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  #content.flash-page #rzp-modal-overlay > div > div:first-of-type {
    padding: 19px 17px 16px !important;
  }
  #content.flash-page #rzp-modal-overlay > div > div:first-of-type h3 {
    color: #fff !important;
  }
  #content.flash-page #rzp-modal-overlay #modal-qty-display {
    width: 38px !important;
  }
  #content.flash-page #rzp-modal-overlay #qty-dec,
  #content.flash-page #rzp-modal-overlay #qty-inc {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    font-size: 23px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  #content.flash-page #rzp-modal-overlay #rzp-modal-form {
    padding: 17px 17px 20px !important;
  }
  #content.flash-page #rzp-modal-overlay #modal-name,
  #content.flash-page #rzp-modal-overlay #modal-email,
  #content.flash-page #rzp-modal-overlay #modal-phone {
    min-height: 46px;
    padding: 12px 13px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }
  #content.flash-page #rzp-modal-overlay #rzp-pay-btn {
    min-height: 52px;
    padding: 14px !important;
    font-size: 14px !important;
  }
  #content.flash-page #rzp-modal-overlay #rzp-modal-success {
    padding: 21px 16px 20px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #rzp-buy-btn,.flash-coupon button { transition: none; }
}
