@font-face {
  font-family: "Poppins";
  src: url("https://cdn.prod.website-files.com/63c809f8ebc79974a6de1b49/64429be9ae22a6bfcd7af167_Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("https://cdn.prod.website-files.com/63c809f8ebc79974a6de1b49/64429be90b1b8182ee9c2c33_Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Rajdhani";
  src: url("https://cdn.prod.website-files.com/63c809f8ebc79974a6de1b49/64429c316adf3e9a002f7c51_Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue-50: #e6f0ff;
  --blue-100: #6ba6ff;
  --blue-200: #2b7fff;
  --blue-300: #0065ff;
  --blue-brand: #1442dd;
  --navy-900: #070939;
  --navy-800: #0c0e45;
  --navy-700: #001544;
  --ink: #1d252f;
  --muted: #5a697a;
  --line: #e5e9f3;
  --surface: #ffffff;
  --surface-soft: #f4f5f9;
  --ghost: #f2f6ff;
  --gold: #ffc431;
  --yellow: #fffc31;
  --danger: #c9372c;
  --success: #168a4a;
  --shadow: 0 24px 80px rgba(7, 9, 57, 0.12);
  --radius: 8px;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--ink);
  background: var(--ghost);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ghost);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(43, 127, 255, 0.14), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--ghost) 58%, #ffffff 100%);
  color: var(--ink);
}

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

button {
  border: 0;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 44px) 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  font-family: "Rajdhani", "Poppins", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 101, 255, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(34px, 6vw, 76px) 0 clamp(26px, 5vw, 48px);
}

.section-label {
  color: var(--blue-brand);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 14px;
  color: var(--navy-900);
  font-family: "Rajdhani", "Poppins", sans-serif;
  font-size: clamp(3rem, 6vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.65;
}

.layout {
  max-width: 980px;
}

.form-panel {
  min-width: 0;
}

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

.form-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 56px rgba(7, 9, 57, 0.08);
}

.form-section {
  padding: clamp(18px, 3vw, 30px);
}

.section-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.section-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: var(--blue-300);
  font-family: "Rajdhani", "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.section-heading h2 {
  margin-bottom: 4px;
  color: var(--navy-900);
  font-size: 1.1rem;
  line-height: 1.25;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.field-grid {
  display: grid;
  gap: 16px;
}

.field-grid.two,
.score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
}

.field > span,
.field legend {
  color: var(--navy-900);
  font-size: 0.84rem;
  font-weight: 600;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d9e0ee;
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 13px;
  font-size: 0.94rem;
  line-height: 1.45;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

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

.field input:not([type="checkbox"]):not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-300);
  box-shadow: 0 0 0 4px rgba(0, 101, 255, 0.12);
}

.field input:not([type="checkbox"]):not([type="radio"])::placeholder,
.field textarea::placeholder {
  color: #8a96a8;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea,
.choice-block.invalid {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.78rem;
  line-height: 1.35;
}

.conditional[hidden] {
  display: none !important;
}

.choice-block,
.score-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-grid,
.score-options {
  display: grid;
  gap: 10px;
}

.choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid label,
.score-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #d9e0ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.choice-grid input,
.score-options input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--blue-300);
}

.choice-grid label:has(input:checked),
.score-options label:has(input:checked) {
  border-color: var(--blue-300);
  background: var(--blue-50);
  color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(0, 101, 255, 0.08);
}

.score-grid {
  display: grid;
  gap: 16px;
}

.score-options {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.score-options label {
  justify-content: center;
  min-height: 48px;
  padding: 8px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.form-status {
  min-height: 20px;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

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

.button.primary {
  color: #ffffff;
  background: var(--blue-300);
  box-shadow: 0 14px 30px rgba(0, 101, 255, 0.24);
}

.button.primary:hover {
  background: #0756d9;
}

.button.secondary {
  color: var(--navy-900);
  background: linear-gradient(90deg, var(--yellow), var(--gold));
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 9, 57, 0.5);
  backdrop-filter: blur(8px);
}

.success-modal[hidden] {
  display: none;
}

.success-card {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--success);
  font-weight: 700;
}

.success-card h2 {
  margin: 18px 0 8px;
  color: var(--navy-900);
  font-size: 1.6rem;
}

.success-card p {
  color: var(--muted);
  line-height: 1.6;
}

pre {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faff;
  padding: 16px;
  color: var(--navy-800);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.in-modal {
  justify-content: flex-start;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-inline: 14px;
  }

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

  .hero {
    padding-top: 34px;
  }

  .field-grid.two,
  .score-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

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

  .score-options {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .form-status {
    text-align: left;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.55rem;
  }

  .form-section,
  .success-card {
    padding: 18px;
  }
}
