[hidden] {
  display: none !important;
}

.afc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.afc-code-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0 36px;
}

.afc-code-card {
  width: 100%;
  max-width: 520px;
  background: #15263e;
  border: 1px solid rgba(220, 232, 245, 0.24);
  border-radius: 22px;
  padding: 32px 28px;
  box-shadow: 0 20px 48px rgba(4, 10, 20, 0.48);
}

.afc-code-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #f5c26b;
  margin-bottom: 6px;
}

.afc-code-card h2 {
  margin: 0 0 8px;
  font-family: var(--afc-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 30px;
  color: #dce8f5;
}

.afc-code-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: #93abc7;
}

.afc-code-sub code {
  background: #0e1a2b;
  color: #f5c26b;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(220, 232, 245, 0.18);
}

.afc-code-form {
  display: grid;
  gap: 14px;
}

.afc-code-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(220, 232, 245, 0.26);
  background: #0e1a2b;
  color: #dce8f5;
  font-size: 16px;
  font-family: inherit;
}

.afc-code-form input:focus {
  outline: 2px solid #f5c26b;
  outline-offset: 1px;
}

.afc-code-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(200, 62, 59, 0.2);
  border: 1px solid #c83e3b;
  color: #ffd9d8;
  font-size: 14px;
}

.afc-code-submit-btn {
  min-height: 46px;
  border-radius: 12px;
  border: none;
  background: #c83e3b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.16s ease;
}

.afc-code-submit-btn:hover {
  filter: brightness(1.08);
}

.afc-code-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.afc-code-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 232, 245, 0.16);
  font-size: 14px;
}

.afc-code-footer a {
  color: #f5c26b;
  font-weight: 600;
  text-decoration: none;
}

.afc-code-footer a:hover {
  text-decoration: underline;
}