/* PSR Formulário — estilos do front-end.
 * Paleta: teal #2C8C9A, accent #F69602. Fonte Inter (já carregada pelo tema).
 */

.psr-form-page {
  padding: 32px 0 80px;
}

.psr-form-page__header { margin-bottom: 8px; }

.psr-form-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #1a3740;
  margin: 0 0 24px;
  line-height: 1.15;
}

.psr-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.psr-form__title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #1a3740;
  margin: 0 0 12px;
}

.psr-form__description {
  color: #4a6268;
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.6;
}
.psr-form__description p { margin: 0 0 12px; }
.psr-form__description p:last-child { margin-bottom: 0; }

/* Alerts */
.psr-form-alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.psr-form-alert p { margin: 0; }
.psr-form-alert p + p { margin-top: 8px; }

.psr-form-alert--success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.psr-form-alert--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.psr-form-alert--disabled {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
  text-align: center;
  font-weight: 500;
}

/* Form */
.psr-form { display: flex; flex-direction: column; gap: 20px; }

/* Field */
.psr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.psr-field__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a3740;
}
.psr-field__req { color: #d63638; margin-left: 2px; }

.psr-field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d6dcdc;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  color: #1a3740;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}
.psr-field__input--textarea { resize: vertical; min-height: 100px; }

.psr-field__input::placeholder { color: #9aa7aa; }

.psr-field__input:focus {
  outline: none;
  border-color: #2C8C9A;
  box-shadow: 0 0 0 3px rgba(44, 140, 154, 0.15);
}

.psr-field__input:disabled { background: #f5f7f7; color: #9aa7aa; cursor: not-allowed; }

.psr-field__help {
  font-size: 0.82rem;
  color: #6b838a;
  margin: 2px 0 0;
  line-height: 1.4;
}

/* Error state */
.psr-field--error .psr-field__input {
  border-color: #d63638;
  background: #fdf6f6;
}
.psr-field--error .psr-field__input:focus {
  border-color: #d63638;
  box-shadow: 0 0 0 3px rgba(214, 54, 56, 0.15);
}
.psr-field--error .psr-field__label { color: #b91c1c; }

/* Group (radio/checkbox) */
.psr-field--group .psr-field__label { margin-bottom: 4px; }
.psr-field__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.psr-field__option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 6px 6px 0;
  font-size: 0.95rem;
  color: #1a3740;
}
.psr-field__option input[type="radio"],
.psr-field__option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2C8C9A;
  cursor: pointer;
  margin: 0;
}
.psr-field__option input[type="radio"]:focus-visible,
.psr-field__option input[type="checkbox"]:focus-visible {
  outline: 2px solid #2C8C9A;
  outline-offset: 2px;
}

/* Consent */
.psr-field--consent {
  padding: 14px 16px;
  background: #f7fafb;
  border: 1px solid #e2eaea;
  border-radius: 8px;
}
.psr-field--consent.psr-field--error {
  border-color: #d63638;
  background: #fdf6f6;
}
.psr-field__option--consent {
  align-items: flex-start;
  font-weight: 500;
}
.psr-field__option--consent input[type="checkbox"] { margin-top: 4px; }
.psr-field__consent-text { flex: 1; font-size: 0.9rem; color: #4a6268; line-height: 1.5; }
.psr-field__consent-text p { margin: 0 0 8px; font-size: 0.9rem; color: #4a6268; line-height: 1.5; }
.psr-field__consent-text p:last-child { margin-bottom: 0; }

/* Actions / submit */
.psr-form__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}
.psr-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: #2C8C9A;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.psr-form__submit:hover { background: #236f7b; }
.psr-form__submit:focus-visible { outline: 3px solid rgba(44, 140, 154, 0.4); outline-offset: 2px; }
.psr-form__submit:active { transform: translateY(1px); }

/* Honeypot */
.psr-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile */
@media (max-width: 600px) {
  .psr-form-page { padding: 20px 0 60px; }
  .psr-field__input { font-size: 16px; /* evita zoom iOS */ }
  .psr-form__submit { width: 100%; }
}