@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

.j50-diagnostic {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(180deg, #57a7c8 0%, #1f2f38 100%);
  color: #ffffff;
  padding: 70px 20px;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(31, 47, 56, 0.25);
}

.j50-diagnostic * {
  box-sizing: border-box;
}

.j50-diagnostic-inner {
  max-width: 920px;
  margin: 0 auto;
}

.j50-diagnostic-header {
  text-align: center;
  margin-bottom: 34px;
}

.j50-diagnostic-label {
  display: inline-flex;
  background: #e7393b;
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.j50-diagnostic-header h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 800;
  color: #ffffff;
}

.j50-diagnostic-header p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.j50-quiz-form {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  padding: 34px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.12);
}

.j50-question {
  display: none;
}

.j50-question.active {
  display: block;
}

.j50-question h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.22;
  font-weight: 800;
}

.j50-help {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.45;
}

.j50-options {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.j50-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2f38;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  border: 2px solid transparent;
}

.j50-options label:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #57a7c8;
}

.j50-options input[type="radio"] {
  width: 19px;
  height: 19px;
  accent-color: #e7393b;
  flex: 0 0 auto;
}

.j50-question select,
.j50-question input[type="text"] {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  margin-top: 16px;
  font-family: inherit;
  font-size: 16px;
  color: #1f2f38;
  background: rgba(255, 255, 255, 0.95);
  outline: none;
}

.j50-question select:focus,
.j50-question input[type="text"]:focus {
  box-shadow: 0 0 0 3px rgba(231, 57, 59, 0.35);
}

.j50-quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
}

.j50-main-btn,
.j50-secondary-btn {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.j50-main-btn {
  background: #e7393b;
  color: #ffffff;
}

.j50-main-btn:hover {
  background: #c92f31;
  transform: translateY(-2px);
}

.j50-secondary-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #1f2f38;
}

.j50-secondary-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

#j50Submit {
  display: none;
}

.j50-result {
  margin-top: 34px;
  background: #ffffff;
  color: #1f2f38;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.j50-result-label {
  display: inline-flex;
  background: #57a7c8;
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.j50-result h3 {
  margin: 0 0 22px;
  color: #1f2f38;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 800;
}

.j50-result-list {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.j50-result-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f3f6f8;
  border-radius: 16px;
  padding: 18px;
  border-left: 7px solid #57a7c8;
}

.j50-result-step.secondary {
  border-left-color: #e7393b;
}

.j50-result-step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 999px;
  background: #57a7c8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 800;
}

.j50-result-step.secondary .j50-result-step-number {
  background: #e7393b;
}

.j50-result-step-content strong {
  display: block;
  color: #1f2f38;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 5px;
}

.j50-result-step-content span {
  display: block;
  color: #566b76;
  font-size: 15px;
  line-height: 1.45;
}

.j50-result-contact {
  margin-top: 28px;
  background: #f3f6f8;
  border-radius: 18px;
  padding: 26px;
  border: 1px solid #d8e3e8;
}

.j50-result-contact h4 {
  margin: 0 0 10px;
  color: #1f2f38;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.j50-result-contact p {
  margin: 0 0 20px;
  color: #566b76;
  font-size: 16px;
  line-height: 1.5;
}

.j50-lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.j50-lead-form input {
  min-height: 48px;
  border: 1px solid #cfdce2;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #1f2f38;
  background: #ffffff;
  outline: none;
}

.j50-lead-form input:focus {
  border-color: #e7393b;
  box-shadow: 0 0 0 3px rgba(231, 57, 59, 0.16);
}

.j50-lead-form button {
  grid-column: 1 / -1;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: #e7393b;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.j50-lead-form button:hover {
  background: #c92f31;
  transform: translateY(-2px);
}

.j50-lead-note {
  margin-top: 14px !important;
  font-size: 13px !important;
  color: #7a8c94 !important;
}

@media (max-width: 760px) {
  .j50-diagnostic {
    padding: 48px 16px;
    border-radius: 20px;
  }

  .j50-quiz-form,
  .j50-result {
    padding: 24px;
    border-radius: 18px;
  }

  .j50-quiz-navigation {
    flex-direction: column;
  }

  .j50-main-btn,
  .j50-secondary-btn {
    width: 100%;
  }

  .j50-result-step {
    flex-direction: column;
  }

  .j50-lead-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .j50-diagnostic {
    padding: 38px 14px;
  }

  .j50-quiz-form,
  .j50-result {
    padding: 20px;
  }

  .j50-options label {
    font-size: 15px;
    align-items: flex-start;
  }

  .j50-result-contact {
    padding: 20px;
  }
}