/* Visual layer based on the marketing-agency quiz. Business logic stays local. */
#custom-quiz-section {
  padding: 72px 0 100px !important;
  background: #f7f7f7 !important;
}

#custom-quiz-section .quiz-heading {
  max-width: 900px;
  margin: 0 auto 42px;
}

#custom-quiz-section .quiz-heading h2 {
  margin-bottom: 18px;
  color: #f5bd3e;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.5px;
}

#custom-quiz-section .quiz-heading p {
  color: #393939;
  font-size: 16px;
  line-height: 1.55;
}

#custom-quiz-section .quiz-container {
  max-width: 1320px;
  padding: 0;
  gap: 68px;
  align-items: stretch;
}

#custom-quiz-section .quiz-form-wrap {
  position: relative;
  flex: 0 0 870px;
  min-height: 520px;
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(24, 34, 48, 0.09);
}

#custom-quiz-section .quiz-form-header {
  min-height: 92px;
  padding: 0 45px;
  background: #111d2b;
}

#custom-quiz-section .quiz-form-header .quiz-title {
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

#custom-quiz-section .quiz-form-header .quiz-title .quiz-icon {
  width: 20px;
  height: 24px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  background: transparent;
  border: 2px solid #7695ff;
  border-radius: 2px;
  position: relative;
}

#custom-quiz-section .quiz-form-header .quiz-title .quiz-icon::before,
#custom-quiz-section .quiz-form-header .quiz-title .quiz-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: #7695ff;
}

#custom-quiz-section .quiz-form-header .quiz-title .quiz-icon::before {
  top: 6px;
  box-shadow: 0 5px 0 #7695ff, 0 10px 0 #7695ff;
}

#custom-quiz-section .quiz-form-header .quiz-step-counter {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

#custom-quiz-section .quiz-progress-bar {
  height: 5px;
  background: #d4d4d4;
}

#custom-quiz-section .quiz-progress-fill {
  background: #7897ff;
}

#custom-quiz-section #customQuizForm {
  min-height: 423px;
}

#custom-quiz-section .quiz-form-body {
  position: relative;
  min-height: 330px;
  padding: 52px 65px 20px;
  overflow: hidden;
}

#custom-quiz-section .quiz-step {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateX(35px);
}

#custom-quiz-section .quiz-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: quizStepInRight 420ms cubic-bezier(.22, .7, .25, 1) both;
}

#custom-quiz-section .quiz-step.active.from-left {
  animation-name: quizStepInLeft;
}

#custom-quiz-section .quiz-step.is-leaving {
  position: absolute;
  inset: 52px 65px 20px;
  display: block;
  width: auto;
  opacity: 1;
  animation: quizStepOutLeft 300ms ease both;
  pointer-events: none;
}

#custom-quiz-section .quiz-step.is-leaving.to-right {
  animation-name: quizStepOutRight;
}

#custom-quiz-section .quiz-form-body::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 28%;
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(120, 151, 255, .12), transparent);
}

#custom-quiz-section .quiz-form-wrap.is-transitioning .quiz-form-body::after {
  animation: quizSweep 520ms ease-out both;
}

@keyframes quizStepInRight {
  from { opacity: 0; transform: translateX(42px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes quizStepInLeft {
  from { opacity: 0; transform: translateX(-42px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes quizStepOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-32px); }
}

@keyframes quizStepOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(32px); }
}

@keyframes quizSweep {
  0% { left: -45%; opacity: 0; }
  22% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

#custom-quiz-section .quiz-step h3 {
  margin-bottom: 20px;
  color: #262626;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

#custom-quiz-section .quiz-radio-group {
  gap: 0;
}

#custom-quiz-section .quiz-radio-label {
  min-height: 43px;
  padding: 0;
  gap: 12px;
  color: #252525;
  font-size: 15px;
}

#custom-quiz-section .quiz-radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  border: 2px solid #8ca6ff;
}

#custom-quiz-section .quiz-radio-label input[type="radio"]:checked {
  border-color: #6688ff;
}

#custom-quiz-section .quiz-radio-label input[type="radio"]:checked::after {
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: #6688ff;
}

#custom-quiz-section .quiz-text-input,
#custom-quiz-section .quiz-textarea,
#custom-quiz-section .quiz-phone-wrap {
  margin-bottom: 14px;
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 10px;
}

#custom-quiz-section .quiz-text-input,
#custom-quiz-section .quiz-textarea {
  padding: 15px 18px;
}

#custom-quiz-section .quiz-textarea {
  min-height: 86px;
}

#custom-quiz-section .quiz-final-kicker {
  margin: 0 0 8px;
  color: #7897ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#custom-quiz-section .quiz-final-copy {
  max-width: 620px;
  margin: -8px 0 22px;
  color: #757575;
  font-size: 14px;
  line-height: 1.45;
}

#custom-quiz-section .quiz-phone-flag {
  padding: 14px;
  background: #f1f1f1;
}

#custom-quiz-section .quiz-phone-input {
  min-width: 0;
  padding: 15px 14px;
  background: #f7f7f7;
}

#custom-quiz-section .quiz-form-footer {
  min-height: 86px;
  padding: 0 65px 34px;
  justify-content: space-between;
}

#custom-quiz-section .quiz-btn-back {
  padding: 12px 0;
  color: #666;
  font-weight: 500;
}

#custom-quiz-section .quiz-btn-back:disabled {
  opacity: 0.72;
  cursor: default;
}

#custom-quiz-section .quiz-btn-next,
#custom-quiz-section .quiz-btn-submit {
  min-height: 45px;
  margin-left: auto;
  padding: 0 30px;
  color: #171717;
  background: #ffda0a;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

#custom-quiz-section .quiz-btn-next:hover,
#custom-quiz-section .quiz-btn-submit:hover {
  background: #f5c900;
}

#custom-quiz-section .quiz-sidebar {
  width: 382px;
  gap: 0;
}

#custom-quiz-section .quiz-sidebar-card {
  position: relative;
  height: 100%;
  padding: 58px 40px 30px;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(24, 34, 48, 0.08);
}

#custom-quiz-section .quiz-online-badge {
  position: absolute;
  top: -17px;
  left: 50%;
  margin: 0;
  padding: 8px 25px;
  transform: translateX(-50%);
  background: #82aa70;
  font-size: 15px;
}

#custom-quiz-section .quiz-sidebar-text {
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.5;
}

#custom-quiz-section .quiz-specialist {
  margin-bottom: 22px;
  gap: 14px;
}

#custom-quiz-section .quiz-specialist-photo {
  display: block;
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

#custom-quiz-section .quiz-specialist-name {
  font-size: 16px;
}

#custom-quiz-section .quiz-benefits-title {
  margin: 0 0 14px;
  font-size: 15px;
}

#custom-quiz-section .quiz-benefit-item {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 14px;
}

#custom-quiz-section .quiz-benefit-icon {
  width: 54px;
  height: 54px;
  overflow: hidden;
  background: transparent;
  border-radius: 50%;
}

#custom-quiz-section .quiz-benefit-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

#custom-quiz-section .quiz-specialist-icons a {
  overflow: hidden;
  background: transparent;
}

#custom-quiz-section .quiz-specialist-icons img {
  display: block;
  width: 100%;
  height: 100%;
}

#custom-quiz-section .quiz-benefit-text {
  font-size: 13px;
  line-height: 1.35;
}

#custom-quiz-section .quiz-success {
  padding: 58px 40px 30px;
}

@media (max-width: 1199px) {
  #custom-quiz-section .quiz-container {
    max-width: 940px;
    gap: 30px;
  }

  #custom-quiz-section .quiz-form-wrap {
    flex-basis: 640px;
  }

  #custom-quiz-section .quiz-sidebar {
    width: 270px;
  }

  #custom-quiz-section .quiz-sidebar-card {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 768px) {
  #custom-quiz-section {
    padding: 50px 0 70px !important;
  }

  #custom-quiz-section .quiz-heading {
    margin-bottom: 32px;
    padding: 0 18px;
  }

  #custom-quiz-section .quiz-heading h2 {
    font-size: 27px;
    line-height: 1.12;
    letter-spacing: -0.3px;
  }

  #custom-quiz-section .quiz-heading p {
    font-size: 15px;
  }

  #custom-quiz-section .quiz-heading p br {
    display: none;
  }

  #custom-quiz-section .quiz-container {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  #custom-quiz-section .quiz-form-wrap {
    width: 100%;
    min-height: 494px;
    border-radius: 18px;
    box-shadow: none;
  }

  #custom-quiz-section .quiz-form-header {
    min-height: 59px;
    padding: 0 20px;
  }

  #custom-quiz-section .quiz-form-header .quiz-title {
    gap: 0;
    font-size: 12px;
  }

  #custom-quiz-section .quiz-form-header .quiz-title .quiz-icon {
    display: none;
  }

  #custom-quiz-section #customQuizForm {
    min-height: 430px;
  }

  #custom-quiz-section .quiz-form-body {
    min-height: 286px;
    padding: 25px 20px 18px;
  }

  #custom-quiz-section .quiz-step.is-leaving {
    inset: 25px 20px 18px;
  }

  #custom-quiz-section .quiz-step h3 {
    font-size: 20px;
  }

  #custom-quiz-section .quiz-radio-label {
    min-height: 36px;
    font-size: 15px;
  }

  #custom-quiz-section .quiz-form-footer {
    min-height: 90px;
    padding: 0 20px 30px 40px;
  }

  #custom-quiz-section .quiz-btn-next,
  #custom-quiz-section .quiz-btn-submit {
    min-height: 50px;
    padding: 0 25px;
  }

  #custom-quiz-section .quiz-sidebar {
    display: none;
  }
}

@media (max-width: 380px) {
  #custom-quiz-section .quiz-heading h2 {
    font-size: 25px;
  }

  #custom-quiz-section .quiz-form-header .quiz-title {
    max-width: 255px;
  }
}
