:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #11203a;
  --muted: #55657d;
  --line: #d9e2ef;
  --primary: #0f6aeb;
  --primary-strong: #0a4db0;
  --accent: #15b79e;
  --danger: #d92d20;
  --warning: #d97706;
  --shadow: 0 22px 60px rgba(22, 51, 92, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(145deg, #eff5ff 0%, #f8fafc 45%, #edf9f7 100%);
  position: relative;
}

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
}

.orb-a {
  width: 360px;
  height: 360px;
  background: rgba(15, 106, 235, 0.18);
  top: -110px;
  right: -120px;
}

.orb-b {
  width: 280px;
  height: 280px;
  background: rgba(21, 183, 158, 0.2);
  bottom: -100px;
  left: -90px;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 2rem));
  margin: 1.5rem auto 2rem;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.header-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #dde8f5;
  border-radius: 12px;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 8px 24px rgba(36, 67, 114, 0.08);
}

.brand-logo {
  display: block;
  object-fit: contain;
  max-width: 100%;
  height: auto;
}

.brand-logo-gis {
  width: 64px;
  max-height: 30px;
}

.brand-logo-idfc {
  width: 72px;
  max-height: 30px;
}

.eyebrow {
  margin: 0;
  color: var(--primary-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0.2rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.surface {
  background: linear-gradient(155deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #e5edf8;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.2vw, 1.6rem);
}

.hidden {
  display: none !important;
}

.start-grid {
  display: grid;
  gap: 1.1rem;
}

.select-block {
  background: var(--surface-soft);
  border: 1px solid #e1ebf8;
  border-radius: 18px;
  padding: 1rem;
}

.select-title {
  margin: 0 0 0.7rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.choice-btn {
  border: 1px solid #c8d7ee;
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.choice-btn:hover {
  transform: translateY(-1px);
  border-color: #93b6e8;
}

.choice-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  border-color: #d7e1ee;
  box-shadow: none;
}

.choice-btn.active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--primary) 0%, #1f8af7 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 106, 235, 0.33);
}

.cta {
  border: none;
  border-radius: 14px;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(120deg, #0b57c2 0%, #1986f2 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

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

.cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cta-link {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cta-link:visited,
.cta-link:hover,
.cta-link:active,
.cta-link:focus {
  text-decoration: none !important;
  color: #fff;
}

.ghost-btn {
  border: 1px solid #c8d8ee;
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  background: #fff;
  color: #2a4670;
  font-weight: 700;
  cursor: pointer;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.meta-item {
  background: #f7fbff;
  border: 1px solid #dfebf7;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6881a3;
}

.meta-value {
  display: block;
  font-weight: 800;
  margin-top: 0.2rem;
}

.progress-wrap {
  margin: 0.1rem 0 1rem;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #4f6283;
  margin-bottom: 0.35rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #dce8f7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, #14b8a6 0%, #0891b2 100%);
  transition: width 0.24s ease;
}

.category-block {
  margin-top: 1rem;
  border: 1px solid #d8e5f7;
  border-radius: 18px;
  background: linear-gradient(155deg, #f7fbff 0%, #f2f8ff 100%);
  box-shadow: 0 10px 24px rgba(20, 62, 124, 0.08);
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid #d9e8fa;
  background: linear-gradient(120deg, #eaf4ff 0%, #f0fbff 100%);
}

.category-title {
  margin: 0;
  font-size: 1.05rem;
  font-family: "Space Grotesk", sans-serif;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 800;
  color: #1557a4;
  border: 1px solid #bad5f6;
  background: #ffffff;
  white-space: nowrap;
}

.category-questions {
  padding: 0.8rem;
}

.question-card {
  border: 1px solid #d9e5f5;
  border-radius: 16px;
  padding: 0.85rem;
  background: #fff;
  margin-bottom: 0.72rem;
}

.question-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.question-id {
  margin: 0;
  color: #7490b4;
  font-size: 0.82rem;
  font-weight: 700;
}

.question-text {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.critical-pill {
  border-radius: 999px;
  background: #feeaec;
  color: #b42318;
  border: 1px solid #f9d1d6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.answer-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.radio-chip {
  position: relative;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid #cddcf1;
  border-radius: 999px;
  padding: 0.44rem 0.76rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.88rem;
  color: #334e72;
}

.radio-chip input:checked + span {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(120deg, #0078d4 0%, #1693ff 100%);
  box-shadow: 0 8px 16px rgba(0, 120, 212, 0.28);
}

.submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.error-box {
  border: 1px solid #f9c7cc;
  background: #fef2f3;
  color: #991b1b;
  border-radius: 14px;
  padding: 0.9rem;
}

.results-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-main,
.result-card,
.recommendations {
  border: 1px solid #dde8f6;
  border-radius: 16px;
  background: #fff;
  padding: 0.95rem;
}

.result-main h3,
.recommendations h3,
.result-card h3 {
  margin: 0 0 0.35rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-ready {
  background: #e8f8f4;
  color: #0f766e;
  border-color: #b9ece2;
}

.status-partial {
  background: #fff7e8;
  color: #b45309;
  border-color: #f5dfb7;
}

.status-not_ready {
  background: #fdecec;
  color: #b42318;
  border-color: #f6c9ce;
}

.percent {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
}

.small-muted {
  color: #617493;
  font-size: 0.86rem;
}

.recommendation-item {
  margin: 0.45rem 0 0;
  padding: 0.6rem;
  border-radius: 10px;
  background: #f7fbff;
  border: 1px solid #e2ecf8;
}

.recommendation-item.status-ready {
  background: #e8f8f4;
  border-color: #b9ece2;
  color: #0f766e;
}

.recommendation-item.status-partial {
  background: #fff7e8;
  border-color: #f5dfb7;
  color: #b45309;
}

.recommendation-item.status-not_ready {
  background: #fdecec;
  border-color: #f6c9ce;
  color: #b42318;
}

.recommendation-item p {
  margin: 0.35rem 0 0;
}

.recommendation-item.active {
  box-shadow: inset 0 0 0 1px rgba(17, 32, 58, 0.18);
}

@media (max-width: 900px) {
  .meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: calc(100% - 1rem);
    margin: 0.8rem auto 1.1rem;
  }

  .surface {
    border-radius: 18px;
    padding: 0.85rem;
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-side {
    align-items: flex-start;
  }

  .brand-logos {
    align-self: flex-start;
  }

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

  .meta-row {
    grid-template-columns: 1fr;
  }
}
