:root {
  --page-bg: #edf3f8;
  --card: rgba(255, 255, 255, 0.96);
  --card-solid: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #d9e2ec;
  --border-strong: #c5d1de;
  --primary: #174f78;
  --primary-dark: #0d314c;
  --primary-soft: #e6f2fa;
  --accent: #27a3a3;
  --required: #c62828;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.14);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(39, 163, 163, 0.18), transparent 26rem),
    radial-gradient(circle at 85% 8%, rgba(23, 79, 120, 0.18), transparent 28rem),
    linear-gradient(135deg, #f7fbff 0%, var(--page-bg) 48%, #f9fbfd 100%);
  color: var(--text);
  line-height: 1.55;
}

.page-wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 48px 18px;
  overflow: hidden;
}

.background-orb {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-one {
  width: 320px;
  height: 320px;
  left: -130px;
  top: 120px;
  background: rgba(39, 163, 163, 0.16);
}

.orb-two {
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: 80px;
  background: rgba(23, 79, 120, 0.14);
}

.survey-card {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.survey-header {
  margin: -34px -34px 30px;
  padding: 34px;
  border-radius: var(--radius-lg) var(--radius-lg) 34px 34px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary) 60%, #287d8d);
  color: #fff;
  overflow: hidden;
}

.brand-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.logo {
  display: block;
  max-width: 235px;
  height: auto;
  margin: 0 auto 18px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p { margin: 0; }

h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.header-copy {
  max-width: 600px;
  margin: 14px auto 0;
  color: rgba(255,255,255,0.86);
  font-size: 1.06rem;
}

.required-note {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
}

.required-star {
  color: var(--required);
  font-weight: 900;
}

.survey-header .required-star { color: #ffdd57; }

.intro {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #dceaf3;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ffffff, #f4fbfd);
  color: var(--muted);
  text-align: center;
}

.section-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-solid);
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.06);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.section-number {
  flex: 0 0 auto;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: 1.32rem;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin-top: 3px;
  color: var(--muted);
}

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

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

label {
  color: #263246;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: #fbfdff;
  color: var(--text);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover { border-color: #9eb2c5; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(23, 79, 120, 0.13);
}

input::placeholder,
textarea::placeholder { color: #9aa6b2; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.rating-table {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.rating-table th,
.rating-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.rating-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 230px;
  text-align: left;
  background: #fff;
  box-shadow: 12px 0 18px -18px rgba(23, 32, 51, 0.35);
}

.rating-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, #f6fbff, #edf5fb);
  color: #324154;
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rating-table thead th:first-child { z-index: 4; background: linear-gradient(180deg, #f6fbff, #edf5fb); }
.rating-table tbody tr:last-child th,
.rating-table tbody tr:last-child td { border-bottom: 0; }
.rating-table tbody tr:hover th,
.rating-table tbody tr:hover td { background-color: #f8fcff; }
.rating-table tbody tr:hover th:first-child { background-color: #f8fcff; }

.rating-table input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  border: 2px solid #a8b7c7;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
}

.rating-table input[type="radio"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform 140ms ease;
  background: var(--primary);
}

.rating-table input[type="radio"]:checked {
  border-color: var(--primary);
  background: #eef7fc;
}

.rating-table input[type="radio"]:checked::before { transform: scale(1); }
.rating-table input[type="radio"]:focus { box-shadow: 0 0 0 4px rgba(23, 79, 120, 0.16); }

.compact-questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.compact-questions .section-heading,
.compact-questions .field:last-child {
  grid-column: 1 / -1;
}

.antispam-box {
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid #d8e8ef;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ffffff, #f2fbfb);
  display: grid;
  gap: 12px;
}

.antispam-box input { max-width: 150px; }

button {
  width: 100%;
  margin-top: 24px;
  padding: 16px 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #218c9b);
  color: #fff;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(23, 79, 120, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

button:hover,
button:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(23, 79, 120, 0.34);
  filter: brightness(1.03);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(23, 79, 120, 0.22);
}

.privacy-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 820px) {
  .page-wrap { padding: 24px 12px; }
  .survey-card { padding: 22px; border-radius: 22px; }
  .survey-header { margin: -22px -22px 24px; padding: 28px 20px; border-radius: 22px 22px 28px 28px; }
  .form-grid,
  .compact-questions { grid-template-columns: 1fr; }
  .section-card { padding: 20px; }
  .section-heading { gap: 12px; }
  .section-number { width: 40px; height: 40px; border-radius: 12px; }
}

@media (max-width: 560px) {
  .page-wrap { padding: 14px 8px; }
  .survey-card { padding: 16px; }
  .survey-header { margin: -16px -16px 20px; padding: 24px 14px; }
  .logo { max-width: 205px; }
  .section-card { padding: 16px; }
  .section-heading { flex-direction: column; }
  .rating-table { min-width: 760px; }
  .rating-table th,
  .rating-table td { padding: 12px 10px; }
}

