/* Signup */
.signup {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(560px, 1.25fr);
  align-items: start;
  gap: clamp(48px, 8vw, 110px);
  padding: 120px max(32px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 180%);
}

.signup__intro {
  position: sticky;
  top: 42px;
}

.signup__intro > p:not(.eyebrow) {
  max-width: 440px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.privacy-card {
  display: flex;
  gap: 15px;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid rgba(31, 42, 29, .18);
  border-radius: var(--radius-md);
  background: rgba(31, 42, 29, .08);
  color: var(--green);
}

.privacy-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
}

.privacy-card svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.privacy-card strong {
  font-size: 0.86rem;
}

.privacy-card p {
  margin: 4px 0 0;
  font-size: 0.76rem;
  line-height: 1.55;
}

.form-card {
  overflow: hidden;
  border: 1px solid rgba(166, 106, 53, .28);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.form-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 26px 38px;
  border-bottom: 1px solid var(--border);
}

.form-progress::before,
.form-progress__bar {
  position: absolute;
  top: 43px;
  right: calc(16.66% + 5px);
  left: calc(16.66% + 5px);
  height: 1px;
  content: "";
}

.form-progress::before {
  background: var(--border);
}

.form-progress__bar {
  z-index: 1;
  right: auto;
  width: 0;
  background: var(--bronze);
  transition: width 420ms ease;
}

.form-progress__item {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  color: #988e85;
  font-size: 0.67rem;
  font-weight: 700;
}

.form-progress__item span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 7px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  transition: background 260ms ease, color 260ms ease, border-color 260ms ease;
}

.form-progress__item.is-active,
.form-progress__item.is-complete {
  color: var(--ink);
}

.form-progress__item.is-active span,
.form-progress__item.is-complete span {
  border-color: var(--bronze);
  background: var(--bronze);
  color: var(--white);
}

.form-step {
  padding: 42px;
  animation: step-enter 320ms ease both;
}

@keyframes step-enter {
  from { opacity: 0; transform: translateY(8px); }
}

.form-step__heading p {
  margin: 0 0 5px;
  color: var(--bronze-dark);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-step__heading h3 {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.3vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 800;
}

.field input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: 0;
  background: rgba(255,255,255,0.8);
  padding: 0 16px;
  color: var(--ink);
  transition: border 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
  color: #aaa198;
}

.field input:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px rgba(166, 106, 53, 0.1);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.7rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}

.form-actions--end {
  justify-content: flex-end;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.upload-field > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-box {
  position: relative;
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px dashed rgba(166, 106, 53, 0.5);
  border-radius: 18px;
  background: rgba(238, 227, 211, 0.48);
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border 180ms ease, background 180ms ease, transform 180ms ease;
}

.upload-box:hover,
.upload-box:focus-within,
.upload-box.is-dragging {
  border-color: var(--bronze);
  background: rgba(238, 227, 211, 0.82);
  transform: translateY(-2px);
}

.upload-box.has-file {
  border-style: solid;
  border-color: var(--green);
}

.upload-box__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--white);
  color: var(--bronze-dark);
  box-shadow: 0 8px 24px rgba(67, 44, 22, 0.09);
}

.upload-box__icon svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.upload-box strong {
  font-size: 0.88rem;
}

.upload-box > span:not(.upload-box__icon):not(.upload-box__preview) {
  max-width: 230px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.upload-box small {
  margin-top: 12px;
  color: #92877d;
  font-size: 0.62rem;
}

.upload-box__preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 220ms ease;
}

.upload-box__preview.has-preview {
  opacity: 1;
}

.upload-box__preview.has-preview::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(0,0,0,0.56));
  content: "Foto selecionada";
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 18px;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.upload-tip {
  min-height: 38px;
  margin: 9px 5px 0;
  color: var(--muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.review-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--border);
}

.review-list__row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.review-list dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.review-list dd {
  overflow: hidden;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consent-box {
  margin-top: 24px;
}

.check-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
  cursor: pointer;
}

.check-field input {
  position: absolute;
  opacity: 0;
}

.check-field__control {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}

.check-field input:focus-visible + .check-field__control {
  outline: 3px solid rgba(166, 106, 53, 0.24);
  outline-offset: 2px;
}

.check-field input:checked + .check-field__control {
  border-color: var(--green);
  background: var(--green);
}

.check-field input:checked + .check-field__control::after {
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  transform: rotate(45deg);
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  content: "";
}

.inline-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  padding: 0;
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
}

.form-disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.button__loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.is-loading .button__loader {
  display: block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin: 0 42px 42px;
  padding: 18px;
  border-radius: 14px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.form-status.is-success {
  background: var(--green-light);
  color: var(--green);
}

.form-status.is-error {
  background: #f5dedb;
  color: #81352d;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
}
