.stepcod-wt-form {
  width: 100%;
  max-width: 680px;
  margin: 0;
  box-sizing: border-box;
}

.stepcod-wt-form.align-center {
  margin-inline: auto;
}

.stepcod-wt-form.align-right {
  margin-left: auto;
  margin-right: 0;
}

.wt-form-section .stepcod-wt-form {
  max-width: 720px;
}

.stepcod-form-loading,
.stepcod-form-error {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.stepcod-form-error {
  color: #b42318;
}

.stepcod-form {
  display: grid;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
}

.stepcod-form-fields {
  display: grid;
  gap: 14px;
}

.stepcod-field {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.stepcod-field > span {
  line-height: 1.35;
}

.stepcod-field input,
.stepcod-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c8d8e2;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  background: #fff;
  color: #0f172a;
}

.stepcod-field textarea {
  min-height: 120px;
  resize: vertical;
}

.stepcod-field input:focus,
.stepcod-field textarea:focus {
  outline: 2px solid rgba(2, 132, 199, 0.35);
  border-color: #0284c7;
}

.stepcod-field-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 600;
}

.stepcod-field-check input[type='checkbox'] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 3px 0 0;
  accent-color: #0d6b5c;
}

.stepcod-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.stepcod-captcha {
  margin: 4px 0 0;
  padding: 14px 16px;
  border: 1px solid #d7e8e6;
  border-radius: 12px;
  background: #f4faf9;
}

.stepcod-captcha-prompt,
.stepcod-captcha-q {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #163b55;
}

.stepcod-captcha--math label {
  display: grid;
  gap: 8px;
}

.stepcod-captcha--math input {
  max-width: 120px;
  padding: 10px 12px;
  border: 1px solid #c8d8e2;
  border-radius: 8px;
  font: inherit;
}

.stepcod-captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

@media (min-width: 520px) {
  .stepcod-captcha-grid {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    max-width: 320px;
  }
}

.stepcod-captcha-tile {
  border: 1px solid #c8d8e2;
  background: #fff;
  border-radius: 10px;
  padding: 12px 8px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.stepcod-captcha-tile:hover {
  border-color: #94a3b8;
}

.stepcod-captcha-tile.is-selected {
  background: var(--ocean, #0284c7);
  color: #fff;
  border-color: var(--ocean, #0284c7);
}

.stepcod-form-notice {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.stepcod-form-notice.is-success {
  color: #0f6b45;
}

.stepcod-form-notice.is-error {
  color: #b42318;
}

.stepcod-form .site-button,
.stepcod-form button[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 140px;
  background: var(--stepcod-theme-accent, #0d6b5c);
  color: #fff;
  border: 0;
  border-radius: var(--stepcod-button-radius, 99px);
  padding: 12px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.stepcod-form .site-button:hover,
.stepcod-form button[type='submit']:hover {
  filter: brightness(1.05);
}
