/* ambassadors.css: the ambassador program page (2026-10-16, third pass). the
   page reuses the landing page's own pieces (.al-hero, .al-hubs, .al-hub cards
   from landing-app.css) and only adds the hero art, the step art and the form */

.amb-main {
  padding-bottom: 24px;
}

.amb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 28px;
}

.amb-hero-link {
  margin-top: 0;
}

.amb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* deeper emerald than the nav's Join Today so white text clears WCAG AA
   (white on #10b981 measures 2.5:1, on #047852 5.5:1) */
.amb-btn--primary {
  background: #047852;
  color: #ffffff;
  box-shadow: 0 4px 0 #064e36;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.amb-btn--primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #064e36;
}

.amb-btn:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.4);
  outline-offset: 3px;
}

/* the art is cut out (transparent), so it sits straight on the page and the
   cards with no panel of its own and works in both themes */
.amb-hero-art {
  width: min(560px, 88%);
  margin: 44px auto 0;
}

.amb-hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.al-hub-shot.amb-shot,
[data-theme="dark"] .al-hub-shot.amb-shot {
  height: 280px;
  padding: 16px 0;
  background: none;
  box-shadow: none;
}

.amb-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* stronger text than the landing's --al-ink-2, which reads faint at body
   size on the cards (dark especially) */
.amb-page {
  --amb-body: #3d434a;
}

[data-theme="dark"] .amb-page {
  --amb-body: #d6d7db;
}

.amb-page .al-subtitle,
.amb-page .al-sub {
  color: var(--amb-body);
  text-wrap: balance;
}

.amb-page .al-hub-body p {
  text-wrap: pretty;
  font-size: 18px;
  line-height: 1.55;
  color: var(--amb-body);
}

/* light-mode links in the darker emerald (the landing's #0a8f63 is 3.9:1) */
html:not([data-theme="dark"]) .amb-page .amb-hero-link,
html:not([data-theme="dark"]) .amb-page .amb-account-add {
  color: #047852;
}

/* step numbers: lime circle, deep teal digit, in both themes */
.amb-page .al-hub-icon.amb-step-icon {
  background: #bef078;
  color: #083d3d;
}

.amb-step-icon {
  font-family: var(--al-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

/* the form card reads as one more landing card */
.amb-apply .amb-apply-card {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 40px;
  border-radius: 28px;
  background: var(--al-card);
  box-shadow: var(--al-shadow);
  text-align: left;
}

.amb-page .pricing-faq {
  margin-top: var(--al-gap, 88px);
}

/* ---------- application form ---------- */
.amb-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 18px;
}

.amb-field {
  display: grid;
  gap: 7px;
}

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

.amb-field label {
  font-size: 0.9rem;
  font-weight: var(--fw-semibold, 600);
  color: var(--al-ink);
}

.amb-optional {
  font-weight: var(--fw-regular, 400);
  color: var(--al-ink-3);
}

.amb-field input,
.amb-field select,
.amb-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--al-line);
  border-radius: 12px;
  background: var(--al-ground);
  color: var(--al-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.amb-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.amb-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.amb-field input::placeholder,
.amb-field textarea::placeholder {
  color: var(--al-ink-3);
}

.amb-field input:focus,
.amb-field select:focus,
.amb-field textarea:focus {
  outline: none;
  border-color: var(--al-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.amb-form.was-validated :is(input, select, textarea):invalid {
  border-color: #e5484d;
}

.amb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.amb-form-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(229, 72, 77, 0.1);
  color: #c4363b;
  font-size: 0.92rem;
  font-weight: var(--fw-semibold, 600);
}

[data-theme="dark"] .amb-form-error {
  color: #ff8589;
}

/* centred under the form (matheus 2026-10-17) */
.amb-submit {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 240px;
}

.amb-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.amb-success {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 0 8px;
  text-align: center;
  outline: none;
}

.amb-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--al-accent);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.35);
}

.amb-success-icon svg {
  width: 30px;
  height: 30px;
}

.amb-success h3 {
  margin: 8px 0 0;
  font-family: var(--al-serif);
  font-size: 1.8rem;
  color: var(--al-ink);
}

.amb-success p {
  margin: 0;
  text-wrap: balance;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--al-ink-2);
}

/* the form and success panel set display, so [hidden] needs restating */
.amb-form[hidden],
.amb-success[hidden],
.amb-form-error[hidden] {
  display: none;
}

/* ---------- faq ---------- */
.amb-page .pricing-faq {
  margin-top: var(--al-gap, 88px);
}

/* dark form: the default hairline and fill vanish on the dark card */
[data-theme="dark"] .amb-field input,
[data-theme="dark"] .amb-field select,
[data-theme="dark"] .amb-field textarea,
[data-theme="dark"] .amb-account select,
[data-theme="dark"] .amb-account input {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: #2a2a33;
}

[data-theme="dark"] .amb-field label,
[data-theme="dark"] .amb-accounts legend {
  color: #f1f1f4;
}

[data-theme="dark"] .amb-account-remove {
  border-color: rgba(255, 255, 255, 0.18);
  color: #c9cad0;
}

/* ---------- social accounts ---------- */
.amb-accounts {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.amb-accounts legend {
  padding: 0;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold, 600);
  color: var(--al-ink);
}

.amb-accounts-list {
  display: grid;
  gap: 10px;
}

.amb-account {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.amb-account select,
.amb-account input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--al-line);
  border-radius: 12px;
  background: var(--al-ground);
  color: var(--al-ink);
  font: inherit;
  font-size: 1rem;
}

.amb-account select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.amb-account select:focus,
.amb-account input:focus {
  outline: none;
  border-color: var(--al-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.amb-form.was-validated .amb-account :invalid {
  border-color: #e5484d;
}

.amb-account-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--al-line);
  border-radius: 50%;
  background: transparent;
  color: var(--al-ink-3);
  cursor: pointer;
}

.amb-account-remove[hidden] {
  display: none;
}

/* keeps the input full width when the first row has no remove button */
.amb-account:has(.amb-account-remove[hidden]) {
  grid-template-columns: minmax(130px, 0.42fr) minmax(0, 1fr);
}

.amb-account-remove svg,
.amb-account-add svg {
  width: 16px;
  height: 16px;
}

.amb-account-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--al-accent-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.amb-account-add[hidden] {
  display: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .al-hub-shot.amb-shot {
    height: 240px;
  }

  .amb-page .al-hub-body p {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .amb-hero-art {
    margin-top: 32px;
  }

  .amb-apply .amb-apply-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .amb-form {
    grid-template-columns: 1fr;
  }

  .amb-submit {
    justify-self: stretch;
    width: 100%;
  }

  /* phone: platform and remove on one line, the handle full width under them */
  .amb-account,
  .amb-account:has(.amb-account-remove[hidden]) {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .amb-account select {
    grid-column: 1;
    grid-row: 1;
  }

  .amb-account-remove {
    grid-column: 2;
    grid-row: 1;
  }

  .amb-account input {
    grid-column: 1 / -1;
  }

  .amb-account + .amb-account {
    padding-top: 12px;
    border-top: 1px solid var(--al-line);
  }
}
