/*
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
====================================================
*/

:root {
	--transition: all 0.3s ease-in-out;
	--dark-text: #606060;
}


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

::placeholder { color: var(--dark-text); }
::-webkit-input-placeholder { color: var(--dark-text); }
::-moz-placeholder { color: var(--dark-text); opacity: 1; }
:-ms-input-placeholder { color: var(--dark-text); }

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


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

/* Galleries */

.gallery-sl__gall li * {
  width: 100%;
}


/* quiz CF7 */

.wpcf7-form {
    overflow: hidden;
}

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

.quizform {   
	width: 100%;
	position: relative;
	margin: 30px 0;
}

.quizform__progress {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    margin: 0 0 20px 0;
}

.quizform__step__title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 20px 0;
}

/* Шаги */

.quizform__step {
  display: none;
}

.quizform__step.active {
  display: block;
}

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

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

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

.quizform .step-radio-default .wpcf7-radio {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
	gap: 10px;
}

.quizform .step-radio-default .wpcf7-radio > span {
    width: auto;
}

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

.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: left;
  position: relative;
}

.step-radio-image label > span::after {
  position: absolute;
  content: '';
  width: 50px;
  height: 50px;
  background-image: url('/wp-content/uploads/2026/05/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: 4px;
  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: 8px 18px;
	justify-content: center;
	color: #585858;
	font-weight: 500;
	border: 2px solid #585858;
	border-radius: 10px;
	transition: var(--transition);
	text-align: center;
	line-height: 1.2;
	font-size: 15px;
}

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

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

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

.step-inputs .step-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 {
  border: 2px solid #ff0000 !important;
}

.wpcf7-submit {
	font-size: 22px;
	color: #000000;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.3;
	border-radius: 10px;
	background-image: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
	width: 100%;
	padding: 25px;
	text-align: center;
	border: 0;
	transition: var(--transition);
	margin: 30px 0 0 0;
}

.wpcf7-submit:hover {
    background-image: linear-gradient(135deg, #eed872 0%, #eeac6c 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: flex-start;
  column-gap: 20px;
}

.quizform__button {
    background-color: #222222;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 14px 23px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
	min-height: 46px;
	min-width: 46px;
}

.quizform__button:hover {
	background-color: #4c4b4b;
}

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

.quizform__prev {
	background-color: #d3d3d3;
	color: #fff;
	display: flex;
	background-image: url(/wp-content/uploads/2026/05/arrow-left.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px;
	margin-left: -65px;
	transition: var(--transition);
}

.quizform__prev.active {
	display: flex;
	margin-left: 0;
}

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

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

.quizform__step__last .step-inputs .step-in input {
	border: 2px solid #585858;
	font-size: 18px;
	padding: 14px 20px;
	font-weight: 400;
	color: #000;
}

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



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

@media (max-width: 1299px) {

	

}


@media (max-width: 1023px) {

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

}

@media (max-width: 767px) {

	.quizform__step__title {
		font-size: 24px;
	}

}

@media (max-width: 575px) {

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

}