/* ── Sign Petition Page ── */
.sp-sign-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 60px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.sp-sign-header {
  padding: 32px 0 24px;
  border-bottom: 3px solid #c9a84c;
  margin-bottom: 28px;
}

.sp-sign-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.sp-sign-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #0d2b5e;
  line-height: 1.3;
  margin: 0 0 10px !important;
}

.sp-sign-date {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  margin: 0 !important;
}

.sp-sign-desc {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 20px;
}

.sp-sign-desc p { margin-bottom: 14px !important; }
.sp-sign-desc p:last-child { margin-bottom: 0 !important; }

.sp-sign-bullets {
  list-style: none !important;
  margin: 0 0 28px !important;
  padding: 0 !important;
  border-top: 1px solid #dce3ef;
  padding-top: 16px !important;
}

.sp-sign-bullets li {
  font-size: 15px;
  color: #374151;
  padding: 8px 0 8px 24px !important;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.6;
}

.sp-sign-bullets li:last-child { border-bottom: none; }

.sp-sign-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 3px;
  background: #c9a84c;
  border-radius: 2px;
}

.sp-sign-divider {
  border: none;
  border-top: 2px solid #c9a84c;
  margin: 32px 0;
  opacity: .4;
}

/* Form section */
.sp-sign-form-wrap {
  background: #f4f6fb;
  border: 1px solid #dce3ef;
  border-top: 4px solid #0d2b5e;
  border-radius: 6px;
  padding: 28px 32px 32px;
}

.sp-sign-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #0d2b5e;
  margin: 0 0 6px !important;
}

.sp-sign-form-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 24px !important;
  line-height: 1.5;
}

/* CF7 form styling inside petition page */
.sp-sign-wrap .wpcf7 { margin: 0 !important; }

.sp-sign-wrap .cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.sp-sign-wrap .cf7-row > label,
.sp-sign-wrap .cf7-row > .cf7-col { display: flex; flex-direction: column; }

.sp-sign-wrap label {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0d2b5e !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  margin-bottom: 0 !important;
}

.sp-sign-wrap input[type="text"],
.sp-sign-wrap input[type="email"],
.sp-sign-wrap input[type="tel"],
.sp-sign-wrap textarea,
.sp-sign-wrap select {
  width: 100% !important;
  padding: 11px 14px !important;
  border: 1.5px solid #dce3ef !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-family: 'Inter', sans-serif !important;
  color: #1e293b !important;
  background: #fff !important;
  transition: border-color .15s !important;
  box-shadow: none !important;
  outline: none !important;
}

.sp-sign-wrap input:focus,
.sp-sign-wrap textarea:focus {
  border-color: #c9a84c !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,.14) !important;
}

.sp-sign-wrap textarea { min-height: 80px !important; resize: vertical !important; }

.sp-sign-wrap .wpcf7-acceptance {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 14px !important;
  color: #374151 !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.6 !important;
  margin-top: 4px !important;
}
.sp-sign-wrap .wpcf7-acceptance .wpcf7-list-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
}
.sp-sign-wrap .wpcf7-acceptance label {
  font-size: 14px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #374151 !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
}

.sp-sign-wrap .wpcf7-acceptance input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
  accent-color: #0d2b5e !important;
}

.sp-sign-wrap input[type="submit"],
.sp-sign-wrap .wpcf7-submit {
  width: 100% !important;
  padding: 14px 24px !important;
  background: #0d2b5e !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  cursor: pointer !important;
  transition: background .18s !important;
  margin-top: 20px !important;
  font-family: 'Inter', sans-serif !important;
}

.sp-sign-wrap input[type="submit"]:hover,
.sp-sign-wrap .wpcf7-submit:hover { background: #c9a84c !important; }

.sp-sign-wrap .wpcf7-not-valid-tip {
  font-size: 11px !important;
  color: #dc2626 !important;
  margin-top: 3px !important;
  display: block;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.sp-sign-wrap .wpcf7-response-output {
  border-radius: 4px !important;
  font-size: 14px !important;
  margin-top: 16px !important;
  padding: 14px 18px !important;
  border-width: 1px !important;
  border-style: solid !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.sp-sign-wrap .wpcf7-response-output { margin-left: 0 !important; margin-right: 0 !important; }
.sp-sign-wrap .wpcf7-mail-sent-ok {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}

.sp-sign-wrap .wpcf7-validation-errors {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}

/* Locked state */
.sp-sign-locked {
  text-align: center;
  padding: 40px 20px;
  background: #f4f6fb;
  border: 1px solid #dce3ef;
  border-radius: 6px;
}

.sp-sign-lock-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.sp-sign-locked h3 { font-size: 18px; color: #0d2b5e; margin-bottom: 8px; }
.sp-sign-locked p  { color: #64748b; font-size: 14px; }

/* Responsive */
@media (max-width: 600px) {
  .sp-sign-wrap .cf7-row { grid-template-columns: 1fr !important; }
  .sp-sign-form-wrap { padding: 20px 18px 24px; }
  .sp-sign-title { font-size: 22px; }
}

/* ── Force all non-field labels to normal case inside sign page ── */
.sp-sign-wrap .wpcf7-form p { margin-bottom: 0 !important; }

/* Override theme uppercase on acceptance/checkbox labels */
.sp-sign-wrap span.wpcf7-list-item-label,
.sp-sign-wrap .wpcf7-acceptance span,
.sp-sign-wrap .wpcf7-acceptance label span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #374151 !important;
}

/* CF7 response success message */
.sp-sign-wrap .wpcf7-mail-sent-ok {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  border-left: 4px solid #16a34a !important;
  color: #166534 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 16px 20px !important;
  border-radius: 6px !important;
  margin-top: 20px !important;
}

/* Spinner while submitting */
.sp-sign-wrap .wpcf7-spinner {
  display: inline-block !important;
  margin-left: 10px !important;
  vertical-align: middle !important;
}

/* Make sure form fields are not uppercase from theme */
.sp-sign-wrap .wpcf7-form input::placeholder,
.sp-sign-wrap .wpcf7-form textarea::placeholder {
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #9ca3af !important;
  font-weight: 400 !important;
}

/* ── Thank you message after form submit ── */
.sp-thank-you {
  text-align: center;
  padding: 40px 20px;
  animation: sp-ty-in .4s ease;
}
@keyframes sp-ty-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.sp-ty-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
}
.sp-thank-you h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #0d2b5e;
  margin: 0 0 12px !important;
}
.sp-thank-you p {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 10px !important;
}
.sp-ty-sub {
  font-size: 13px !important;
  color: #64748b !important;
  font-style: italic;
}
/* Hide CF7 default sent message — we show our own */
.sp-sign-wrap .wpcf7-mail-sent-ok { display: none !important; }
