:root {
  --bg: #eef3f8;
  --card: #ffffff;
  --card-soft: #f8fbff;
  --text: #14213d;
  --muted: #64748b;
  --line: #d7dfeb;
  --brand: #e46012;
  --brand-deep: #163b7d;
  --green: #1f7a45;
  --red: #ba2026;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans Devanagari", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(228, 96, 18, 0.15), transparent 24%),
    radial-gradient(circle at top right, rgba(31, 122, 69, 0.14), transparent 22%),
    linear-gradient(180deg, #fffaf5 0%, var(--bg) 35%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

.page-shell,
.success-shell {
  padding: 24px 12px 40px;
}

.page-container {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.lang-toolbar,
.hero-card,
.form-card,
.action-panel,
.success-card {
  background: var(--card);
  border: 1px solid rgba(215, 223, 235, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.lang-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.lang-intro {
  display: grid;
  gap: 4px;
}

.lang-intro span,
.info-label,
.fee-box span,
.declaration-copy,
.office-item span,
.action-copy span,
.status-message,
.success-copy,
.success-details span {
  color: var(--muted);
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #f2f6fb;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: linear-gradient(135deg, var(--brand-deep), #0f2d61);
  color: #fff;
}

.hero-card {
  padding: 12px;
}

.hero-banner {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.hero-banner-top {
  height: clamp(180px, 26vw, 320px);
  object-fit: cover;
  object-position: top center;
}

.footer-card {
  margin-top: 2px;
}

.hero-banner-bottom {
  height: clamp(96px, 12vw, 150px);
  object-fit: cover;
  object-position: bottom center;
}

.registration-form {
  display: grid;
  gap: 18px;
}

.form-card {
  padding: 24px;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-deep), #0f2d61);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.subsection-title {
  margin-bottom: 14px;
  font-weight: 800;
  color: var(--brand-deep);
}

.info-tile,
.fee-box {
  height: 100%;
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--card-soft);
  border: 1px solid var(--line);
}

.info-tile strong,
.fee-box strong {
  font-size: 1rem;
}

.section-divider {
  height: 1px;
  margin: 22px 0 6px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  text-align: left;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.event-input {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  box-shadow: none;
}

.event-input:focus {
  border-color: var(--brand-deep);
  box-shadow: 0 0 0 4px rgba(22, 59, 125, 0.12);
}

.event-textarea {
  min-height: 132px;
  resize: vertical;
}

.event-input::placeholder {
  color: #9aa7ba;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card-soft);
  font-weight: 600;
  cursor: pointer;
}

.option-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.option-card .form-check-input {
  flex: 0 0 auto;
  margin: 0;
  box-shadow: none;
  accent-color: var(--brand-deep);
}

.option-card-static {
  cursor: default;
}

.fee-card .section-chip {
  background: linear-gradient(135deg, #c22828, #8f1212);
}

.fee-box strong {
  color: var(--brand-deep);
}

.declaration-copy {
  margin: 0;
  line-height: 1.75;
}

.office-card .section-chip {
  background: linear-gradient(135deg, #267f44, #155a2f);
}

.office-item {
  display: grid;
  gap: 10px;
}

.office-line {
  min-height: 48px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  background: var(--card-soft);
}

.office-status-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
}

.action-copy {
  display: grid;
  gap: 4px;
}

.price-pill {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  text-align: right;
}

.price-pill strong {
  color: var(--brand-deep);
}

.submit-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #ff7a1a);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 15px 22px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(230, 91, 11, 0.24);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.status-message {
  min-height: 24px;
  margin: 0;
  font-weight: 600;
}

.success-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.success-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px;
}

.success-card h1 {
  margin: 0;
  line-height: 1.08;
}

.success-copy {
  font-size: 1.05rem;
}

.success-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 18px;
  background: var(--card-soft);
  border-radius: 18px;
  border: 1px solid var(--line);
}

.success-details span {
  display: block;
  margin-bottom: 6px;
}

.success-actions {
  margin-top: 24px;
}

.secondary-btn {
  display: inline-flex;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .action-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 767.98px) {
  .page-shell,
  .success-shell {
    padding: 16px 8px 28px;
  }

  .lang-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .form-card,
  .action-panel,
  .success-card {
    padding: 18px;
    border-radius: 18px;
  }

  .hero-card {
    padding: 8px;
    border-radius: 18px;
  }

  .hero-banner {
    border-radius: 14px;
  }

  .hero-banner-top {
    height: 150px;
  }

  .hero-banner-bottom {
    height: 88px;
  }

  .office-status-row {
    flex-direction: column;
  }

  .success-details {
    grid-template-columns: 1fr;
  }
}
