.quiz-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* центр по горизонталі */
  gap: 20px;
}

.quiz-option {
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  transition: 0.3s;
  border-radius: 10px;
  background-color: #fff;
  max-width: 160px;
  width: 100%;
  box-sizing: border-box;
}

/* Картинки */
.quiz-option img {
  max-width: 80px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

/* Активна опція */
.quiz-option.active {
  border-color: #FFAF00;
  background-color: #f7f7f7;
}

/* Сітка для мобільних */
/* Базово: 1 колонка */
@media screen and (max-width: 767px) {
  .quiz-step .quiz-option {
	flex: 0 0 100%;
  }

  /* Якщо є зображення — 2 в ряд */
  .quiz-step .quiz-option.has-image {
	flex: 0 0 calc(50% - 20px);
  }
}
.quiz-step[data-step="3"] .quiz-options {
  flex-direction: column;
  align-items: center;
}

.quiz-step[data-step="3"] .quiz-option {
  flex: 0 0 auto;
  width: 100%;
  max-width: 500px;
}
.est .quiz-step .form-group {
  margin-top: 20px;
}
.est .quiz-step input[type="text"],
.est .quiz-step input[type="email"] {
  width: 100%;
  border: none;
  border-bottom: 2px solid #444;
  padding: 10px;
  font-size: 18px;
  outline: none;
  background: transparent;
  color: #121212;
}
.est .quiz-step input::placeholder {
  color: #bbb;
  font-style: italic;
}
.est .quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
	gap: 10px;
  margin-top: 20px;
}
.enter-hint {
  font-size: 14px;
  color: #333;
}

@media (max-width: 768px) {
  .enter-hint {
	display: none;
  }
}
.est .quiz-nav button {
  padding: 10px 20px;
  border: none;
  background-color: #FFAF00;
  color: #121212;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  -webkit-transition: 0.4s ease-in-out;
  transition: 0.4s ease-in-out;
  position: relative;
}
.est .quiz-nav button:hover {
	background-color: #121212;
	color: #fff;
}
.quiz-block {
	background-color: #fff;
	border-radius: 20px;
	padding: 30px 20px;
	box-shadow: 0px 12px 32px 0px #e7e7e7;
}
.estimate-box {
  position: relative;
  padding-top: 40px;
}

.estimate-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffd600;
  color: #121212;
  font-weight: bold;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.estimate-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.estimate-box {
  flex: 1 1 48%;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  position: relative;
}
.estimate-box img {
  max-width: 200px;
  margin-bottom: 15px;
}
.estimate-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffd600;
  color: #121212;
  font-weight: bold;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .estimate-box {
	flex: 1 1 100%;
  }
}
.acf-description {
	border-bottom: 1px solid #e7e7e7;
	margin-bottom: 10px;
}
.estimate-box h4 {
	font-size: 20px;
}
.estimate-box h4 span {
	font-size: 30px;
	position: relative;
}
:root {
  --underline-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20325%20108%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20fill%3D%27white%27%20d%3D%27M9%2077.318c45.246-4.02%2095.425-6.03%20150.537-6.03%2055.112%200%20107.6%203.01%20157.463%209.03%27/%3E%3C/svg%3E");
}

.estimate-box h4 span:before {
	content: "";
	  position: absolute;
	  left: 0;
	  bottom: -10px;
	  width: 100%;
	  height: 100%;
	  background-color: #f3c016;
	  -webkit-mask-image: var(--underline-mask);
	  mask-image: var(--underline-mask);
	  -webkit-mask-repeat: no-repeat;
	  mask-repeat: no-repeat;
	  -webkit-mask-size: 100% 100%;
	  mask-size: 100% 100%;
	  animation: draw 1s ease forwards;
}
@keyframes draw {
  from {
	transform: scaleX(0);
	transform-origin: left;
	opacity: 0;
  }
  to {
	transform: scaleX(1);
	opacity: 1;
  }
}
.estimate-bottom {
  margin-top: 30px;
  text-align: center;
}
.estimate-bottom .box-link {
  display: inline-block;
  font-weight: bold;
  color: #FFAF00;
  font-size: 25px;
  -webkit-transition: 0.4s ease-in-out;
	transition: 0.4s ease-in-out;
}
.estimate-bottom .box-link:hover {
	color: #121212;
}
.quiz-progress {
  height: 6px;
  background: #e7e7e7;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 30px;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: #FFAF00;
  transition: width 0.4s ease;
}
.quiz-step {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.3s ease;
}

.quiz-step.showing {
  display: block;
}

.quiz-step.showing.active {
  opacity: 1;
  transform: translateY(0);
}
