/* ===== POPUP CONTACT FORM — домсфишкой.рф ===== */
/* Файл: /templates/shaper_helixultimate/css/popup-form.css */

/* Оверлей */
#dfk-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99998;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#dfk-modal-overlay.active {
  display: flex;
}

/* Контейнер модалки */
#dfk-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: dfkSlideIn 0.25s ease;
}
@keyframes dfkSlideIn {
  from { opacity:0; transform: translateY(-24px); }
  to   { opacity:1; transform: translateY(0); }
}

/* Кнопка закрытия */
#dfk-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 24px; line-height: 1;
  cursor: pointer; color: #888;
  z-index: 10;
  transition: color .2s;
}
#dfk-modal-close:hover { color: #333; }

/* Левая панель */
#dfk-modal-left {
  background: #f7f8fa;
  padding: 48px 36px;
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#dfk-modal-left .dfk-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e05c00;
  margin-bottom: 14px;
}
#dfk-modal-left h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 14px;
}
#dfk-modal-left p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Правая панель — форма */
#dfk-modal-right {
  flex: 1;
  padding: 48px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#dfk-modal-right .dfk-field {
  margin-bottom: 16px;
}
#dfk-modal-right label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
#dfk-modal-right label .dfk-req {
  color: #e05c00;
}
#dfk-modal-right input[type="tel"],
#dfk-modal-right textarea {
  width: 100%;
  border: 1.5px solid #d8d8d8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  color: #222;
  background: #fafafa;
  transition: border-color .2s;
  box-sizing: border-box;
  font-family: inherit;
}
#dfk-modal-right input[type="tel"]:focus,
#dfk-modal-right textarea:focus {
  border-color: #e05c00;
  outline: none;
  background: #fff;
}
#dfk-modal-right textarea {
  resize: vertical;
  min-height: 90px;
}

/* Ошибка поля */
.dfk-error-msg {
  color: #cc0000;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}
.dfk-field.has-error input,
.dfk-field.has-error textarea {
  border-color: #cc0000;
}
.dfk-field.has-error .dfk-error-msg {
  display: block;
}

/* Чекбокс политики */
.dfk-policy-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #666;
}
.dfk-policy-wrap input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px; height: 16px;
  accent-color: #e05c00;
  cursor: pointer;
}
.dfk-policy-wrap a {
  color: #e05c00;
  text-decoration: underline;
}

/* Кнопка отправки */
#dfk-submit-btn {
  width: 100%;
  background: #e05c00;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: .3px;
}
#dfk-submit-btn:hover { background: #c94f00; }
#dfk-submit-btn:active { transform: scale(.98); }
#dfk-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Сообщение успеха */
#dfk-success-msg {
  display: none;
  text-align: center;
  padding: 20px 0;
}
#dfk-success-msg .dfk-success-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}
#dfk-success-msg h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}
#dfk-success-msg p {
  font-size: 14px;
  color: #666;
}

/* ===== Сквозной CTA-блок заявки ===== */
#dfk-page-cta {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto;
  padding: 0;
  position: relative;
  z-index: 1;
}
.dfk-page-cta__inner {
  background: linear-gradient(120deg, #171717 0%, #292929 100%);
  border-radius: 14px;
  padding: 34px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 14px 34px rgba(0,0,0,.15);
  overflow: hidden;
  position: relative;
}
.dfk-page-cta__inner::after {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  top: -85px;
  border-radius: 50%;
  background: rgba(224,92,0,.22);
  pointer-events: none;
}
.dfk-page-cta__content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}
.dfk-page-cta__label {
  display: block;
  color: #f58a40;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 1.3px;
  margin-bottom: 9px;
}
.dfk-page-cta__content h2 {
  color: #fff !important;
  font-size: clamp(23px, 2.5vw, 34px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
}
.dfk-page-cta__content p {
  color: rgba(255,255,255,.78) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
.dfk-page-cta__button {
  border: 0;
  border-radius: 8px;
  background: #e05c00;
  color: #fff;
  padding: 15px 27px;
  min-width: 190px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 8px 22px rgba(224,92,0,.28);
}
.dfk-page-cta__button:hover,
.dfk-page-cta__button:focus-visible {
  background: #f06a0b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 11px 26px rgba(224,92,0,.36);
  outline: none;
}
.dfk-page-cta__button:active {
  transform: translateY(0);
}

@media (max-width: 767px) {
  #dfk-page-cta {
    width: calc(100% - 24px);
    margin: 28px auto;
  }
  .dfk-page-cta__inner {
    padding: 28px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .dfk-page-cta__content h2 {
    font-size: 23px !important;
  }
  .dfk-page-cta__content p {
    font-size: 15px !important;
  }
  .dfk-page-cta__button {
    width: 100%;
  }
}

/* Адаптив */
@media (max-width: 600px) {
  #dfk-modal { flex-direction: column; }
  #dfk-modal-left { padding: 32px 24px 20px; flex: none; }
  #dfk-modal-left h2 { font-size: 20px; }
  #dfk-modal-right { padding: 20px 24px 32px; }
}
