/* SAC — página pública (mobile-first) */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

.sacp-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f6fa;
  color: #1f2437;
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.sacp-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* Header */
.sacp-header {
  text-align: center;
  padding: 16px 0 20px;
}
.sacp-logo img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sacp-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1f2437;
}
.sacp-loja {
  margin: 0 0 10px;
  color: #5a6172;
  font-size: 15px;
}
.sacp-cabecalho {
  margin: 8px 0 0;
  color: #4a5268;
  font-size: 13px;
  line-height: 1.5;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e3e6ef;
}

/* Sucesso */
.sacp-sucesso {
  background: #fff;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.sacp-sucesso-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #E8F5E9;
  color: #1E6F30;
  font-size: 36px;
  line-height: 64px;
  margin: 0 auto 16px;
  font-weight: 700;
}
.sacp-sucesso h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.sacp-sucesso p {
  margin: 0;
  color: #5a6172;
}

/* Alerta de erro global */
.sacp-alerta-erro {
  background: #FFEBEE;
  color: #B71C1C;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* Form */
.sacp-form {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Field (label + input) */
.sacp-field {
  display: block;
  margin: 0 0 14px;
}
.sacp-field > span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2b3147;
  margin-bottom: 6px;
}
.sacp-field input[type="text"],
.sacp-field input[type="tel"],
.sacp-field input[type="email"],
.sacp-field input[type="file"],
.sacp-field select,
.sacp-field textarea {
  width: 100%;
  font-size: 16px; /* evita zoom iOS */
  padding: 12px 14px;
  border: 1px solid #d4d9e4;
  border-radius: 8px;
  background: #fff;
  color: #1f2437;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.sacp-field input[type="file"] {
  padding: 10px 12px;
  background: #f9fafd;
}
.sacp-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.sacp-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231f2437' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.sacp-field input:focus,
.sacp-field select:focus,
.sacp-field textarea:focus {
  outline: none;
  border-color: #1F6791;
  box-shadow: 0 0 0 3px rgba(31,103,145,.15);
}
.sacp-field.has-error input,
.sacp-field.has-error select,
.sacp-field.has-error textarea {
  border-color: #B71C1C;
}

.sacp-req { color: #B71C1C; }

.sacp-hint {
  display: block;
  color: #6a7189;
  font-size: 12px;
  margin-top: 4px;
}

.sacp-erro {
  display: block;
  color: #B71C1C;
  font-size: 13px;
  margin-top: 4px;
}
.sacp-erro-lgpd {
  margin: -8px 0 12px;
}

/* LGPD */
.sacp-lgpd {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: #f9fafd;
  border-radius: 8px;
  margin: 6px 0 14px;
  font-size: 14px;
  color: #2b3147;
  cursor: pointer;
}
.sacp-lgpd input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #1F6791;
}
.sacp-lgpd.has-error {
  background: #FFEBEE;
  color: #B71C1C;
}

/* Submit */
.sacp-submit {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: #1F6791;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.sacp-submit:hover { background: #155478; }
.sacp-submit:disabled {
  background: #8a9bb0;
  cursor: not-allowed;
}

/* Honeypot — absolutamente oculto */
.sacp-hp {
  position: absolute !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.sacp-footer {
  text-align: center;
  margin-top: 24px;
  padding: 12px 0;
}
.sacp-footer a {
  color: #6a7189;
  font-size: 13px;
  text-decoration: none;
}

/* Desktop ajustes */
@media (min-width: 640px) {
  .sacp-wrap { padding: 32px 16px 48px; }
  .sacp-header h1 { font-size: 28px; }
  .sacp-form { padding: 28px 24px; }
}
