/* MakTask #182: сквозная форма заявки Sun School (blog.sunschool.ru) */

.sbf-form-wrap {
  margin: 28px 0;
  padding: 32px 36px;
  border-radius: 16px;
  background: linear-gradient(100deg, #fdeede 0%, #fbe4ee 55%, #f3e7fa 100%);
}
.sbf-title {
  color: #604f5b;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 20px;
}
.sbf-row {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.sbf-input {
  -webkit-flex: 1 1 160px;
  flex: 1 1 160px;
  min-width: 0;
  padding: 12px 18px;
  border: 1px solid #b9a7b4;
  border-radius: 40px;
  background: #fff;
  color: #604f5b;
  font-size: 15px;
  outline: none;
}
.sbf-input:focus { border-color: #604f5b; }
.sbf-row-actions {
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin-bottom: 0;
}
.sbf-submit {
  padding: 13px 44px;
  border: none;
  border-radius: 170px;
  background: #f28c70;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.sbf-submit:hover { background: #e97b5d; color: #fff; }
.sbf-agree {
  -webkit-flex: 1 1 260px;
  flex: 1 1 260px;
}
.sbf-check {
  display: -webkit-flex;
  display: flex;
  gap: 8px;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  color: #604f5b;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 400;
  margin: 0 0 6px;
  cursor: pointer;
}
.sbf-check input {
  margin: 2px 6px 0 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}
.sbf-check a { color: #e47fca; text-decoration: underline; }
.sbf-hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

/* форма в сетке карточек рубрик: во всю ширину ряда */
.article-block .sbf-form-wrap { clear: both; }

@media (max-width: 767px) {
  .sbf-form-wrap { padding: 22px 18px; }
  .sbf-title { font-size: 18px; }
  .sbf-row { gap: 10px; }
  .sbf-input { -webkit-flex-basis: 100%; flex-basis: 100%; }
  .sbf-submit { width: 100%; }
  .sbf-agree { -webkit-flex-basis: 100%; flex-basis: 100%; }
}

/* страница «Спасибо» (blog-form-send.php) */
.sbf-thanks-body {
  margin: 0;
  min-height: 100vh;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: linear-gradient(100deg, #fdeede 0%, #fbe4ee 55%, #f3e7fa 100%);
  font-family: 'PT Sans', Arial, sans-serif;
  padding: 20px;
}
.sbf-thanks-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(96, 79, 91, 0.12);
  max-width: 640px;
  width: 100%;
  padding: 48px 56px;
  text-align: center;
  position: relative;
}
.sbf-thanks-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #604f5b;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
}
.sbf-thanks-title {
  color: #604f5b;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 16px;
}
.sbf-thanks-text {
  color: #604f5b;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.sbf-thanks-btn {
  display: inline-block;
  padding: 13px 40px;
  border-radius: 170px;
  background: #f28c70;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.sbf-thanks-btn:hover { background: #e97b5d; }
@media (max-width: 480px) {
  .sbf-thanks-card { padding: 32px 22px; }
}
