/*!
 * pv-widerrufsbutton — frontend styles for the [pv_widerruf] shortcode.
 * Black & gold theme to match Speicherguru main brand.
 */

.pv-widerruf-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px;
  background: #0a0a0a;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  color: #f5f5f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
}

.pv-widerruf-header h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  color: #d4af37;
  letter-spacing: -0.3px;
}

.pv-widerruf-intro {
  margin: 0 0 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.pv-widerruf-step-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #d4af37;
}

.pv-w-field {
  margin-bottom: 18px;
}

.pv-w-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.85);
}

.pv-w-req {
  color: #ef4444;
  margin-left: 2px;
}

.pv-w-optional {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.pv-w-field input,
.pv-w-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-text-fill-color: #ffffff;
}

.pv-w-field input::placeholder,
.pv-w-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
  opacity: 1;
}

.pv-w-field input:focus,
.pv-w-field textarea:focus {
  outline: none;
  border-color: #d4af37;
  background: #1f1f1f;
}

.pv-w-field input.pv-w-input-error,
.pv-w-field textarea.pv-w-input-error {
  border-color: #ef4444;
}

.pv-w-field small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.pv-w-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 14px;
}

.pv-w-summary {
  background: #1a1a1a;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 20px;
}

.pv-w-summary h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #d4af37;
}

.pv-w-summary dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 14px;
  margin: 0;
  font-size: 14px;
}

.pv-w-summary dt {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.pv-w-summary dd {
  margin: 0;
  color: #fff;
  word-break: break-word;
}

.pv-w-warning {
  margin: 16px 0 0;
  padding: 12px;
  background: rgba(251, 191, 36, 0.1);
  border-left: 3px solid #fbbf24;
  border-radius: 4px;
  font-size: 13px;
  color: #fde68a;
}

.pv-w-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pv-w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.1s ease;
  min-height: 48px;
}

.pv-w-btn-primary {
  background: linear-gradient(135deg, #d4af37, #f0c947);
  color: #000;
  width: 100%;
}

.pv-w-btn-primary:hover {
  filter: brightness(1.08);
}

.pv-w-btn-primary:active {
  transform: translateY(1px);
}

.pv-w-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pv-w-btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.pv-w-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pv-w-actions .pv-w-btn-primary {
  width: auto;
  flex: 1 1 auto;
}

.pv-widerruf-success {
  text-align: center;
  padding: 16px 8px;
}

.pv-w-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 2px solid #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.pv-widerruf-success h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #d4af37;
}

.pv-widerruf-success p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .pv-widerruf-wrap {
    padding: 22px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .pv-widerruf-header h2 {
    font-size: 22px;
  }
  .pv-w-summary dl {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .pv-w-summary dt {
    margin-top: 8px;
  }
  .pv-w-actions {
    flex-direction: column;
  }
  .pv-w-actions .pv-w-btn {
    width: 100%;
  }
}
