/* Register interest (v3) — extras on top of pages.css (.wp-* form system). */

/* Quick picks: the most requested certifications */
.ip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border: 1px solid var(--w-line); border-radius: 999px; background: #fff; color: var(--w-ink-2); font: 500 .875rem/1.2 var(--f-head); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, box-shadow .15s; }
.ip-chip img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; flex: none; }
.ip-chip span { unicode-bidi: plaintext; }
.ip-chip:hover { border-color: #c4cad4; color: var(--w-ink); }
.ip-chip:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0, 74, 173, .15); }
.ip-chip.is-on { border-color: var(--w-accent); background: var(--blue-50, #eef5ff); color: var(--w-accent); box-shadow: inset 0 0 0 1px var(--w-accent); }

/* The full list: a native select (accessible, grouped by certification body) with our own arrow */
.ip-select { position: relative; }
.ip-select select.wp-in { padding-inline-end: 42px; cursor: pointer; text-overflow: ellipsis; }
.ip-select > i { position: absolute; top: 50%; inset-inline-end: 16px; transform: translateY(-50%); color: var(--w-faint); font-size: .8rem; pointer-events: none; }

/* The chosen certification */
.ip-chosen { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--blue-200, #b9d5ff); border-radius: 12px; background: var(--blue-50, #eef5ff); }
.ip-chosen[hidden] { display: none; }
.ip-chosen__img { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--w-line-2); color: var(--w-accent); }
.ip-chosen__img img { width: 36px; height: 36px; object-fit: contain; }
.ip-chosen__txt { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ip-chosen__txt b { font: 600 .9375rem/1.4 var(--f-head); color: var(--w-ink); unicode-bidi: plaintext; text-align: start; overflow-wrap: anywhere; }
.ip-chosen__txt small { color: var(--w-muted); font-size: .8125rem; }
.ip-chosen__x { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--w-muted); cursor: pointer; }
.ip-chosen__x:hover { background: #fff; color: var(--w-ink); }
.ip-chosen__x:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 74, 173, .2); }

/* Quick questions */
.ip-prompts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ip-prompt { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px dashed #c9d2df; border-radius: 999px; background: var(--w-soft); color: var(--w-ink-2); font: 500 .8125rem/1.2 var(--f-head); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s; }
.ip-prompt i { font-size: .7rem; color: var(--w-faint); transition: transform .15s; }
.ip-prompt:hover { border-color: var(--w-accent); color: var(--w-accent); }
.ip-prompt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(0, 74, 173, .15); }
.ip-prompt.is-on { border-style: solid; border-color: var(--w-accent); background: #fff; color: var(--w-accent); }
.ip-prompt.is-on i { transform: rotate(45deg); color: var(--w-accent); }

@media (max-width: 640px) {
  .ip-chip { font-size: .8125rem; min-height: 40px; }
  .ip-prompt { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .ip-chip, .ip-prompt, .ip-prompt i { transition: none; } }
