:root {
  --main-color: rgb(147, 72, 194);
  --bg-color: #fff;
  --image-border-radius: 30px;
  --font-family: Open Sans;
  --main-text-color: black;
  --title-font-size: 28px;
  --subtitle-font-size: 24px;
  --title-font-size-mob: 20px;
  --subtitle-font-size-mob: 20px;
  --main-text-font-size-mob: 18px;
  --main-text-font-size-deck: 20px;
  --quiz-button-padding-height: 20px;
  --quiz-button-padding-width: 40px;
  --quiz-button-padding-height-mob: 15px;
  --quiz-button-padding-width-mob: 30px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family), sans-serif;
}

.one-p {
  position: relative;
}

.one-p .container {
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px 30px 30px;
  width: 100%;
}

.one-p .main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 20px;
}

.one-p .main__block {
  position: relative;
}

.one-p .main__pic {
  overflow: hidden;
  display: flex;
  max-width: 500px;
  max-height: 300px;
  width: 100%;
  margin: auto;
}

.one-p .main__pic::before {
  position: absolute;
  content: "";
  display: block;
  margin: 5px auto;
  height: 3px;
  width: 60%;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-color);
}

.one-p .main__pic img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.one-p .main__text {
  color: var(--main-text-color);
  font-size: var(--title-font-size);
  text-align: center;
  margin: 30px auto 0;
  font-weight: 700;
}

.one-p .main__subtext {
  font-size: var(--subtitle-font-size);
  color: var(--main-color);
  text-align: center;
  margin: 30px auto;
}

.one-p .slider {
  max-width: 500px;
  position: relative;
  margin: 0 auto 15px;
  height: auto;
}

.one-p .slider-item {
  animation: fade 1.5s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.one-p .slider-item[style*="display: none"] {
  display: none;
}

.one-p .slider-text {
  color: #000;
  font-size: var(--main-text-font-size-deck);
  font-weight: 500;
  margin: 15px auto 8px;
}

.one-p .slider-description {
  color: #000;
  text-align: center;
  padding: 10px 5px;
  margin-bottom: 15px;
  width: 100%;
  list-style: none;
}

.one-p .slider .item__question {
  padding: 15px;
  margin-top: 50px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0px -1px 21px 0px rgba(0, 0, 0, 0.75);
}

.one-p .slider .item__question.last {
  text-align: center;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 5px;
  height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.one-p .slider .item__question .number__question {
  width: 100%;
  padding: 3px;
  background: var(--main-color);
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 10px;
}

.one-p .slider .final_text {
  display: block;
  width: 100%;
}

.one-p .slider .final_text.title {
  font-size: 32px;
}

.one-p .slider .final_text.small {
  font-size: 14px;
}

.one-p .form_radio_btn {
  max-width: 450px;
  width: 100%;
  margin: 0 auto 7px;
  display: block;
  cursor: pointer;
  border: 1px solid var(--main-color);
  border-radius: 6px;
  user-select: none;
  transition: all 0.3s ease;
  transform: scale(1);
}

.one-p .form_radio_btn p {
  line-height: 30px;
  font-weight: 400;
  font-size: var(--main-text-font-size-deck);
  padding: 6px 10px;
  margin: 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.one-p .form_radio_btn:hover {
  background: var(--main-color);
  opacity: 0.8;
  transform: scale(1.02);
}

.one-p .form_radio_btn:hover p {
  color: #fff;
}

.one-p .form_radio_btn:active {
  transform: scale(0.98);
}

/* Navigation Buttons - Inside Questions */
.nav-buttons {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 20px;
}

.nav-btn {
  display: flex;
  justify-content: center;
  max-width: 30px;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgb(147, 72, 194);
}

.nav-buttons .nav-btn svg {
  padding: 2px;
}

.one-p .quiz-button {
  background: var(--main-color);
  padding: var(--quiz-button-padding-height) var(--quiz-button-padding-width);
  margin: 12px;
  display: inline-block;
  color: #ffffff;
  font-size: 20px;
  letter-spacing: 2.5px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: scale(1);
}

.one-p .quiz-button:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.one-p .quiz-button:active {
  transform: scale(0.95);
}

.one-p .quiz-button.btn-gradient {
  background: linear-gradient(to right, rgb(147, 72, 194), #b411c0);
}

.one-p .quiz-button.btn-pulsing {
  display: inline-block;
  color: #fff;
  padding: 20px 100px;
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(to right, #89216b, #da4453);
  font-size: 29px;
  font-family: Roboto, sans-serif;
  transition: all 2s ease;
  text-transform: uppercase;
  text-decoration: none;
  animation: pulsing 1s ease-in-out infinite;
}

.one-p .one-p-background {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  height: 100%;
  width: 100vw;
}

.one-p .one-p-background .one-p-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.one-p .one-p-background .one-p-overlay.black {
  background-color: rgb(0, 0, 0);
}

.one-p .one-p-background .one-p-overlay.white {
  background-color: rgb(255, 255, 255);
}

.one-p .one-p-background.color {
  background-color: var(--bg-color);
}

.hidden {
  display: none !important;
}

.scaleOnHover:hover {
  transform: scale(1.1);
}

.pulsing {
  animation: pulsing 1s infinite;
}

.lines span {
  position: absolute;
}

.lines span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, rgba(43, 8, 8, 0), #e8b7db);
  animation: animateTop 2s linear infinite;
}

.lines span:nth-child(2) {
  top: 0;
  right: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to left, rgba(43, 8, 8, 0), #e8b7db);
  animation: animateRight 2s linear -1s infinite;
}

.lines span:nth-child(3) {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, rgba(43, 8, 8, 0), #e8b7db);
  animation: animateBottom 2s linear infinite;
}

.lines span:nth-child(4) {
  top: 0;
  left: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to left, rgba(43, 8, 8, 0), #e8b7db);
  animation: animateLeft 2s linear -1s infinite;
}

@keyframes pulsing {
  50% {
    transform: scale(1.1);
  }
}

@keyframes animateTop {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes animateRight {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes animateBottom {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes animateLeft {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .one-p .main__text {
    font-size: 25px;
  }
  .one-p .slider-text {
    font-size: var(--main-text-font-size-deck);
  }
  .one-p .slider .form_radio_btn p {
    font-size: var(--main-text-font-size-deck);
  }
  .one-p .slider .item__question {
    margin-top: 40px;
  }
  .one-p .slider .item__question.last {
    margin-top: 0;
    padding: 5px;
  }
}

@media (max-width: 768px) {
  .one-p .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
  }
  .one-p .main__text {
    font-size: 20px;
  }
  .one-p .main__subtext {
    font-size: 16px;
  }
  .one-p .slider-text {
    font-size: var(--main-text-font-size-mob);
  }
  .one-p .slider .form_radio_btn p {
    font-size: var(--main-text-font-size-mob);
  }
  .one-p .quiz-button {
    padding: 20px 30px;
    font-size: 18px;
  }
}

@media screen and (max-width: 576px) {
  .one-p .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
  }
  .one-p .main__text {
    font-size: var(--title-font-size-mob);
    margin-top: 24px;
  }
  .one-p .main__subtext {
    font-size: var(--subtitle-font-size-mob);
  }
  .one-p .slider-text {
    font-size: var(--main-text-font-size-mob);
    margin: 5px auto;
  }
  .one-p .slider-description {
    font-size: 16px;
  }
  .one-p .slider .form_radio_btn p {
    font-size: var(--main-text-font-size-mob);
    line-height: 1.2;
  }
  .one-p .slider .quiz-button {
    padding: var(--quiz-button-padding-height-mob)
      var(--quiz-button-padding-width-mob);
    font-size: 16px;
  }
  .one-p .form_radio_btn:hover {
    transform: scale(1.01);
  }
  .one-p .slider .final_text {
    font-size: 15px;
  }
  .one-p .slider .final_text.title {
    font-size: 17px;
  }
}

@media screen and (max-height: 600px) {
  .one-p .container {
    padding: 5px 20px 15px;
  }
  
  .one-p .main__pic {
    max-width: 350px;
    max-height: 200px;
  }
  
  .one-p .main__text {
    font-size: 18px;
    margin: 15px auto 0;
  }
  
  .one-p .main__subtext {
    font-size: 16px;
    margin: 15px auto;
  }
  
  .one-p .slider-text {
    font-size: 16px;
    margin: 10px auto 5px;
  }
  
  .one-p .slider-description {
    padding: 8px 5px;
    margin-bottom: 10px;
    font-size: 14px;
  }
  
  .one-p .slider .item__question {
    margin-top: 30px;
    padding: 12px;
  }
  
  .one-p .slider .item__question .number__question {
    font-size: 18px;
    padding: 2px;
  }
  
  .one-p .slider .final_text {
    font-size: 14px;
  }

  .one-p .slider .final_text.title {
    font-size: 15px;
    line-height: 1;
  }
  
  .one-p .slider .form_radio_btn {
    margin: 0 auto 5px;
  }
  
  .one-p .slider .form_radio_btn p {
    font-size: 16px;
    padding: 5px 8px;
    line-height: 1.2;
  }
  
  .one-p .quiz-button {
    padding: 15px 25px;
    font-size: 16px;
    margin: 8px;
  }
  
  .one-p .quiz-button.btn-pulsing {
    padding: 10px 20px;
    font-size: 22px;
  }
  
  .one-p .slider {
    margin: 0 auto 10px;
  }
}