.three-ma-survey {
  --navy: #071f40;
  --navyTint: #0d2d5c;
  --gold: #ebab22;
  --red: #c21f32;
  --white: #ffffff;
  --lightGray: #f4f5f7;
  --darkGray: #1f2937;
  --border: #d9dee8;
  color: var(--darkGray);
  font-family: "Raleway", Arial, sans-serif;
  line-height: 1.6;
}

.three-ma-survey * {
  box-sizing: border-box;
}

.three-ma-survey h1,
.three-ma-survey h2,
.three-ma-survey h3,
.three-ma-survey button,
.three-ma-survey__q-meta,
.three-ma-survey__progress,
.three-ma-survey__section-heading span {
  font-family: "Montserrat", Arial, sans-serif;
}

.three-ma-survey__notice {
  border-radius: 10px;
  margin: 0 0 18px;
  padding: 14px 16px;
  font-weight: 700;
}

.three-ma-survey__notice--success {
  background: #eef8f1;
  border-left: 5px solid #278447;
}

.three-ma-survey__notice--error {
  background: #fff1f2;
  border-left: 5px solid var(--red);
}

.three-ma-survey__complete {
  align-items: center;
  background: var(--navy);
  border-bottom: 8px solid var(--gold);
  color: var(--white);
  display: grid;
  justify-items: center;
  min-height: min(680px, 78vh);
  padding: 56px 24px;
  text-align: center;
}

.three-ma-survey__complete-logo {
  display: block;
  height: auto;
  margin-bottom: 28px;
  max-width: min(360px, 82vw);
  width: 360px;
}

.three-ma-survey__complete-card {
  max-width: 760px;
}

.three-ma-survey__complete-kicker {
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.three-ma-survey__complete h1 {
  margin: 0 0 18px;
}

.three-ma-survey__complete p {
  font-size: 1.08rem;
  margin: 0 auto 12px;
  max-width: 680px;
}

.three-ma-survey__hero {
  align-items: center;
  background: var(--navy);
  border-bottom: 8px solid var(--gold);
  color: var(--white);
  display: flex;
  gap: 28px;
  justify-content: center;
  padding: 34px 24px;
  text-align: center;
}

.three-ma-survey h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  max-width: 780px;
  text-transform: uppercase;
}

.three-ma-survey__logo {
  display: block;
  height: auto;
  max-width: min(320px, 82vw);
  width: 320px;
}

.three-ma-survey__form {
  background: linear-gradient(180deg, var(--lightGray) 0%, #fff 360px);
  padding: 30px 0 70px;
}

.three-ma-survey__layout {
  display: grid;
  gap: 28px;
  grid-template-columns: 300px 1fr;
}

.three-ma-survey__sidebar {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 35px rgba(7, 31, 64, .08);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  position: sticky;
  top: 24px;
}

.three-ma-survey__sidebar h2 {
  color: var(--navy);
  font-size: .9rem;
  letter-spacing: .1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.three-ma-survey__sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.three-ma-survey__sidebar a {
  align-items: start;
  border-radius: 8px;
  color: var(--darkGray);
  display: grid;
  font-size: .88rem;
  gap: 6px;
  grid-template-columns: 32px 1fr;
  padding: 9px 10px;
  text-decoration: none;
}

.three-ma-survey__sidebar a:hover {
  background: var(--lightGray);
  color: var(--navy);
}

.three-ma-survey__sidebar-link--active {
  background: var(--navy);
  color: var(--white) !important;
}

.three-ma-survey__sidebar a span {
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .75rem;
  font-weight: 900;
  padding-top: 2px;
}

.three-ma-survey__section {
  animation: three-ma-survey-section-in .18s ease-out;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(7, 31, 64, .06);
  margin-bottom: 24px;
  overflow: hidden;
}

@keyframes three-ma-survey-section-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.three-ma-survey__section[hidden],
.three-ma-survey__section:not(.three-ma-survey__section--active) {
  display: none;
}

.three-ma-survey__section-heading {
  align-items: center;
  background: var(--navy);
  border-bottom: 5px solid var(--gold);
  color: var(--white);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 34px 24px;
  text-align: center;
}

.three-ma-survey__section-heading p {
  color: var(--gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.three-ma-survey__section-heading h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1.08;
  margin: 0;
  text-transform: uppercase;
}

.three-ma-survey__section-heading span {
  background: rgba(235, 171, 34, .15);
  border: 1px solid rgba(235, 171, 34, .35);
  border-radius: 999px;
  color: var(--gold);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .07em;
  padding: 6px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.three-ma-survey__note {
  background: var(--lightGray);
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  margin: 22px 24px;
  padding: 18px 20px;
}

.three-ma-survey__note h3 {
  color: var(--navy);
  font-size: 1rem;
  margin: 0 0 6px;
}

.three-ma-survey__note p {
  margin: 0;
}

.three-ma-survey__question {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 18px 24px;
  padding: 18px;
}

.three-ma-survey__question--invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(194, 31, 50, .12);
}

.three-ma-survey__q-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.three-ma-survey__q-meta span {
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #5b6778;
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 4px 7px;
  text-transform: uppercase;
}

.three-ma-survey__q-meta span:first-child {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-size: .72rem;
  padding: 6px 9px;
}

.three-ma-survey__q-meta .three-ma-survey__q-instruction {
  background: #eef2f7;
  color: var(--navy);
}

.three-ma-survey__label {
  color: var(--navy);
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
}

.three-ma-survey__field-note,
.three-ma-survey__privacy-note,
.three-ma-survey__rank-warning {
  border-radius: 8px;
  font-size: .9rem;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.three-ma-survey__field-note {
  background: #eef2f7;
  color: var(--navy);
  font-weight: 700;
}

.three-ma-survey__privacy-note {
  background: #fff8e8;
  border-left: 4px solid var(--gold);
  color: var(--darkGray);
}

.three-ma-survey__rank-warning {
  background: #fff1f2;
  border-left: 4px solid var(--red);
  color: var(--red);
  font-weight: 700;
}

.three-ma-survey input[type="text"],
.three-ma-survey input[type="email"],
.three-ma-survey input[type="date"],
.three-ma-survey textarea,
.three-ma-survey select {
  background: #fff;
  border: 1px solid #c9d1de;
  border-radius: 10px;
  font-family: "Raleway", Arial, sans-serif;
  font-size: .95rem;
  outline: none;
  padding: 12px 13px;
  width: 100%;
}

.three-ma-survey textarea {
  min-height: 105px;
  resize: vertical;
}

.three-ma-survey input:focus,
.three-ma-survey textarea:focus,
.three-ma-survey select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(235, 171, 34, .2);
}

.three-ma-survey__options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.three-ma-survey__options label {
  align-items: flex-start;
  background: var(--lightGray);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  font-size: .92rem;
  gap: 9px;
  padding: 10px;
}

.three-ma-survey__options input {
  accent-color: var(--navy);
  margin-top: 4px;
}

.three-ma-survey__options--invalid {
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 8px;
}

.three-ma-survey__ranking {
  display: grid;
  gap: 8px;
}

.three-ma-survey__rank-row {
  align-items: center;
  background: var(--lightGray);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 110px;
  padding: 10px;
}

.three-ma-survey__rank-select--duplicate {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(194, 31, 50, .12) !important;
}

.three-ma-survey__pager {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px;
}

.three-ma-survey__progress {
  color: var(--navy);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.three-ma-survey__pager-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.three-ma-survey__pager-button {
  background: var(--gold);
  border: 0;
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 14px 22px;
  text-transform: uppercase;
}

.three-ma-survey__pager-button--secondary {
  background: var(--lightGray);
  border: 1px solid var(--border);
  color: var(--navy);
}

.three-ma-survey__pager-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.three-ma-survey__hp {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

@media (max-width: 960px) {
  .three-ma-survey__hero {
    display: grid;
  }

  .three-ma-survey__layout {
    grid-template-columns: 1fr;
  }

  .three-ma-survey__sidebar {
    max-height: none;
    position: relative;
    top: 0;
  }
}

@media (max-width: 640px) {
  .three-ma-survey__hero,
  .three-ma-survey__section-heading,
  .three-ma-survey__question,
  .three-ma-survey__note,
  .three-ma-survey__pager {
    margin-left: 0;
    margin-right: 0;
  }

  .three-ma-survey__rank-row {
    grid-template-columns: 1fr;
  }

  .three-ma-survey__pager {
    align-items: stretch;
    display: grid;
  }

  .three-ma-survey__pager-actions,
  .three-ma-survey__pager-button {
    width: 100%;
  }
}
