/* ============================================================
   Irsaal — the sign-up form.

   Loaded by that one page. Built on the tokens in marketing.css,
   so the brand colour and the dark palette reach it unchanged.
   ============================================================ */

.ir-signup { padding: clamp(36px, 5.5vw, 72px) 0 clamp(48px, 7vw, 96px); }

/* Three pieces: the heading, the form, and the reasons. Side by side on a
   desk — heading and reasons on the left, the form down the right — and on a
   phone in the order somebody needs them: what this is, the form, the rest. */
.ir-signup__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "head card" "more card";
  column-gap: clamp(28px, 4.5vw, 64px); row-gap: 0;
  align-items: start;
}
.ir-signup__head { grid-area: head; }
.ir-signup__more { grid-area: more; }
.ir-signup__card { grid-area: card; }

.ir-signup__head h1 { font-size: clamp(1.9rem, 1.3rem + 2.1vw, 2.8rem); }
.ir-signup__more .ir-list { margin-top: 22px; }

/* ---------- where the product is open ---------- */

.ir-signup__open {
  margin-top: 30px; padding: 20px 22px;
  background: var(--ir-bg-alt);
  border: 1px solid var(--ir-line); border-radius: var(--ir-radius-lg);
}
.ir-signup__open h2 {
  margin: 0 0 14px; font-size: .78rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ir-muted);
}
.ir-flags { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.ir-flags li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 7px;
  font-size: .86rem; font-weight: 650; color: var(--ir-ink);
  background: var(--ir-surface);
  border: 1px solid var(--ir-line); border-radius: var(--ir-radius-pill);
}
.ir-flag {
  display: block; flex: none; width: 26px; height: 19.5px;
  object-fit: cover; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(11, 21, 36, .12);
}
.ir-signup__open p { margin: 14px 0 0; font-size: .85rem; color: var(--ir-muted); }

.ir-signup__signin {
  margin-top: 18px; padding: 16px 20px;
  font-size: .9rem;
  border: 1px solid var(--ir-line); border-radius: var(--ir-radius);
  background: var(--ir-surface);
}
.ir-signup__signin i { color: var(--ir-brand); }

/* ---------- the form card ---------- */

.ir-signup__card {
  padding: clamp(22px, 3vw, 34px);
  background: var(--ir-surface);
  border: 1px solid var(--ir-line); border-radius: var(--ir-radius-lg);
  box-shadow: var(--ir-shadow-lg);
}
.ir-signup__card .ir-alert { margin-bottom: 18px; }

/* A group of choices with a heading of its own: the product, the country. */
.ir-choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 9px; }
.ir-choice > legend {
  padding: 0; margin-bottom: 9px;
  font-size: .87rem; font-weight: 650; color: var(--ir-ink);
}
.ir-choice > small { font-size: .81rem; color: var(--ir-muted); }

/* The radio itself is kept, but out of sight: the card is the control, and a
   keyboard still lands on the real input. */
.ir-choice input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}

/* ---------- what the account is for ---------- */

.ir-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ir-pick { position: relative; display: block; cursor: pointer; }
.ir-pick__body {
  display: flex; align-items: flex-start; gap: 11px; height: 100%;
  padding: 13px 14px;
  background: var(--ir-surface);
  border: 1.5px solid var(--ir-line); border-radius: 13px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ir-pick__ico {
  display: inline-grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ir-brand-soft); color: var(--ir-brand); font-size: 1.25rem;
}
.ir-pick__text { display: grid; gap: 2px; min-width: 0; }
.ir-pick__text strong { font-size: .92rem; color: var(--ir-ink); line-height: 1.25; }
.ir-pick__text small { font-size: .77rem; color: var(--ir-muted); line-height: 1.35; }
.ir-pick:hover .ir-pick__body { border-color: color-mix(in srgb, var(--ir-brand) 45%, var(--ir-line)); }
.ir-pick input:checked + .ir-pick__body {
  border-color: var(--ir-brand);
  background: color-mix(in srgb, var(--ir-brand) 6%, var(--ir-surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ir-brand) 14%, transparent);
}
.ir-pick input:checked + .ir-pick__body .ir-pick__ico { background: var(--ir-brand); color: #fff; }
.ir-pick input:focus-visible + .ir-pick__body { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ir-brand) 28%, transparent); }

/* ---------- the country, by its flag ---------- */

.ir-countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.ir-country { position: relative; display: block; cursor: pointer; }
.ir-country__chip {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  background: var(--ir-surface);
  border: 1.5px solid var(--ir-line); border-radius: 11px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.ir-country__text { display: grid; min-width: 0; line-height: 1.2; }
.ir-country__text strong {
  font-size: .85rem; color: var(--ir-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ir-country__text small { font-size: .74rem; color: var(--ir-muted); font-variant-numeric: tabular-nums; }
.ir-country:hover .ir-country__chip { border-color: color-mix(in srgb, var(--ir-brand) 45%, var(--ir-line)); }
.ir-country input:checked + .ir-country__chip {
  border-color: var(--ir-brand);
  background: color-mix(in srgb, var(--ir-brand) 6%, var(--ir-surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ir-brand) 14%, transparent);
}
.ir-country input:focus-visible + .ir-country__chip { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ir-brand) 28%, transparent); }
/* A country that is listed but not open yet. */
.ir-country.is-soon { cursor: not-allowed; }
.ir-country.is-soon .ir-country__chip { opacity: .55; }

/* ---------- the number, behind its country's code ---------- */

/* `.ir-tel`, not `.ir-phone`: that name is the phone mock-up in the artwork,
   and borrowing it drew a handset around the number box. */
.ir-tel { display: flex; align-items: stretch; }
.ir-tel__code {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 0 13px;
  font-weight: 650; font-size: .95rem; color: var(--ir-ink); white-space: nowrap;
  background: var(--ir-bg-alt);
  border: 1px solid var(--ir-line); border-right: 0; border-radius: 11px 0 0 11px;
}
.ir-field .ir-tel input { border-radius: 0 11px 11px 0; min-width: 0; flex: 1; }

/* ---------- signing up with a Google account ---------- */

.ir-google-id {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 15px; margin-bottom: 18px;
  background: var(--ir-bg-alt);
  border: 1px solid var(--ir-line); border-radius: 13px;
}
.ir-google-id svg { width: 26px; height: 26px; flex: none; }
.ir-google-id__who { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.ir-google-id__who strong { font-size: .93rem; color: var(--ir-ink); }
.ir-google-id__who span { font-size: .84rem; color: var(--ir-muted); overflow: hidden; text-overflow: ellipsis; }
.ir-linkbtn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .84rem; font-weight: 650; color: var(--ir-brand);
}
.ir-linkbtn:hover { color: var(--ir-brand-lift); text-decoration: underline; }

.ir-field input[readonly] { background: var(--ir-bg-alt); color: var(--ir-body); }

/* Two fields side by side. Each keeps its own height: stretched to match a
   neighbour with a hint under it, a box grows taller than the one beside it. */
.ir-form .ir-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }

.ir-signup__fine { margin: 14px 0 0; text-align: center; font-size: .82rem; color: var(--ir-muted); }

/* ---------- small screens ---------- */

@media (max-width: 980px) {
  .ir-signup__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "head" "card" "more";
    row-gap: 22px;
  }
  .ir-signup__head h1 { font-size: 1.7rem; }
  .ir-signup__head .ir-lead { margin-bottom: 0; }
  .ir-signup__more .ir-list { margin-top: 0; }
}

@media (max-width: 520px) {
  .ir-picks { grid-template-columns: 1fr; }
  .ir-countries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ir-form .ir-row2 { grid-template-columns: 1fr; }
  .ir-signup__card { padding: 20px 16px; }
}
