/* Stripe Donations Plugin — form.css */

.sd-wrap {
  max-width: 520px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: #222;
}

.sd-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.sd-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #1a1a1a;
}

.sd-sub {
  font-size: 14px;
  color: #666;
  margin: 0 0 22px;
}

/* ── Frequency tabs ── */
.sd-freq-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.sd-freq-btn {
  flex: 1;
  padding: 9px 0;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}

.sd-freq-btn:hover:not(.active) {
  border-color: #aaa;
  background: #f8f8f8;
}

.sd-freq-btn.active {
  background: #1d9e75;
  border-color: #1d9e75;
  color: #fff;
  font-weight: 600;
}

/* ── Sections ── */
.sd-section {
  margin-bottom: 18px;
}

.sd-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

/* ── Preset amount grid ── */
.sd-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.sd-amt-btn {
  padding: 10px 0;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}

.sd-amt-btn:hover:not(.active) {
  border-color: #aaa;
  background: #f8f8f8;
}

.sd-amt-btn.active {
  background: #1d9e75;
  border-color: #1d9e75;
  color: #fff;
}

/* ── Custom amount ── */
.sd-custom-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  overflow: hidden;
}

.sd-currency-sym {
  padding: 0 12px;
  font-size: 15px;
  color: #888;
  background: #f5f5f5;
  height: 42px;
  display: flex;
  align-items: center;
  border-right: 1px solid #d0d5dd;
}

.sd-custom-input {
  border: none;
  background: transparent;
  padding: 0 12px;
  font-size: 15px;
  color: #222;
  height: 42px;
  width: 100%;
  outline: none;
}

.sd-custom-input:focus {
  background: #fafffe;
}

/* ── Dropdown ── */
.sd-select {
  width: 100%;
  height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: #222;
  font-size: 14px;
  padding: 0 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.sd-select:focus {
  border-color: #1d9e75;
  box-shadow: 0 0 0 2px rgba(29,158,117,.15);
}

/* ── Email input ── */
.sd-input {
  width: 100%;
  height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  color: #222;
  outline: none;
  box-sizing: border-box;
}

.sd-input:focus {
  border-color: #1d9e75;
  box-shadow: 0 0 0 2px rgba(29,158,117,.15);
}

/* ── Stripe Card Element ── */
.sd-card-element {
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  transition: border-color .15s;
}

.sd-card-element.StripeElement--focus {
  border-color: #1d9e75;
  box-shadow: 0 0 0 2px rgba(29,158,117,.15);
}

.sd-card-errors {
  color: #e24b4a;
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
}

/* ── Summary box ── */
.sd-summary {
  background: #f7faf9;
  border: 1px solid #d4ece4;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.sd-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  color: #555;
}

.sd-sum-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #c8e0d8;
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
}

/* ── Donate button ── */
.sd-pay-btn {
  width: 100%;
  height: 50px;
  background: #1d9e75;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-top: 4px;
}

.sd-pay-btn:hover:not(:disabled) {
  background: #179066;
}

.sd-pay-btn:active:not(:disabled) {
  transform: scale(.99);
}

.sd-pay-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.sd-stripe-note {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  margin: 10px 0 0;
}

/* ── Success screen ── */
.sd-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.sd-success-icon {
  width: 60px;
  height: 60px;
  background: #e1f5ee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 28px;
  color: #1d9e75;
  font-weight: 700;
}

.sd-success h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.sd-success p {
  font-size: 14px;
  color: #666;
  margin: 0 0 1.5rem;
}

.sd-reset-btn {
  padding: 10px 26px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: transparent;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}

.sd-reset-btn:hover {
  background: #f5f5f5;
}
