/* TAYSP custom forms — plugin-free, fits The7 dark/light sections */

.taysp-form {
  --tf-accent: #70c1c6;
  --tf-accent-dark: #00a09f;
  --tf-ink: #222;
  --tf-line: rgba(0, 0, 0, 0.15);
  --tf-bg: #fff;
  --tf-muted: #666;
  max-width: 640px;
  margin: 0 auto;
  font-family: "Nunito Sans", Helvetica, Arial, sans-serif;
}

.taysp-form__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: inherit;
}

.taysp-form__el {
  display: grid;
  gap: 0.85rem;
}

.taysp-form__field {
  display: grid;
  gap: 0.35rem;
}

.taysp-form__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: inherit;
}

.taysp-form__label .req {
  color: #c0392b;
}

.taysp-form input[type="text"],
.taysp-form input[type="email"],
.taysp-form input[type="tel"],
.taysp-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--tf-line);
  background: var(--tf-bg);
  color: var(--tf-ink);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  font: 400 14px/1.4 inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.taysp-form textarea {
  min-height: 110px;
  resize: vertical;
}

.taysp-form input:focus,
.taysp-form textarea:focus {
  border-color: var(--tf-accent);
  box-shadow: 0 0 0 2px rgba(112, 193, 198, 0.25);
}

.taysp-form__checks,
.taysp-form__radios {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.taysp-form__check,
.taysp-form__radio {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.taysp-form__actions {
  margin-top: 0.25rem;
}

.taysp-form__submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--tf-accent-dark);
  color: #fff;
  font: 600 0.82rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(0, 160, 159, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.taysp-form__submit:hover {
  background: #2f9aa0;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 160, 159, 0.32);
}

.taysp-form__submit:disabled {
  opacity: .65;
  cursor: wait;
}

.taysp-form__status {
  margin: 0.35rem 0 0;
  font-size: 13px;
  font-weight: 600;
}

.taysp-form__status.is-ok { color: #1e7e34; }
.taysp-form__status.is-err { color: #c0392b; }

.taysp-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.taysp-form__field.is-invalid input,
.taysp-form__field.is-invalid textarea {
  border-color: #c0392b;
}

/* Compact sidebar variant */
.taysp-form--sidebar {
  max-width: 100%;
}

.taysp-form--sidebar .taysp-form__submit {
  width: 100%;
}

/* Newsletter inline */
.taysp-form--newsletter .taysp-form__el {
  grid-template-columns: 1fr auto;
  align-items: end;
}
.taysp-form--newsletter .taysp-form__field { grid-column: 1; }
.taysp-form--newsletter .taysp-form__actions { grid-column: 2; }
.taysp-form--newsletter .taysp-form__status { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .taysp-form--newsletter .taysp-form__el {
    grid-template-columns: 1fr;
  }
  .taysp-form--newsletter .taysp-form__actions { grid-column: 1; }
  .taysp-form__checks,
  .taysp-form__radios {
    grid-template-columns: 1fr;
  }
}

/* When placed on dark The7 sections, inherit light text + translucent fields */
.wpb_wrapper .taysp-form,
.dt-style-a .taysp-form,
.rs-layer .taysp-form {
  color: inherit;
}

/* Admin badge */
.taysp-lead-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: #eef;
}
.taysp-lead-status-new { background: #d7f5e7; color: #0b6b3a; }
.taysp-lead-status-in_progress { background: #fff3cd; color: #856404; }
.taysp-lead-status-done { background: #e2e3e5; color: #383d41; }
.taysp-lead-status-spam { background: #f8d7da; color: #721c24; }


/* Dark section polish */
.solid-bg .taysp-form,
.dark-bg .taysp-form,
.stripe-style-1 .taysp-form {
  --tf-bg: #fff;
  --tf-ink: #1a1a1a;
}
.solid-bg .taysp-form__title,
.dark-bg .taysp-form__title,
.solid-bg .taysp-form__label,
.dark-bg .taysp-form__label {
  color: rgba(255,255,255,.92);
}
.taysp-form__submit {
  min-height: 46px;
  border: 0;
  border-radius: 3px;
  background: var(--tf-accent);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.taysp-form__submit:hover { background: var(--tf-accent-dark); }
@media (max-width: 640px) {
  .taysp-form { padding: 0 2px; }
  .taysp-form__checks,
  .taysp-form__radios { grid-template-columns: 1fr; }
}


/* polish-v07 */
.taysp-form__submit {
  width: 100%;
  max-width: 280px;
}
.taysp-form__msg {
  margin-top: .75rem;
  font-size: 14px;
}
.taysp-form__msg.is-ok { color: #1a8a7a; }
.taysp-form__msg.is-err { color: #b32d2e; }
@media (max-width: 640px) {
  .taysp-form__submit { max-width: none; }
}
