/* ── TestCrate Email Marketing – Public Form Styles ── */

.tcm-subscribe-form-wrap {
  background: #fff;
  border: 1.5px solid #e0e0ec;
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 520px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tcm-form-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 18px;
  line-height: 1.3;
}

.tcm-subscribe-form .tcm-field-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tcm-subscribe-form .tcm-field-email-row {
  flex-wrap: nowrap;
}

.tcm-subscribe-form .tcm-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #f9fafb;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}

.tcm-subscribe-form .tcm-input:focus {
  border-color: #e8401c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,64,28,.12);
}

.tcm-subscribe-form .tcm-email-input {
  flex: 2;
}

.tcm-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  background: #e8401c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}

.tcm-submit-btn:hover  { background: #cc3218; }
.tcm-submit-btn:active { transform: scale(.97); }

/* Spinner */
.tcm-spinner-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tcm-spin .7s linear infinite;
}
@keyframes tcm-spin { to { transform: rotate(360deg); } }

/* Message */
.tcm-form-msg {
  margin-top: 10px;
  font-size: 13.5px;
  border-radius: 6px;
  padding: 0;
  min-height: 0;
  transition: all .2s;
}
.tcm-form-msg.tcm-success {
  padding: 10px 14px;
  background: #dcfce7;
  color: #166534;
  border-left: 3px solid #22c55e;
}
.tcm-form-msg.tcm-error {
  padding: 10px 14px;
  background: #fee2e2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

/* Responsive */
@media (max-width: 480px) {
  .tcm-subscribe-form .tcm-field-email-row { flex-wrap: wrap; }
  .tcm-submit-btn { width: 100%; }
}
