.wpcf7-form .form-group.row:not(.checkboxes) {
    margin-bottom: 0.7rem;
}
 
.wpcf7-form .agreements label.btn-agreement {
    border-color: #969998;
    background-color: #e9e9e9;
    background-image: unset;
    transition: all .3s ease;
}

.wpcf7-form .agreements label.btn-agreement:hover,
.wpcf7-form .agreements label.btn-agreement.active {
    background-color: #71bf44;
    border-color: #71bf44;
    color: #fff;
}

.wpcf7-form .agreements label.btn-agreement:focus-visible {
    outline: 2px solid -webkit-focus-ring-color;
    outline-offset: 2px;
}

.wpcf7-form label {
    display: block;
    width: 100%;
    font-weight: 400;
    color: #212529;
    margin-bottom: 4px;
    cursor: pointer;
}

.wpcf7-form .form-check-inline {
    display: inline-flex;
    align-items: center;
}

.wpcf7-form .form-check-inline:not(:first-child) {
    margin-left: 8px !important;
}

.wpcf7-form .form-check-inline input {
    margin-top: 0;
}

.wpcf7-form .form-check-inline label {
    display: inline-block;
    margin-bottom: 0;
}

.wpcf7-form label sup {
    color: #d81835;
}

.wpcf7-form label a {
    text-decoration: none;
    color: #d81835;
    font-weight: 500;
    transition: color .3s ease;
}

.wpcf7-form label .form-check-input-thp ~ span.wpcf7-list-item-label {
    color: #212529;
}

.wpcf7-form label .form-check-input-thp ~ span.wpcf7-list-item-label a {
    font-weight: 500;
    text-decoration: underline;
    color: #212529;
}

.wpcf7-form label a:hover,
.wpcf7-form label .form-check-input-thp ~ span.wpcf7-list-item-label a:hover {
    color: #ba142d;
    text-decoration: underline;
}

.wpcf7-form input[type=text], 
.wpcf7-form input[type=number], 
.wpcf7-form input[type=email], 
.wpcf7-form input[type=tel], 
.wpcf7-form input[type=date] {
    appearance: none;
    width: 100%;
    height: auto;
    padding: 8px;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border .3s ease;
}

.wpcf7-form input[type=text]:hover, 
.wpcf7-form input[type=number]:hover, 
.wpcf7-form input[type=email]:hover, 
.wpcf7-form input[type=tel]:hover, 
.wpcf7-form input[type=date]:hover {
    border-color: #71bf44;
}

.wpcf7-form input[type=text]:focus, 
.wpcf7-form input[type=number]:focus, 
.wpcf7-form input[type=email]:focus, 
.wpcf7-form input[type=tel]:focus, 
.wpcf7-form input[type=date]:focus {
    outline: none;
    box-shadow: none;
    border-color: #71bf44;
}

.wpcf7-form .np-label-container {
    position: relative;
    display: block;
    width: 100%;
}

.wpcf7-form .np-label-container input[type="text"], 
.wpcf7-form .np-label-container input[type="number"], 
.wpcf7-form .np-label-container input[type="email"], 
.wpcf7-form .np-label-container input[type="tel"], 
.wpcf7-form .np-label-container input[type="date"] {
    padding: 14px 8px;
    transition: .3s ease;
}

.wpcf7-form .np-label-container input[type="text"]::placeholder, 
.wpcf7-form .np-label-container input[type="number"]::placeholder, 
.wpcf7-form .np-label-container input[type="email"]::placeholder, 
.wpcf7-form .np-label-container input[type="tel"]::placeholder, 
.wpcf7-form .np-label-container input[type="date"]::placeholder {
    opacity: 0;
}

.wpcf7-form .np-label-container input[type="date"]::before {
    display: none;
}

.wpcf7-form .np-label-container label {
    position: absolute;
    display: inline-block;
    width: auto;
    max-width: 100%;
    top: 0;
    left: 8px;
    font-size: 15px;
    line-height: 24px;
    opacity: 0.9;
    z-index: 1;
    padding: 14px 0;
    cursor: text;
    border-radius: 4px;
    background: linear-gradient(180deg, transparent 50%, transparent 50%);
    user-select: none;
    transition: .3s ease;
}

.wpcf7-form .np-label-container input[type="text"]:focus ~ label,
.wpcf7-form .np-label-container input[type="text"]:not(:placeholder-shown) ~ label,
.wpcf7-form .np-label-container input[type="number"]:focus ~ label,
.wpcf7-form .np-label-container input[type="number"]:not(:placeholder-shown) ~ label,
.wpcf7-form .np-label-container input[type="email"]:focus ~ label,
.wpcf7-form .np-label-container input[type="email"]:not(:placeholder-shown) ~ label,
.wpcf7-form .np-label-container input[type="tel"]:focus ~ label,
.wpcf7-form .np-label-container input[type="tel"]:not(:placeholder-shown) ~ label,
.wpcf7-form .np-label-container input[type="date"]:focus ~ label,
.wpcf7-form .np-label-container input[type="date"]:not(:placeholder-shown) ~ label {
    font-size: 0.7rem;
    line-height: 1.5;
    top: 0;
    left: 4px;
    padding: 0 4px;
    opacity: 1;
    background: linear-gradient(180deg, transparent 50%, #fff 50%);
    transform: translateY(-50%);
}

/* @media (max-width: 575px) {
    .wpcf7-form .checkboxes .wpcf7-form-control-wrap {
        padding-left: 40px;
    }

    .wpcf7-form .wpcf7-acceptance .wpcf7-list-item label .check {
        left: -28px;
    }
} */

/* =========================
   AGREE - primary agree
   ========================= */

.wpcf7-form .form-check.agree {
  margin-top: 10px;
  line-height: 1.6;
}

.wpcf7-form .form-check.agree .wpcf7-form-control-wrap[data-name="agree"],
.wpcf7-form .form-check.agree .wpcf7-list-item,
.wpcf7-form .form-check.agree .wpcf7-list-item-label {
  display: inline;
  margin: 0;
  padding: 0;
}

.wpcf7-form .form-check.agree input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: top;
  position: relative;
  top: 2px;
}

.wpcf7-form .form-check.agree a {
  color: #d81835;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s ease;
}

.wpcf7-form .form-check.agree a:hover {
  color: #ba142d;
  text-decoration: underline;
}

.wpcf7-form .form-group.checkboxes .error-agree-label,
.wpcf7-form .form-check.agree .wpcf7-not-valid-tip,
.wpcf7-form .form-check.agree .agree-error {
  display: block;
  margin-top: 8px;
  color: #d81835;
  font-size: 14px;
  line-height: 1.4;
}

/* =========================
   AGREE THP
   ========================= */

.wpcf7-form .form-check .wpcf7-form-control-wrap[data-name="agree-thp"],
.wpcf7-form .form-check .wpcf7-form-control-wrap[data-name="agree-thp"] .wpcf7-list-item,
.wpcf7-form .form-check .wpcf7-form-control-wrap[data-name="agree-thp"] .wpcf7-list-item-label {
  display: inline;
  margin: 0;
  padding: 0;
}

.wpcf7-form input.form-check-input-thp,
.wpcf7-form input[name="agree-thp"],
.wpcf7-form #agree-thp {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  position: relative;
  top: 1px;
/*  // accent-color: #d81835; */
}

.wpcf7-form .wpcf7-form-control-wrap[data-name="agree-thp"] a {
  color: #d81835;
  text-decoration: underline;
}

.wpcf7-form .wpcf7-form-control-wrap[data-name="agree-thp"] a:hover {
  color: #ba142d;
}

/* =========================
   ACCEPT ALL
   ========================= */

.wpcf7-form #acceptAll {
  margin-right: 8px;
  position: relative;
  top: 1px;
}

.wpcf7-form .expand-agreements {
  color: #d81835;
  font-weight: 500;
  text-decoration: none;
}

.wpcf7-form .expand-agreements:hover {
  color: #ba142d;
  text-decoration: underline;
}

.wpcf7-form .agreements label.btn-agreement.active {
  background-color: #71bf44;
  border-color: #71bf44;
  color: #fff;
}

/* =========================
   SHIPPING OPTIONS
   ========================= */

.wpcf7-form .summary .shipping-options {
  margin: 10px 0;
}

.wpcf7-form .summary .shipping-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: auto;
  margin: 0 0 12px 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  color: #212529;
}

.wpcf7-form .summary .shipping-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  cursor: pointer;
}

.wpcf7-form .summary .shipping-option span {
  display: inline-block;
}

.wpcf7-form .summary .shipping-option.active span {
  font-weight: 600;
}

/* =========================
   AGREE THP - final
   ========================= */

.wpcf7-form .form-check .wpcf7-form-control-wrap[data-name="agree-thp"],
.wpcf7-form .form-check .wpcf7-form-control-wrap[data-name="agree-thp"] .wpcf7-list-item,
.wpcf7-form .form-check .wpcf7-form-control-wrap[data-name="agree-thp"] .wpcf7-list-item-label {
  display: inline;
  margin: 0;
  padding: 0;
}

.wpcf7-form .form-check .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  line-height: 1.5;
}

.wpcf7-form input.form-check-input-thp,
.wpcf7-form input[name="agree-thp"],
.wpcf7-form #agree-thp {
  width: 16px;
  height: 16px;
  min-width: 18px;
  margin: 0 8px 0 0;
  position: relative;
  top: 1px;
/*   accent-color: #d81835; */
  cursor: pointer;
}

.wpcf7-form .wpcf7-form-control-wrap[data-name="agree-thp"] .wpcf7-list-item-label {
  display: inline;
  color: #212529;
  line-height: 1.5;
}

.wpcf7-form .wpcf7-form-control-wrap[data-name="agree-thp"] a {
  color: #d81835;
  text-decoration: underline;
}

.wpcf7-form .wpcf7-form-control-wrap[data-name="agree-thp"] a:hover {
  color: #ba142d;
}


/* CF7 message styled like alert popup */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  display: block !important;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 460px);
  margin: 0 !important;
  padding: 18px 18px 16px !important;
  background: #fff5f6 !important;
  border: 1px solid #d81835 !important;
  color: #8f1022 !important;
  border-radius: 5px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  z-index: 99999;
}

/* title */
.wpcf7 form.invalid .wpcf7-response-output::before,
.wpcf7 form.failed .wpcf7-response-output::before {
  content: "";
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #d81835;
}

.cf7-ok-btn {
  display: block;
  margin: 5px auto 0;
  padding: 8px 22px;
  background: #a10018;
  color: #fff;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.cf7-ok-btn:hover {
  background: #b3122a;
}

.cf7-alert-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333333;
}