:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #6e7788;
  --border: #e2e7ef;
  --primary: #ef6c00;
  --primary-dark: #c65300;
  --accent: #1f5fbf;
  --success: #1d8b57;
  --shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: 82px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #ff9800);
  color: #fff;
  font-weight: 800;
}

.brand-title {
  font-weight: 800;
  letter-spacing: .2px;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.icon-btn,
.back-btn {
  border: 0;
  background: transparent;
  font-size: 24px;
  padding: 8px;
}

.content {
  padding: 22px 16px 32px;
}

.screen {
  display: none;
  animation: fade .18s ease;
}

.screen.active {
  display: block;
}

@keyframes fade {
  from { opacity: .4; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-card,
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.welcome-card {
  padding: 24px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 6vw, 42px);
}

h2 {
  margin-bottom: 4px;
}

.muted,
.section-head p,
.choice-card small,
.menu-card small {
  color: var(--muted);
}

.menu-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-card,
.choice-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 110px;
  transition: .18s ease;
}

.menu-card:hover,
.choice-card:hover {
  transform: translateY(-2px);
  border-color: #f5b77c;
}

.menu-icon,
.choice-card > span {
  font-size: 30px;
}

.menu-card strong,
.menu-card small,
.choice-card strong,
.choice-card small {
  display: block;
}

.menu-card small,
.choice-card small {
  margin-top: 5px;
}

.section-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 26px;
}

.form-card {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #f3a65e;
  box-shadow: 0 0 0 3px rgba(239,108,0,.10);
}

textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.small-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
}

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

.primary-btn:hover {
  background: var(--primary-dark);
}

.secondary-btn {
  background: #eef2f7;
  color: var(--text);
}

.small-btn {
  padding: 8px 12px;
  font-size: 13px;
  background: #eef2f7;
}

.toolbar {
  margin-bottom: 14px;
}

.list-stack {
  display: grid;
  gap: 12px;
}

.list-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(23,32,51,.05);
}

.list-card strong {
  display: block;
  margin-bottom: 4px;
}

.list-card small {
  color: var(--muted);
}

.empty {
  padding: 28px 18px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
}

.split-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  flex-direction: column;
  align-items: flex-start;
}

.subheading {
  margin: 22px 0 12px;
}

.planned-summary {
  margin-bottom: 18px;
  border: 1px solid #ffe0bf;
  background: #fff8f1;
  border-radius: 12px;
  padding: 13px 14px;
}

.hidden {
  display: none !important;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 1180px);
  height: 68px;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 30;
}

.bottom-nav button {
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-size: 18px;
  color: var(--text);
}

.bottom-nav span {
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 50;
  background: #172033;
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .menu-grid,
  .split-actions,
  .form-grid {
    grid-template-columns: 1fr;
  }

  label.full {
    grid-column: auto;
  }

  .content {
    padding: 16px 12px 26px;
  }

  .welcome-card {
    padding: 20px;
  }

  .menu-card {
    min-height: 90px;
  }
}


.field-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: -2px;
}

.hierarchy-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8f1;
  border: 1px solid #ffe0bf;
  color: #7b4a19;
  font-size: 13px;
  font-weight: 700;
}


#otherProfessionWrap {
  transition: opacity .18s ease;
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.hindi-text {
  font-family: "Khand", sans-serif;
  font-weight: 600;
}

.photo-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-heading {
  font-weight: 700;
}

.photo-upload-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 6px;
}

@media (max-width: 700px) {
  .photo-upload-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.event-strip {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8f1;
  border: 1px solid #ffd3a6;
  color: #7b3f00;
  font-size: 14px;
  font-weight: 700;
}
