:root {
  --aml-bg: #f5f0e6;
  --aml-surface: rgba(255, 252, 246, 0.92);
  --aml-surface-strong: #fffdf9;
  --aml-ink: #21170d;
  --aml-muted: #705f4f;
  --aml-line: rgba(64, 44, 27, 0.14);
  --aml-accent: #b46a2a;
  --aml-accent-strong: #8d4f18;
  --aml-success: #2e7d5a;
  --aml-error: #b6402d;
  --aml-shadow: 0 24px 60px rgba(66, 44, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--aml-ink);
  background:
    radial-gradient(circle at top left, rgba(235, 191, 131, 0.45), transparent 38%),
    radial-gradient(circle at bottom right, rgba(167, 109, 58, 0.18), transparent 30%),
    linear-gradient(180deg, #efe2cb 0%, #f8f4ec 42%, #f3ecde 100%);
}

.aml-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.aml-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
}

.aml-hero-copy,
.aml-hero-facts,
.aml-form-panel {
  background: var(--aml-surface);
  border: 1px solid var(--aml-line);
  border-radius: 28px;
  box-shadow: var(--aml-shadow);
  backdrop-filter: blur(12px);
}

.aml-hero-copy {
  padding: 34px;
}

.aml-eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aml-accent);
}

.aml-hero-copy h1 {
  margin: 0 0 18px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.02;
}

.aml-hero-copy p {
  margin: 0;
  max-width: 62ch;
  color: var(--aml-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.aml-hero-facts {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.aml-hero-facts article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(64, 44, 27, 0.08);
}

.aml-hero-facts strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.aml-hero-facts span {
  display: block;
  color: var(--aml-muted);
  line-height: 1.6;
}

.aml-form-panel {
  padding: 28px;
}

.aml-feedback {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 600;
}

.aml-feedback.is-hidden {
  display: none;
}

.aml-feedback.is-loading {
  background: rgba(180, 106, 42, 0.12);
  color: var(--aml-accent-strong);
}

.aml-feedback.is-success {
  background: rgba(46, 125, 90, 0.14);
  color: var(--aml-success);
}

.aml-feedback.is-error {
  background: rgba(182, 64, 45, 0.12);
  color: var(--aml-error);
}

.aml-form {
  display: grid;
  gap: 24px;
}

.aml-section {
  padding: 22px;
  background: var(--aml-surface-strong);
  border-radius: 24px;
  border: 1px solid rgba(64, 44, 27, 0.08);
}

.aml-section-header {
  margin-bottom: 20px;
}

.aml-section-header h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
}

.aml-section-header p {
  margin: 0;
  color: var(--aml-muted);
  line-height: 1.6;
}

.aml-grid {
  display: grid;
  gap: 16px;
}

.aml-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.is-hidden {
  display: none !important;
}

.aml-field,
.aml-check {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aml-choice-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.aml-choice-group legend {
  padding: 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.aml-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.aml-choice-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aml-field-wide {
  grid-column: 1 / -1;
}

.aml-field span {
  font-size: 0.94rem;
  font-weight: 700;
}

.aml-field input,
.aml-field select,
.aml-field textarea {
  width: 100%;
  border: 1px solid rgba(64, 44, 27, 0.14);
  border-radius: 16px;
  background: #fff;
  padding: 13px 14px;
  font: inherit;
  color: var(--aml-ink);
}

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

.aml-field input:focus,
.aml-field select:focus,
.aml-field textarea:focus {
  outline: 2px solid rgba(180, 106, 42, 0.18);
  border-color: rgba(180, 106, 42, 0.48);
}

.aml-repeat-list {
  display: grid;
  gap: 16px;
}

.aml-repeat-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(64, 44, 27, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 243, 232, 0.88));
}

.aml-repeat-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.aml-repeat-header h3 {
  margin: 0;
  font-size: 1.08rem;
}

.aml-inline-actions,
.aml-inline-checks,
.aml-submit-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.aml-inline-checks {
  margin-top: 14px;
}

.aml-owner-reference {
  min-width: min(100%, 320px);
}

.aml-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(250, 244, 236, 0.7);
  border: 1px solid rgba(64, 44, 27, 0.08);
}

.aml-check.compact {
  padding: 10px 12px;
  width: auto;
}

.aml-check input {
  margin-top: 2px;
}

.aml-primary-button,
.aml-secondary-button,
.aml-ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.aml-primary-button {
  background: linear-gradient(135deg, var(--aml-accent), var(--aml-accent-strong));
  color: #fff;
  box-shadow: 0 14px 24px rgba(141, 79, 24, 0.22);
}

.aml-secondary-button {
  background: rgba(180, 106, 42, 0.12);
  color: var(--aml-accent-strong);
}

.aml-ghost-button {
  background: transparent;
  color: var(--aml-muted);
  border: 1px solid rgba(64, 44, 27, 0.12);
}

.aml-primary-button:hover,
.aml-secondary-button:hover,
.aml-ghost-button:hover {
  transform: translateY(-1px);
}

.aml-submit-bar {
  justify-content: space-between;
  align-items: flex-start;
}

.aml-submit-bar p {
  margin: 0;
  max-width: 560px;
  color: var(--aml-muted);
  line-height: 1.6;
}

.aml-consent-box {
  display: grid;
  gap: 12px;
}

.aml-submit-bar + .aml-feedback {
  margin-top: 16px;
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .aml-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .aml-shell {
    padding: 28px 14px 44px;
  }

  .aml-form-panel,
  .aml-hero-copy,
  .aml-hero-facts {
    padding: 20px;
    border-radius: 22px;
  }

  .aml-grid-2 {
    grid-template-columns: 1fr;
  }

  .aml-choice-grid,
  .aml-choice-grid-compact {
    grid-template-columns: 1fr;
  }

  .aml-section {
    padding: 18px;
  }

  .aml-submit-bar {
    flex-direction: column;
  }
}
