﻿/* CF7 → original SendPulse look (sp-lg 2-col grid + phone prefix). */
.nissz-cf7 .wpcf7,
.nissz-cf7 .wpcf7-form,
.section-contact__form .wpcf7,
.section-contact__form .wpcf7-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-spinner {
  display: none;
}

.nissz-cf7 .wpcf7-form p,
.nissz-form > p,
.section-contact .wpcf7-form p {
  margin: 0;
}

.nissz-cf7 .sp-field-nolabel label,
.nissz-form.sp-field-nolabel label,
.nissz-cf7 .wpcf7-form label,
.section-contact .wpcf7-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Flat SendPulse-like grid: name|surname, email|phone, then full rows */
.nissz-form.sp-lg {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}

.nissz-form.sp-lg > .sp-field {
  flex: 1 1 calc(50% - 8px);
  width: calc(50% - 8px);
  min-width: 0;
  margin: 0;
  position: relative;
  box-sizing: border-box;
}

.nissz-form.sp-lg > .sp-field--full,
.nissz-form.sp-lg > .sp-button-container {
  flex: 1 1 100%;
  width: 100%;
}

.nissz-cf7 .wpcf7-form-control-wrap,
.nissz-form .wpcf7-form-control-wrap,
.section-contact .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  position: relative;
}

.nissz-cf7 .wpcf7-form-control-wrap:has(.wpcf7-validates-as-required)::after,
.nissz-form .wpcf7-form-control-wrap:has(.wpcf7-validates-as-required)::after,
.section-contact .wpcf7-form-control-wrap:has(.wpcf7-validates-as-required)::after {
  content: "*";
  position: absolute;
  top: 6px;
  right: 10px;
  color: #e53935;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
}

.nissz-cf7 input.wpcf7-form-control,
.nissz-cf7 input[type="text"],
.nissz-cf7 input[type="email"],
.nissz-cf7 input[type="tel"],
.nissz-cf7 textarea.wpcf7-form-control,
.nissz-form input.wpcf7-form-control,
.nissz-form input[type="text"],
.nissz-form input[type="email"],
.nissz-form input[type="tel"],
.section-contact input.wpcf7-form-control,
.section-contact input[type="text"],
.section-contact input[type="email"],
.section-contact input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #002051;
  border-radius: 10px;
  background: #f5f5f5;
  height: 55px;
  padding: 0 20px;
  font-size: 17px;
  font-family: inherit;
  color: #1f1f1f;
}

.module .nissz-cf7 input.wpcf7-form-control,
.module .nissz-cf7 input[type="text"],
.module .nissz-cf7 input[type="email"],
.module .nissz-cf7 input[type="tel"],
.module .nissz-form input.wpcf7-form-control,
.module .nissz-form input[type="text"],
.module .nissz-form input[type="email"],
.module .nissz-form input[type="tel"] {
  height: 42px;
  padding: 0 10px;
  font-size: 15px;
}

.nissz-phone-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 2px solid #002051;
  border-radius: 10px;
  background: #f5f5f5;
  overflow: hidden;
  box-sizing: border-box;
  height: 55px;
}

.module .nissz-phone-wrap {
  height: 42px;
}

.nissz-phone-cc {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 10px;
  background: #e9e9e9;
  border-right: 1px solid #cfcfcf;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
}

.module .nissz-phone-cc {
  font-size: 13px;
  padding: 0 8px;
}

.nissz-phone-flag {
  width: 18px;
  height: 12px;
  display: inline-block;
  background: linear-gradient(180deg, #0057b7 0 50%, #ffd700 50% 100%);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.nissz-phone-wrap .wpcf7-form-control-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.nissz-phone-wrap input.wpcf7-form-control,
.nissz-phone-wrap input[type="tel"] {
  border: 0;
  border-radius: 0;
  background: #fff;
  height: 100%;
  min-height: 0;
}

.nissz-cf7 input.wpcf7-submit,
.nissz-cf7 .sp-button,
.nissz-cf7 input[type="submit"],
.nissz-form input.wpcf7-submit,
.nissz-form .sp-button,
.nissz-form input[type="submit"],
.section-contact input.wpcf7-submit,
.section-contact input[type="submit"] {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #002051;
  color: #fff;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  height: auto;
  box-sizing: border-box;
}

.module .nissz-cf7 input.wpcf7-submit,
.module .nissz-cf7 .sp-button,
.module .nissz-cf7 input[type="submit"],
.module .nissz-form input.wpcf7-submit,
.module .nissz-form input[type="submit"] {
  height: 42px;
  padding: 0 16px;
  line-height: 42px;
  font-size: 18px;
  font-weight: 400;
}

.nissz-cf7 .wpcf7-not-valid-tip,
.section-contact .wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 4px;
}

.nissz-cf7 .wpcf7-response-output,
.section-contact .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
}

.module:not(.module-content) .module__text {
  margin-bottom: 16px;
}

.section-contact {
  padding-top: 80px;
  padding-bottom: 170px;
}

.section-contact__title {
  margin-bottom: 14px;
}

.section-contact__text {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  line-height: 133%;
  margin-bottom: 16px;
}

.section-contact__form {
  min-height: 0;
  margin-top: 0;
  padding-top: 0;
}

.section-contact__form .wpcf7,
.section-contact__form .wpcf7-form {
  margin-top: 0;
  padding-top: 0;
}

.nissz-tg-cta {
  margin-top: 60px;
  margin-bottom: 0;
  text-align: center;
}

.nissz-tg-cta__title {
  font-size: 24px;
  margin: 0 0 16px;
  line-height: 1.2;
}

.nissz-tg-cta .btn,
.nissz-tg-cta .btn.btn-white {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 32px;
  background: #e8b73f;
  color: #002051;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  height: auto;
  line-height: normal;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .section-contact {
    padding-top: 80px;
    padding-bottom: 120px;
  }
  .section-contact__text {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .section-contact {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .section-contact__text {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .nissz-tg-cta {
    margin-top: 40px;
  }
  .nissz-form.sp-lg > .sp-field {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .section-modules {
    padding-bottom: 120px;
  }
}
