/* ================================================================
   CSMU - SIH 2026 Internal Hackathon Registration CSS
   Next Gen Pitch Design System & UI Specification
   IIEC.in - Incubation, Innovation & Entrepreneurship Cell
   ================================================================ */

:root {
  /* Next Gen Pitch Core Palette */
  --bg: #f5f5f0;
  --ink: #111111;
  --muted: #66665f;
  --line: #d8d8d0;
  --card: #ffffff;
  --accent: #ff5a1f;
  --accent-dark: #dc4310;
  --accent-light: #ffece4;
  --accent-border: #ffc7b0;
  --dark-shell-bg: #111111;
  --color-success: #157f4a;
  --color-error: #dc4310;
  --container-max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Navigation Bar */
nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand span {
  color: var(--accent);
}

.nav-right {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 14px;
  color: #444;
}

.nav-right a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--ink);
  color: white !important;
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

/* 2-Column Hero Section */
.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  gap: 60px;
  align-items: center;
  padding: 70px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 900;
  max-width: 800px;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-copy {
  max-width: 620px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: .2s ease;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid #bdbdb5;
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
}

.deadline-pill b {
  color: var(--ink);
}

/* Institutional Partner Logos Strip */
.partner-logos-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 28px;
  margin-top: 36px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  max-width: 140px;
}

.partner-logo-item img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.partner-logo-item:hover img {
  transform: scale(1.05);
}

.partner-logo-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

.card-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-brand-pill img {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.card-brand-pill span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ffece4;
  border: 1px solid #ffc7b0;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 13px;
}

/* 3D Tilted Hero Ticket Card */
.hero-card {
  background: var(--ink);
  color: white;
  min-height: 400px;
  border-radius: 28px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(1.5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-card img {
  max-height: 28px;
  width: auto;
  object-fit: contain;
}

.hero-card:before {
  content: "SIH";
  position: absolute;
  font-size: 140px;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255, 255, 255, .05);
  right: -20px;
  bottom: 30px;
  pointer-events: none;
}

.card-top {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #aaa;
}

.date {
  font-size: 60px;
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.07em;
}

.date small {
  display: block;
  font-size: 16px;
  letter-spacing: 0;
  margin-top: 10px;
  color: #aaa;
  font-weight: 600;
}

.venue {
  font-size: 13px;
  color: #cfcfcf;
  max-width: 240px;
  line-height: 1.5;
}

/* Hardware-Accelerated Marquee Ticker */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  white-space: nowrap;
  margin: 1.5rem 0 3.5rem;
}

.marquee-track {
  display: inline-block;
  animation: move 22s linear infinite;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  will-change: transform;
}

.marquee-track span {
  margin: 0 28px;
  color: var(--accent);
}

@keyframes move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Numbered Rule Cards (Reasons Grid) */
.rules-section {
  padding-bottom: 60px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: .96;
  letter-spacing: -.05em;
  font-weight: 800;
  max-width: 680px;
}

.section-description {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.reason {
  padding: 28px 22px 20px 0;
  border-right: 1px solid var(--line);
  margin-right: 22px;
}

.reason:last-child {
  border-right: 0;
  margin-right: 0;
}

.number {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 45px;
}

.reason h3 {
  font-size: 20px;
  letter-spacing: -.03em;
  margin-bottom: 8px;
  font-weight: 700;
}

.reason p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Registration Form Shell & Wizard */
.form-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  margin-bottom: 80px;
}

.wizard-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.form-mode-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.form-mode-btn.active, .form-mode-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.compliance-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
}

.compliance-item.valid .status-dot {
  background: var(--color-success);
  box-shadow: 0 0 6px rgba(21, 127, 74, 0.5);
}

.compliance-item.invalid .status-dot {
  background: var(--accent);
}

.progress-track {
  height: 5px;
  background: var(--line);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  width: 17%;
  background: var(--accent);
  border-radius: 100px;
  transition: width .3s ease;
}

.stepper-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  margin-top: 16px;
}

.stepper-tab {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  padding: 8px 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.stepper-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 90, 31, .2);
}

.stepper-tab.completed {
  border-color: var(--color-success);
  color: var(--color-success);
  background: #f0fdf4;
}

/* Wizard Steps & Sections */
.sih-section {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sih-section.active {
  display: block;
}

.sih-single-page-mode .sih-section {
  display: block !important;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--line);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Form Fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.field label i, .sih-required {
  color: var(--accent);
  font-style: normal;
}

.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.field textarea {
  min-height: 105px;
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, .15), 0 2px 8px rgba(255, 90, 31, .06);
  background: #ffffff;
}

.field.has-error input, .field.has-error select, .field.has-error textarea,
.field.has-error .custom-select-trigger {
  border-color: var(--accent-dark) !important;
  background: #fff7f4 !important;
  box-shadow: 0 0 0 3px rgba(220, 67, 16, .12) !important;
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
}

.error-msg, .sih-error-msg {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  display: none !important;
  margin-top: 4px;
}

.has-error > .error-msg,
.has-error > .sih-error-msg,
.has-error .error-msg,
.has-error .sih-error-msg {
  display: block !important;
}

/* ================================================================
   Custom Select Dropdown Component
   ================================================================ */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-select-trigger:hover {
  border-color: #b8b8b0;
  background: #ffffff;
}

.custom-select-wrapper.active .custom-select-trigger {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 90, 31, .15), 0 2px 8px rgba(255, 90, 31, .06);
}

.custom-select-trigger .select-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.custom-select-trigger .select-value.placeholder {
  color: #7b7b74;
}

.custom-select-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.custom-select-wrapper.active .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.04);
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 6px;
  scrollbar-width: thin;
}

.custom-select-wrapper.active .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.custom-option {
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-option:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}

.custom-option.selected {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.custom-option.selected::after {
  content: "✓";
  font-size: 12px;
  font-weight: 900;
  margin-left: 8px;
}

/* Member Switcher & Member Block */
.member-switcher {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.member-switcher-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  padding: 8px 16px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.member-switcher-btn:hover {
  border-color: #b0b0a8;
  background: #ffffff;
}

.member-switcher-btn.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.member-card {
  display: none;
}

.member-card.active {
  display: block;
}

.sih-single-page-mode .member-card {
  display: block !important;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--line);
}

.member-block {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px 22px;
  background: var(--bg);
}

.member-tag {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

/* Enhanced Tag Chips (Pills) */
.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  white-space: nowrap;
}

.chip:hover {
  border-color: #a8a8a0;
  background: #ffffff;
  transform: translateY(-1px);
}

.chip input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #a8a8a0;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  background: white;
  transition: all .15s ease;
}

.chip input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  transform: scale(0);
  background: white;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: transform .15s ease-in-out;
}

.chip.selected {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 90, 31, .12);
}

.chip.selected input[type="checkbox"] {
  background: var(--accent);
  border-color: var(--accent);
}

.chip.selected input[type="checkbox"]::before {
  transform: scale(1);
}

/* Enhanced Declarations List */
.dec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dec-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  transition: all .2s ease;
  cursor: pointer;
}

.dec-item:hover {
  background: #ffffff;
  border-color: #b0b0a8;
}

.dec-item.has-error {
  border-color: var(--accent-dark) !important;
  background: #fff7f4 !important;
  box-shadow: 0 0 0 3px rgba(220, 67, 16, .12) !important;
}

.dec-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid #b5b5ad;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: white;
  transition: all .15s ease;
}

.dec-item input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  background: white;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transition: transform .15s ease-in-out;
}

.dec-item input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.dec-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.dec-item h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.dec-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.dec-item .error-msg {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-top: 6px;
}

.dec-item.has-error .error-msg {
  display: block;
}

/* Wizard Actions */
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  gap: 14px;
  flex-wrap: wrap;
}

/* Alert Shake Feedback */
.alert-banner {
  background: #fff4ee;
  border: 1px solid #ffcdb8;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: #7a4a34;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shakeAlert 0.4s ease-in-out;
}

@keyframes shakeAlert {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ================================================================
   Official SIH 2026 Entry Pass & Registration Receipt Modal
   ================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.receipt-modal-card {
  width: min(880px, calc(100% - 20px));
  max-height: 94vh;
  overflow-y: auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 24px;
  text-align: left;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.entry-pass-document {
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px;
  color: #111111;
  font-family: Inter, sans-serif;
}

.entry-pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.entry-pass-logos {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pass-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.sih-logo-pass {
  height: 34px;
}

.entry-pass-titles {
  text-align: center;
  flex: 1;
}

.pass-institution {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555555;
  display: block;
}

.pass-event-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111111;
  margin: 2px 0;
}

.pass-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.entry-pass-qr-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pass-qr-box {
  width: 44px;
  height: 44px;
  background: #f5f5f0;
  border: 1px solid #d8d8d0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #111111;
}

.pass-status-pill {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #e6f7ef;
  color: #157f4a;
  border: 1px solid #b7ebd3;
  padding: 2px 6px;
  border-radius: 4px;
}

.entry-pass-code-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f8f8f5;
  border: 1.5px solid #e2e2da;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.code-strip-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strip-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777770;
}

.strip-value {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}

.strip-value#receiptRegId {
  color: var(--accent-dark);
  font-family: monospace;
  font-size: 15px;
  font-weight: 900;
}

.entry-pass-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff6f2;
  border: 1px solid #ffcdb8;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #7a3c22;
  line-height: 1.45;
}

.entry-pass-notice i {
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.entry-pass-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.entry-pass-box {
  background: #fafaf7;
  border: 1px solid #e0e0d8;
  border-radius: 12px;
  padding: 12px 14px;
}

.pass-box-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pass-data-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3.5px 0;
  border-bottom: 1px dashed #eaeae2;
}
.pass-data-row:last-child { border-bottom: none; }

.data-key {
  color: #66665f;
  font-weight: 500;
}

.data-val {
  color: #111111;
  font-weight: 700;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-pass-roster-section {
  background: #fafaf7;
  border: 1px solid #e0e0d8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.entry-pass-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.receipt-member-card {
  background: #ffffff;
  border: 1px solid #e0e0d8;
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.receipt-member-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.receipt-member-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #444440;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.receipt-member-badge.leader {
  background: var(--accent);
}

.receipt-member-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.receipt-member-gender {
  font-size: 11px;
  color: #777770;
  font-weight: 600;
}

.receipt-member-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #555550;
  line-height: 1.35;
}

.receipt-member-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-pass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1.5px solid var(--line);
  padding-top: 12px;
  font-size: 11px;
}

.helpdesk-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.helpdesk-block strong {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.helpdesk-contacts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #444440;
}

.helpdesk-contacts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pass-seal-badge {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seal-auth {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #111111;
}

.seal-sub {
  font-size: 9px;
  font-weight: 700;
  color: #777770;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-print-pass {
  padding: 12px 28px;
  font-size: 14.5px;
  box-shadow: 0 4px 16px rgba(255, 90, 31, 0.3);
}

/* ================================================================
   Single-Page Print Optimization (@media print)
   ================================================================ */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body * {
    visibility: hidden;
  }

  header, nav, main, footer, .marquee, .modal-actions-bar, .modal-backdrop {
    display: none !important;
  }

  #submissionModal {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .receipt-modal-card {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  #printableEntryPass, #printableEntryPass * {
    visibility: visible !important;
  }

  #printableEntryPass {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 2px solid #111111 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    page-break-inside: avoid !important;
    page-break-after: avoid !important;
  }

  .entry-pass-code-strip, .entry-pass-box, .entry-pass-roster-section {
    background: #f9f9f9 !important;
    border: 1px solid #cccccc !important;
  }

  .entry-pass-notice {
    background: #fff4ee !important;
    border: 1px solid #e08e6e !important;
  }

  .pass-qr-box {
    background: #ffffff !important;
    border: 1px solid #111111 !important;
  }
}

/* Official Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  color: #777;
  font-size: 12px;
  gap: 20px;
  flex-wrap: wrap;
}

footer a:hover {
  color: var(--accent);
}

.footer-home {
  font-weight: 800;
  color: var(--ink);
  font-size: 13px;
}

.socials {
  display: flex;
  gap: 22px;
}

.socials a {
  font-weight: 600;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .entry-pass-roster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .entry-pass-code-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .nav-right a:not(.nav-cta) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 45px;
  }

  .hero-card {
    min-height: 320px;
    transform: none;
  }

  .partner-logos-strip {
    justify-content: center;
    gap: 16px;
    padding: 14px 18px;
  }

  .partner-logo-divider {
    display: none;
  }

  .partner-logo-item {
    height: 38px;
    max-width: 110px;
  }

  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }

  .reason {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 20px 14px 20px 0;
  }

  .reason:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }

  .reason:last-child, .reason:nth-last-child(2) {
    border-bottom: 0;
  }

  .number {
    margin-bottom: 18px;
  }

  .section-head {
    display: block;
  }

  .section-description {
    margin-top: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .entry-pass-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .entry-pass-grid {
    grid-template-columns: 1fr;
  }

  .entry-pass-footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .pass-seal-badge {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  nav {
    height: 64px;
  }

  h1 {
    font-size: 38px;
    line-height: 1;
  }

  .hero {
    min-height: auto;
    padding: 35px 0 45px;
  }

  .reasons {
    grid-template-columns: 1fr;
  }

  .reason:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .reason {
    border-bottom: 1px solid var(--line) !important;
  }

  .reason:last-child {
    border-bottom: 0 !important;
  }

  .hero-card {
    border-radius: 20px;
    transform: none;
    padding: 22px 18px;
    min-height: auto;
  }

  .date {
    font-size: 46px;
    margin: 18px 0;
  }

  .form-shell {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .controls-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .compliance-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .entry-pass-code-strip {
    grid-template-columns: 1fr;
  }

  .entry-pass-roster-grid {
    grid-template-columns: 1fr;
  }

  .entry-pass-document {
    padding: 16px 12px;
  }

  .pass-event-title {
    font-size: 17px;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }

  footer {
    flex-direction: column;
    gap: 16px;
  }

  .socials {
    flex-wrap: wrap;
    gap: 14px;
  }
}

/* ==========================================================================
   REGISTRATION CLOSED PANEL
   Shown in place of the team registration form once entries are no longer
   accepted. The form markup itself stays in the page but is hidden.
   ========================================================================== */
.closed-panel {
  background: var(--card);
  border: 1px solid #ffcdb8;
  border-radius: 22px;
  padding: clamp(28px, 5vw, 46px);
  text-align: center;
  background-image: linear-gradient(140deg, #fff6f1 0%, var(--card) 65%);
}

.closed-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 90, 31, .12);
  border: 1px solid rgba(255, 90, 31, .32);
  color: var(--accent-dark, #dc4310);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.closed-panel-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #ff5a1f);
}

.closed-panel-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.closed-panel-desc {
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}

.closed-panel-desc b {
  color: var(--ink);
}

.closed-panel-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 620px) {
  .closed-panel-actions .btn {
    width: 100%;
  }
}
