/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.0
 Text Domain:  bricks
*/


/* Roots styles 
=================================================================
*/

:root {
  --transition: all 250ms ease-in-out;
}


/* Common styles 
=================================================================
*/

a,
button,
input {
  transition: var(--transition);
  outline: none;
}

.wpcf7-spinner,
.wpcf7-not-valid-tip {
  display: none !important;
}

.wpcf7-form label {
	margin: 0;
}

.wpcf7 form .wpcf7-response-output {
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  text-align: center;
  font-weight: 400;
}

.wpcf7 form.invalid .wpcf7-response-output {
  color: #ff0000;
}

.step-inputs .step-in input::-webkit-input-placeholder { color: #e3e3e3; }
.step-inputs .step-in input:-moz-placeholder { color: #e3e3e3; opacity: 1; }
.step-inputs .step-in input::-moz-placeholder { color: #e3e3e3; opacity: 1; }
.step-inputs .step-in input:-ms-input-placeholder { color: #e3e3e3; }
.step-inputs .step-in input::-ms-input-placeholder { color: #e3e3e3; }
.step-inputs .step-in input::placeholder { color: #e3e3e3; }

/* All styles 
=================================================================
*/

.honeypot-312-wrap {
  display: none !important;
}

/* offer */

.offer::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.3) 0%, #1a1a1a 100%);
}

.offer__h span {
  color: var(--bricks-color-geuaqf);
}

.offer__button {
  background: radial-gradient(#f5dd9d 0%, #e3b956 100%);
  box-shadow: 0px 3px 0px 0px #e8ab1e;
}

.offer__button:hover {
  background: radial-gradient(#f7d374 0%, #e3b956 100%);
}


/* quiz CF7 */

/* Контейнер квиза */

.quizform {   
  width: 100%;
  position: relative;
}

/* Прогрессбар */

.quizform__progress {
  background: #5b5033;
  border-radius: 7px;
  overflow: hidden;
  height: 14px;
  margin-bottom: 20px;
  position: relative;
}

.quizform__progress__bar {
  background-color: #d9ae3b;
  height: 100%;
  width: 0%;
  border-radius: 7px;
}

.quizform__progress__text {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.2;
}

/* Заголовки шагов */

.quizform__step__title {
  font-size: 22px;
  font-weight: 600;
  margin: 30px 0 20px;
  color: #ffffff;
  text-align: center;
}

/* Шаги */

.quizform__step {
  display: none;
}

.quizform__step.active {
  display: block;
}

/* Радио кнопки (обычные) */

.quizform .wpcf7-radio {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.quizform .wpcf7-radio > span {
  display: flex;
  width: calc(20% - 16px);
}

.quizform .quizform__step__last .wpcf7-radio > span {
  width: calc(33% - 10px);
}

.step-radio-image label {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: #fff;
}

.step-radio-default input[type="radio"],
.step-radio-image input[type="radio"] {
  display: none;
}

.step-radio-image label:hover img,
.step-radio-image input:checked + span img {
  opacity: .8;
}

.step-radio-image label > span {
  display: flex;
  flex-direction: column-reverse;
  text-align: center;
  position: relative;
}

.step-radio-image label > span::after {
  position: absolute;
  content: '';
  width: 50px;
  height: 50px;
  background-image: url('/wp-content/uploads/2025/09/quiz-check.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  top: calc(50% - 45px);
  left: calc(50% - 25px);
  display: flex;
  transition: var(--transition);
  opacity: 0;
}

.step-radio-image label > input:checked + span::after {
  opacity: 1;
}

.step-radio-image label > span img {
  width: 100%;
  height: auto;
  margin: 0 0 14px 0;
  transition: var(--transition);
  border-radius: 10px;
  overflow: hidden;
}

.quizform .step-radio-default label {
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.quizform .step-radio-default .wpcf7-radio > span label > span {
  display: flex;
  width: 100%;
  padding: 12px 22px;
  justify-content: center;
  color: #bdbcbc;
  font-weight: 500;
  border: 2px solid #787878;
  border-radius: 10px;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.quizform .step-radio-default label > input:checked + span {
  color: #ffffff;
  border: 2px solid #fff;
}

.step-inputs *,
.smallform * {
  width: 100%;
}

.step-inputs {
  margin: 30px auto 0;
  max-width: 570px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.step-inputs .step-in input,
.smallform .smallform__in input {
  background-color: transparent;
  border-radius: 10px;
  border: 2px solid #fff;
  padding: 16px 22px;
  line-height: 1.3;
  color: #fff;
}

.smallform__inputs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.invalid .step-inputs .step-in input,
.invalid .smallform__inputs .smallform__in input {
  border: 2px solid #ff0000;
}

.wpcf7-submit {
  font-size: 16px;
  color: #000000;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.3;
  border-radius: 10px;
  background-color: var(--bricks-color-geuaqf);
  background: radial-gradient(#f5dd9d 0%, #e3b956 100%);
  box-shadow: 0px 3px 0px 0px #e8ab1e;
  width: 100%;
  padding: 16px 21px;
  text-align: center;
  border: 0;
  transition: var(--transition);
}

.wpcf7-submit:hover {
  background: radial-gradient(#f7d374 0%, #e3b956 100%);
}

.accept-check label,
.smallform__accept label {
  display: flex;
  align-items: flex-start;
  color: #6a6a6a;
	cursor: pointer;
}

.accept-check label a,
.smallform__accept label a {
  text-decoration: underline;
  color: #6a6a6a;
}

.accept-check label a:hover,
.smallform__accept label a:hover {
  text-decoration: none;
  color: #6a6a6a;
}

.accept-check label input,
.smallform__accept label input {
  width: auto;
  margin: 2px 0 0 0;
}

.accept-check label > span,
.smallform__accept label > span {
  display: block;
  line-height: 1.3;
  padding: 0 0 0 12px;
}



/* Кнопки */

.quizform__buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  column-gap: 20px;
}

.quizform__button {
  background-color: var(--bricks-color-geuaqf);
  color: #000000;
  border: none;
  border-radius: 7px;
  padding: 14px 18px;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
}

.quizform__button:hover {
  background: #e7bf53;
}

/* Кнопка Назад */

.quizform__prev {
  background-color: #484848;
  color: #fff;
  display: none;
  opacity: 0;
}

.quizform__prev.active {
  display: flex;
  opacity: 1;
  margin: 0;
}

.quizform__prev:hover {
  background-color: #777676;
  color: #fff;
}

.quizform .wpcf7-list-item,
.smallform .wpcf7-list-item {
  margin: 0;
}


/* gifts */

.gifts::after,
.sanks::after {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(180deg, #1a1a1a 0%, rgba(26, 26, 26, 0.8) 51.01%, #1a1a1a 100%);
}

/* footer */

.footer__content a {
  text-decoration: underline;
}

.footer__content a:hover {
  text-decoration: none;
  opacity: .8;
}

/* Media styles 
=================================================================
*/

@media (max-width: 1169px) {



}

@media (max-width: 1023px) {

  .quizform .wpcf7-radio > span {
    width: calc(33% - 12px);
  }

  .quizform .quizform__step__last .wpcf7-radio > span {
    width: calc(50% - 10px);
  }

}

@media (max-width: 767px) {

  .quizform .wpcf7-radio {
    gap: 14px;
  }

}

@media (max-width: 575px) {		

  .quizform .wpcf7-radio > span {
    width: calc(50% - 10px);
  }

  .quizform .quizform__step__last .wpcf7-radio > span {
    width: 100%;
  }

}