/*
 * Intake styling, on the theme's own tokens.
 *
 * The plugin owns none of the colours. Everything below reads the variables
 * the novodan-nord theme already defines, with a plain fallback so the form is
 * still legible under a different theme, in a staging install, or on the login
 * screen. A plugin that hardcodes brand hex is a plugin that goes stale the
 * day the brand moves.
 */

.nr-eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate-500, #5C6A8C);
  margin: 0 0 6px;
}
.nr-h2 { margin: 0 0 8px; }
.nr-lead { margin: 0 0 24px; color: var(--slate-500, #5C6A8C); max-width: 62ch; }
.nr-reply { white-space: nowrap; }
.nr-back { text-decoration: underline; }

/* Step 1: the service cards. */
.nr-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.nr-card__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--ink-200, #E4E9F5);
  border-radius: 12px;
  background: var(--white, #fff);
  text-decoration: none;
  color: inherit;
}
.nr-card__link:hover,
.nr-card__link:focus-visible {
  border-color: var(--navy-500, #17309D);
  box-shadow: 0 6px 24px rgba(3, 11, 66, .08);
}
.nr-card__kicker { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate-500, #5C6A8C); }
.nr-card__title { font-size: 20px; font-weight: 700; }
.nr-card__summary { color: var(--slate-500, #5C6A8C); flex: 1; }
.nr-card__go { font-weight: 600; color: var(--navy-500, #17309D); }

/* The intent switch. Three cards, the current one marked, not a dropdown:
   the choice changes what the page asks of you, so it has to be visible
   rather than hidden behind a control you have to open. */
.nr-intents { border: 0; margin: 0 0 28px; padding: 0; }
.nr-intents legend { padding: 0; margin-bottom: 10px; }
.nr-intents__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.nr-intent {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--ink-200, #E4E9F5);
  border-radius: 10px;
  background: var(--white, #fff);
  text-decoration: none;
  color: inherit;
}
.nr-intent:hover, .nr-intent:focus-visible { border-color: var(--navy-500, #17309D); }
.nr-intent.is-current {
  border-color: var(--navy-500, #17309D);
  box-shadow: inset 0 0 0 1px var(--navy-500, #17309D);
  background: var(--ink-150, #FAFAFC);
}
.nr-intent__label { font-weight: 600; }
.nr-intent__hint { font-size: 14px; color: var(--slate-500, #5C6A8C); }
.nr-about { font-weight: 400; color: var(--slate-500, #5C6A8C); }

/* Step 2: packages. The price sits on the card, never behind the form. */
.nr-packages { border: 0; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.nr-packages legend { padding: 0; margin-bottom: 10px; }
.nr-package { position: relative; }
.nr-package__radio {
  position: absolute;
  top: 20px;
  left: 18px;
  margin: 0;
}
.nr-package__body {
  display: block;
  padding: 18px 20px 18px 46px;
  border: 1px solid var(--ink-200, #E4E9F5);
  border-radius: 12px;
  background: var(--white, #fff);
  cursor: pointer;
}
.nr-package__radio:checked + .nr-package__body {
  border-color: var(--navy-500, #17309D);
  box-shadow: inset 0 0 0 1px var(--navy-500, #17309D);
}
.nr-package__radio:focus-visible + .nr-package__body { outline: 2px solid var(--navy-500, #17309D); outline-offset: 2px; }
.nr-package__head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.nr-package__title { font-weight: 700; font-size: 18px; }
.nr-package__price { font-weight: 600; color: var(--navy-500, #17309D); white-space: nowrap; }
.nr-package__blurb { display: block; margin-top: 4px; color: var(--slate-500, #5C6A8C); }
.nr-package__includes { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.nr-package__item {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink-100, #F0F4FF);
  color: var(--slate-700, #2A2F3A);
}
.nr-note { font-size: 14px; color: var(--slate-500, #5C6A8C); margin: -16px 0 28px; }

/* The form. Two columns on a desk, one on a phone, long text always full width. */
.nr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 20px; }
.nr-field { margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.nr-label { font-weight: 600; }
.nr-req { color: var(--orange-600, #B83A0A); }
.nr-opt { font-weight: 400; font-size: 13px; color: var(--slate-500, #5C6A8C); }
.nr-hint { font-size: 14px; color: var(--slate-500, #5C6A8C); }
.nr-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--ink-200, #E4E9F5);
  border-radius: 8px;
  background: var(--white, #fff);
  font: inherit;
  color: inherit;
}
.nr-input:focus-visible { outline: 2px solid var(--navy-500, #17309D); outline-offset: 1px; }
.nr-input--file { padding: 9px; }

.nr-files { margin: 8px 0 20px; }
.nr-warn {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--orange-500, #F35C27);
  background: var(--ink-150, #FAFAFC);
  font-size: 14px;
}
.nr-filelist { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--slate-500, #5C6A8C); }

.nr-check { margin: 0 0 14px; }
.nr-check label { display: flex; gap: 10px; align-items: flex-start; }
.nr-check--consent { margin-bottom: 24px; }

.nr-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nr-submit__note { font-size: 14px; color: var(--slate-500, #5C6A8C); }
.nr-btn {
  display: inline-block;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-500, #17309D);
  color: var(--white, #fff);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.nr-btn:hover, .nr-btn:focus-visible { background: var(--navy-700, #09204F); color: var(--white, #fff); }
.nr-btn--inline { margin: 8px 0; }

.nr-error {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--orange-600, #B83A0A);
  background: var(--ink-150, #FAFAFC);
}

/* The honeypot: off screen for people, present in the DOM for a script. */
.nr-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.nr-thanks { max-width: 62ch; }

/* The consent line. Shown only to someone who arrived through a partner link,
   so it is a note at the foot of the page rather than a curtain over it: it
   asks about the link they followed, not about tracking them. */
.nr-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--ink-200, #E4E9F5);
  border-radius: 12px;
  background: var(--white, #fff);
  box-shadow: 0 10px 40px rgba(3, 11, 66, .16);
}
.nr-consent__text { margin: 0; font-size: 15px; line-height: 1.55; }
.nr-consent__actions { display: flex; align-items: center; gap: 14px; margin: 0; }
.nr-btn--small { padding: 9px 18px; font-size: 15px; }
.nr-consent__no {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--slate-500, #5C6A8C);
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 600px) {
  .nr-consent { left: 8px; right: 8px; bottom: 8px; }
}
