/* =============================================================
   NewCombin — Resource download (gated) landing pages
   Used by:
     /static-pages/resources/latam-recruiters-hiring-guide/index.html
     /static-pages/resources/latam-salary-guide/index.html

   Visual system follows the NewCombin design system. The gated form
   re-uses the exact visual criteria of the Contact Us form (white card,
   labels, inputs, borders, focus states, orange CTA, loading + status
   states, inline per-field errors) — adapted to 3 fields, no steps.
   Namespaced `rd-` so it never collides with the contact form CSS/JS.
   ============================================================= */

body { background: var(--nc-seasalt); }

/* These pages have no promo banner, so pull the glass nav to the top
   edge — same override the Contact page uses. Scoped to page CSS. */
.cs-nav-wrap { top: 0; }
@media (max-width: 1024px) {
  .cs-nav-wrap { top: 0; }
  .cs-nav-wrap.is-open { top: 0; max-height: 100vh; }
}
@media (max-width: 640px) {
  .cs-nav-wrap { top: 0; }
  .cs-nav-wrap.is-open { top: 0; max-height: 100vh; }
}

/* =============================================================
   HERO — dark slab (DS "Dark" mode) with subtle orange/fawn blooms.
   Two columns: left copy, right white form card (form visible above
   the fold, like the Contact page).
   ============================================================= */
.rd-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--nc-dark-gray);
  padding: 152px 0 92px;
}
.rd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 12% 8%, rgba(234, 127, 10, 0.20), rgba(234, 127, 10, 0) 60%),
    radial-gradient(720px 520px at 92% 92%, rgba(250, 188, 120, 0.14), rgba(250, 188, 120, 0) 62%);
}
.rd-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0) 30%, rgba(20, 20, 20, 0.55) 100%);
}
.rd-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 56px;
  align-items: center;
}

/* ---- LEFT: copy column ---- */
.rd-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--nc-seasalt);
}
.rd-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--nc-fawn);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rd-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--nc-orange);
  border-radius: 2px;
}
.rd-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: .5px;
  color: var(--nc-seasalt);
  margin: 0;
  text-wrap: balance;
}
.rd-hero__title em {
  font-style: normal;
  color: var(--nc-orange);
}
.rd-hero__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(250, 250, 250, 0.84);
  margin: 0;
  max-width: 540px;
  text-wrap: pretty;
}

/* Value bullets */
.rd-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 540px;
}
.rd-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--nc-seasalt);
}
.rd-points__check {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(234, 127, 10, 0.22);
  color: var(--nc-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.rd-points__check svg { display: block; }

/* Small trust strip under bullets */
.rd-hero__trust {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 250, 250, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}
.rd-hero__trust div {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(250, 250, 250, 0.78);
  line-height: 1.3;
}
.rd-hero__trust strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .3px;
  color: var(--nc-seasalt);
  margin-bottom: 2px;
}

/* =============================================================
   FORM CARD — replicates the Contact Us form visual system.
   ============================================================= */
.rd-card {
  position: relative;
  background: var(--nc-white);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 80px rgba(0, 0, 0, 0.35),
    0 8px 22px rgba(0, 0, 0, 0.18);
}
/* Thin accent ribbon across the top of the card */
.rd-card__ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 36px;
  background: linear-gradient(90deg, rgba(234, 127, 10, 0.10), rgba(250, 188, 120, 0.10));
  border-bottom: 1px solid rgba(64, 64, 64, 0.08);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nc-deep-orange);
}
.rd-card__ribbon svg { display: block; flex: none; }

.rd-form {
  padding: 26px 36px 34px;
  color: var(--nc-dark-gray);
}
.rd-form__head { margin: 0 0 18px; }
.rd-form__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--nc-dark-gray);
  margin: 0 0 6px;
}
.rd-form__lead {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--nc-ink-600);
  margin: 0;
}
.rd-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 6px;
}
.rd-form__field { display: flex; flex-direction: column; gap: 6px; }
.rd-form__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .2px;
  color: var(--nc-dark-gray);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.rd-form__label .req {
  color: var(--nc-orange);
  font-weight: 800;
}
.rd-form__input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--nc-dark-gray);
  background: var(--nc-white);
  border: 1.5px solid var(--nc-ink-200);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.rd-form__input::placeholder { color: var(--nc-ink-400); }
.rd-form__input:hover { border-color: var(--nc-ink-400); }
.rd-form__input:focus {
  outline: none;
  border-color: var(--nc-orange);
  box-shadow: 0 0 0 4px rgba(234, 127, 10, 0.15);
}
/* Field-level error state */
.rd-form__field.is-invalid .rd-form__input {
  border-color: #D14343;
  background: rgba(209, 67, 67, 0.04);
}
.rd-form__error {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #D14343;
  min-height: 0;
  transition: min-height .12s ease;
}
.rd-form__field.is-invalid .rd-form__error { min-height: 16px; }

.rd-form__actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.rd-form__submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  color: var(--nc-white);
  background: var(--nc-orange);
  padding: 14px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(234, 127, 10, 0.25);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.rd-form__submit:hover {
  background: var(--nc-deep-orange);
  box-shadow: 0 12px 24px rgba(234, 88, 24, 0.3);
}
.rd-form__submit:active { transform: translateY(1px); }
.rd-form__submit svg { display: block; transition: transform .2s ease; }
.rd-form__submit:hover svg { transform: translateX(2px); }
.rd-form__submit[disabled],
.rd-form__submit.is-loading {
  cursor: progress;
  opacity: .85;
}
.rd-form__submit.is-loading { background: var(--nc-deep-orange); }
.rd-form__submit .spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--nc-white);
  display: none;
  animation: rdSpin 0.8s linear infinite;
}
.rd-form__submit.is-loading .spinner { display: inline-block; }
.rd-form__submit.is-loading .arrow   { display: none; }
@keyframes rdSpin { to { transform: rotate(360deg); } }

.rd-form__note {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--nc-ink-500);
  max-width: 220px;
  text-align: right;
  line-height: 1.4;
}

/* General status message (success / error) below the form */
.rd-form__status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.45;
  display: none;
  border: 1px solid transparent;
}
.rd-form__status.is-visible { display: block; }
.rd-form__status.is-success {
  background: rgba(34, 139, 87, 0.08);
  border-color: rgba(34, 139, 87, 0.25);
  color: #1e6e44;
}
.rd-form__status.is-error {
  background: rgba(209, 67, 67, 0.08);
  border-color: rgba(209, 67, 67, 0.30);
  color: #B53030;
}

/* Success panel (swaps in over the form fields once submitted) */
.rd-form.is-sent .rd-form__grid,
.rd-form.is-sent .rd-form__actions { display: none; }
.rd-success {
  display: none;
  text-align: center;
  padding: 6px 0 4px;
}
.rd-form.is-sent .rd-success { display: block; }
.rd-success__icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(34, 139, 87, 0.10);
  color: #1e6e44;
  display: inline-grid;
  place-items: center;
  margin: 4px auto 14px;
}
.rd-success__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  color: var(--nc-dark-gray);
  margin: 0 0 8px;
}
.rd-success__body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--nc-ink-600);
  max-width: 360px;
  margin: 0 auto;
}

/* =============================================================
   "WHAT'S INSIDE" — card grid on the light section
   ============================================================= */
.rd-section {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 84px 32px;
}
.rd-section__head {
  max-width: 720px;
  margin: 0 0 40px;
}
.rd-section__eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--nc-deep-orange);
  margin: 0 0 14px;
}
.rd-section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: .3px;
  color: var(--nc-dark-gray);
  margin: 0 0 12px;
  text-wrap: balance;
}
.rd-section__lead {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--nc-ink-600);
  margin: 0;
  text-wrap: pretty;
}

.rd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rd-tile {
  background: var(--nc-white);
  border: 1px solid rgba(64, 64, 64, 0.10);
  border-radius: 20px;
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s var(--ease-out, ease), box-shadow .2s ease, border-color .2s ease;
}
.rd-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
  border-color: rgba(234, 127, 10, 0.30);
}
.rd-tile__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(234, 127, 10, 0.10);
  color: var(--nc-deep-orange);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.rd-tile__icon svg { display: block; }
.rd-tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: .2px;
  color: var(--nc-dark-gray);
  margin: 2px 0 0;
}
.rd-tile__body {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--nc-ink-600);
  margin: 0;
  text-wrap: pretty;
}

/* =============================================================
   "BUILT FOR" qualifier — two compact columns
   ============================================================= */
.rd-for {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}
.rd-for__col {
  background: var(--nc-white);
  border: 1px solid rgba(64, 64, 64, 0.10);
  border-radius: 18px;
  padding: 24px 26px;
}
.rd-for__col--muted { background: var(--nc-ink-050); border-style: dashed; }
.rd-for__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.rd-for__col .rd-for__label { color: var(--nc-deep-orange); }
.rd-for__col--muted .rd-for__label { color: var(--nc-ink-500); }
.rd-for__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.rd-for__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--nc-dark-gray);
}
.rd-for__col--muted .rd-for__list li { color: var(--nc-ink-600); }
.rd-for__list svg { flex: none; margin-top: 2px; }
.rd-for__col .rd-for__list svg { color: #1e8a55; }
.rd-for__col--muted .rd-for__list svg { color: var(--nc-ink-400); }

/* =============================================================
   CREDIBILITY band — dark slab with proof stats + badges
   ============================================================= */
.rd-cred {
  background: var(--nc-dark-gray);
  color: var(--nc-seasalt);
}
.rd-cred__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.rd-cred__copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: .3px;
  margin: 0 0 12px;
  color: var(--nc-seasalt);
  text-wrap: balance;
}
.rd-cred__copy p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.80);
  margin: 0 0 22px;
  max-width: 520px;
  text-wrap: pretty;
}
.rd-cred__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
}
.rd-cred__stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .3px;
  color: var(--nc-orange);
  line-height: 1.05;
}
.rd-cred__stat span {
  font-family: var(--font-body);
  font-size: 13.5px;
  color: rgba(250, 250, 250, 0.72);
  line-height: 1.35;
}
.rd-cred__badges {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.rd-cred__badges img { height: 86px; width: auto; object-fit: contain; }
.rd-cred__badges img.is-wide { height: 56px; }

/* =============================================================
   CROSS-LINK to the sibling resource
   ============================================================= */
.rd-cross {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 32px 88px;
}
.rd-cross__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--nc-white);
  border: 1px solid rgba(64, 64, 64, 0.10);
  border-radius: 22px;
  padding: 30px 34px;
}
.rd-cross__text { display: flex; flex-direction: column; gap: 6px; }
.rd-cross__kicker {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nc-ink-500);
  margin: 0;
}
.rd-cross__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .2px;
  color: var(--nc-dark-gray);
  margin: 0;
}
.rd-cross__sub {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--nc-ink-600);
  margin: 2px 0 0;
  max-width: 520px;
}
.rd-cross__link {
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  color: var(--nc-white);
  background: var(--nc-dark-gray);
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background-color .15s ease, transform .15s ease;
}
.rd-cross__link:hover { background: #000; transform: translateY(-1px); }
.rd-cross__link svg { display: block; transition: transform .2s ease; }
.rd-cross__link:hover svg { transform: translateX(2px); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1100px) {
  .rd-hero { padding: 128px 0 72px; }
  .rd-hero__inner { grid-template-columns: 1fr; gap: 44px; max-width: 620px; }
  .rd-hero__sub, .rd-points { max-width: none; }
  .rd-cred__inner { grid-template-columns: 1fr; gap: 36px; }
  .rd-cred__badges { justify-content: flex-start; }
}
@media (max-width: 880px) {
  .rd-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .rd-for { grid-template-columns: 1fr; }
  .rd-cross__card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .rd-cross__link { width: 100%; justify-content: center; }
}
@media (max-width: 640px) {
  .rd-hero { padding: 104px 0 56px; }
  .rd-hero__inner { padding: 0 20px; gap: 36px; }
  .rd-hero__title { font-size: 34px; letter-spacing: .3px; }
  .rd-hero__sub { font-size: 16px; }
  .rd-card__ribbon { padding: 12px 22px; }
  .rd-form { padding: 22px 22px 28px; }
  .rd-form__title { font-size: 21px; }
  .rd-form__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .rd-form__submit { width: 100%; justify-content: center; }
  .rd-form__note { text-align: left; max-width: none; }
  .rd-section { padding: 60px 20px; }
  .rd-grid { grid-template-columns: 1fr; }
  .rd-cred__inner { padding: 52px 20px; }
  .rd-cred__badges img { height: 72px; }
  .rd-cross { padding: 48px 20px 72px; }
  .rd-cross__card { padding: 26px 22px; }
}
