/*
 * Talent onboarding (/talent-onboarding) — templates/talent-onboarding.php.
 *
 * Ported from the Flexable-Talent-Onboarding.html design. The design stacked
 * several override blocks ("Minimal join flow", "Four-step join flow"); they
 * are folded into their final values here. Classes carry an flxt- prefix so
 * nothing from the theme or plugins can collide with them.
 */

.flxt-body {
  --flxt-bg: #fdfdfd;
  --flxt-ink: #17181a;
  --flxt-line: #e6e8e9;
  --flxt-brand: #05bc5b;
  --flxt-brand-soft: #e9faef;
  --flxt-charcoal: #3e3e45;
  --flxt-danger: #a44343;
  /* Type scale: 12px for labels, values and options; 11px for meta text
     (hints, helpers, errors, counts); headings above. Weights: 400 text,
     500 labels / values, 600 headings / buttons, 700 hero + eyebrows. */
  --flxt-label: #55595d;  /* field labels, secondary text */
  --flxt-body: #666a6d;   /* sentences */
  --flxt-muted: #93979a;  /* hints, helpers, counts, "Optional" */
  margin: 0;
  background: var(--flxt-bg);
  color: var(--flxt-ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  height: auto;
}

/* The theme sets Poppins (and its own colour) on body, h1–h3 and p. */
.flxt-body h1,
.flxt-body h2,
.flxt-body p {
  font-family: inherit;
}

.flxt-body h1,
.flxt-body h2 {
  color: var(--flxt-ink);
}

.flxt-body *,
.flxt-body *::before,
.flxt-body *::after {
  box-sizing: border-box;
}

/* Zero specificity so each control's own class sets its size. */
:where(.flxt-body) :where(button, input, textarea, select) {
  font: inherit;
  letter-spacing: inherit;
}

.flxt-body button {
  cursor: pointer;
}

.flxt-body a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Top bar & hero ---------- */

.flxt-topbar {
  height: 64px;
  border-bottom: 1px solid var(--flxt-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(253, 253, 253, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.flxt-topbar-logo {
  width: 112px;
  height: auto;
  display: block;
}

.flxt-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.flxt-hero {
  max-width: 600px;
  margin-bottom: 34px;
}

.flxt-eyebrow {
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--flxt-brand);
  font-weight: 700;
  margin-bottom: 10px;
}

.flxt-hero h1 {
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.052em;
  margin: 0 0 10px;
  font-weight: 700;
}

.flxt-hero p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--flxt-body);
  margin: 0;
  max-width: 520px;
}

/* ---------- Layout & sections ---------- */

.flxt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
}

.flxt-form {
  min-width: 0;
}

.flxt-section {
  scroll-margin-top: 90px;
  background: transparent;
  border: 0;
  padding: 0 0 30px;
  margin: 0;
}

.flxt-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.flxt-section h2 {
  font-size: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.flxt-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ---------- Fields ---------- */

.flxt-field {
  margin-bottom: 13px;
}

.flxt-field:last-child {
  margin-bottom: 0;
}

.flxt-field label,
.flxt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--flxt-label);
  margin-bottom: 7px;
}

.flxt-field label small,
.flxt-label small {
  font-weight: 400;
  color: var(--flxt-muted);
  font-size: 11px;
}

/* Inputs: 12px text; typed values sit darker and heavier than placeholders. */
.flxt-control,
.flxt-textarea {
  width: 100%;
  border: 1px solid #e1e4e5;
  border-radius: 12px;
  background: #fff;
  outline: none;
  color: #17181a;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(18, 20, 22, 0.03);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.flxt-control {
  height: 42px;
  padding: 0 14px;
}

.flxt-textarea {
  min-height: 88px;
  resize: vertical;
  padding: 12px 14px;
  line-height: 1.6;
}

.flxt-control:hover,
.flxt-textarea:hover {
  border-color: #cdd2d4;
}

.flxt-control:focus,
.flxt-textarea:focus {
  border-color: #7fd9a8;
  box-shadow: 0 0 0 3px rgba(5, 188, 91, 0.12);
}

.flxt-control::placeholder,
.flxt-textarea::placeholder {
  color: #a6aaad;
  font-weight: 400;
}

.flxt-helper {
  font-size: 11px;
  line-height: 1.5;
  color: var(--flxt-muted);
  margin-top: 6px;
}

.flxt-error {
  display: none;
  color: var(--flxt-danger);
  font-size: 11px;
  margin-top: 6px;
}

.flxt-error.show,
.flxt-field.invalid > .flxt-error,
.flxt-field.invalid .flxt-whatsapp-field > .flxt-error {
  display: block;
}

.flxt-field.invalid .flxt-control,
.flxt-field.invalid .flxt-textarea,
.flxt-control.invalid,
.flxt-textarea.invalid {
  border-color: #ddbcbc;
}

/* ---------- Photo ---------- */

.flxt-photo-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}

.flxt-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #17181a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid #dfe2e3;
}

.flxt-avatar img,
.flxt-p-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flxt-photo-actions b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--flxt-label);
  margin-bottom: 6px;
}

.flxt-photo-actions b small {
  font-size: 11px;
  font-weight: 400;
  color: var(--flxt-muted);
}

.flxt-upload {
  height: 32px;
  border: 1px solid #dfe2e3;
  border-radius: 10px;
  background: #fff;
  color: #3e4245;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.flxt-upload:hover {
  background: #f8f9f9;
}

.flxt-photo-error {
  margin-top: 6px;
}

/* ---------- Location pickers ---------- */

.flxt-location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.flxt-combo {
  position: relative;
}

.flxt-combo-input {
  padding-right: 34px;
}

.flxt-combo::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #8e9295;
  border-bottom: 1.5px solid #8e9295;
  transform: rotate(45deg);
  pointer-events: none;
}

.flxt-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 45;
  background: #fff;
  border: 1px solid var(--flxt-line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(18, 20, 22, 0.1);
  padding: 6px;
  max-height: 220px;
  overflow: auto;
}

.flxt-combo.open .flxt-menu,
.flxt-skill-wrap.open .flxt-menu {
  display: block;
}

.flxt-option {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-size: 12px;
  color: #4f5356;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flxt-option:hover,
.flxt-option.active {
  background: #f4f6f5;
  color: #08743e;
}

.flxt-option small {
  font-size: 11px;
  color: var(--flxt-muted);
  font-weight: 400;
}

.flxt-menu-empty {
  display: block;
  padding: 9px 10px;
  font-size: 11px;
  color: var(--flxt-muted);
}

.flxt-combo.disabled {
  opacity: 0.55;
}

.flxt-combo.disabled input {
  cursor: not-allowed;
  background: #fafafa;
}

/* ---------- Custom select (a native <select> stays in the form, hidden) ---------- */

.flxt-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.flxt-select-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 34px;
  text-align: left;
  cursor: pointer;
}

.flxt-select-btn .flxt-select-value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flxt-select-btn .flxt-select-value.placeholder {
  color: #a6aaad;
  font-weight: 400;
}

.flxt-select-btn .flxt-select-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--flxt-muted);
  white-space: nowrap;
}

.flxt-select.open .flxt-select-btn {
  border-color: #7fd9a8;
  box-shadow: 0 0 0 3px rgba(5, 188, 91, 0.12);
}

.flxt-select.open::after {
  transform: rotate(-135deg);
  top: 20px;
}

.flxt-select.open .flxt-menu {
  display: block;
}

/* Near the bottom of the screen the menu opens upwards (set in JS). */
.flxt-select.up .flxt-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.flxt-select .flxt-option {
  gap: 12px;
}

.flxt-select .flxt-option small {
  font-size: 11px;
  font-weight: 400;
}

/* The current choice, in the timezone and location pickers alike. */
.flxt-combo .flxt-option.selected {
  color: #08743e;
  font-weight: 700;
}

.flxt-combo .flxt-option.selected::after {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 8px;
  margin: 0 3px 2px 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.flxt-select .flxt-option .flxt-option-text {
  display: flex;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

/* ---------- Skills ---------- */

.flxt-skill-wrap {
  position: relative;
}

.flxt-tagbox {
  min-height: 46px;
  border: 1px solid #e1e4e5;
  border-radius: 12px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 20, 22, 0.03);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.flxt-tagbox:hover {
  border-color: #cdd2d4;
}

.flxt-tagbox:focus-within {
  border-color: #7fd9a8;
  box-shadow: 0 0 0 3px rgba(5, 188, 91, 0.12);
}

.flxt-field.invalid .flxt-tagbox {
  border-color: #ddbcbc;
}

.flxt-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f4f6f5;
  border-radius: 8px;
  padding: 6px 8px;
  color: #17181a;
  font-size: 12px;
  font-weight: 500;
}

.flxt-tag button {
  border: 0;
  background: transparent;
  color: var(--flxt-muted);
  padding: 0;
  font-size: 12px;
  line-height: 1;
}

.flxt-taginput {
  border: 0;
  outline: 0;
  min-width: 150px;
  flex: 1;
  height: 30px;
  font-size: 12px;
  font-weight: 500;
  color: #17181a;
  background: transparent;
  padding: 0 6px;
}

.flxt-taginput::placeholder {
  color: #a6aaad;
  font-weight: 400;
}

.flxt-skill-option {
  gap: 12px;
}

.flxt-skill-hint {
  font-size: 11px;
  color: var(--flxt-muted);
  margin-top: 6px;
}

/* ---------- Budget range ---------- */

/* Compact pills in one wrapping row, sized to their text. */
.flxt-range-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flxt-choice {
  height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfe2e3;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  color: #4f5356; /* same as dropdown options */
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.flxt-choice b {
  font-size: 12px;
  font-weight: 500;
}

.flxt-choice:hover {
  border-color: #cbd0d1;
}

.flxt-choice:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 188, 91, 0.12);
}

.flxt-choice.selected {
  border-color: #bde9cc;
  background: #effaf3;
  color: #146f3d;
}

.flxt-choice.selected b {
  font-weight: 600;
}

.flxt-field.invalid .flxt-choice {
  border-color: #ddbcbc;
}

/* ---------- Projects ---------- */

.flxt-sample {
  border: 1px solid #e8eaea;
  border-radius: 15px;
  padding: 14px;
  margin: 10px 0 9px;
  background: #fafbfb;
}

.flxt-sample:first-child {
  margin-top: 0;
}

.flxt-sample-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flxt-sample.collapsed .flxt-sample-top {
  margin-bottom: 0;
}

.flxt-sample-top b {
  font-size: 12px;
  font-weight: 600;
  color: var(--flxt-ink);
}

.flxt-sample-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.flxt-sample-toggle,
.flxt-remove {
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 11px;
  color: var(--flxt-label);
}

.flxt-sample-toggle:hover,
.flxt-remove:hover {
  background: #f5f6f6;
}

.flxt-remove {
  color: #9b6666;
}

.flxt-sample-summary {
  display: none;
  font-size: 11px;
  color: var(--flxt-muted);
  line-height: 1.45;
}

.flxt-sample.collapsed .flxt-sample-body {
  display: none;
}

.flxt-sample.collapsed .flxt-sample-summary {
  display: block;
}

.flxt-sample .flxt-textarea {
  min-height: 72px;
}

.flxt-add-sample {
  width: 100%;
  height: 40px;
  border: 1px dashed #d5d9da;
  border-radius: 12px;
  background: #fff;
  color: var(--flxt-label);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.flxt-add-sample:hover {
  background: #f6f8f7;
}

.flxt-add-sample[hidden] {
  display: none;
}

.flxt-project-more {
  margin-top: 4px;
}

.flxt-project-more summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--flxt-label);
  list-style: none;
}

.flxt-project-more summary::-webkit-details-marker {
  display: none;
}

.flxt-project-more summary::before {
  content: "+ ";
}

.flxt-project-more[open] summary::before {
  content: "− ";
}

.flxt-project-more .flxt-grid2 {
  margin-top: 12px;
}

/* ---------- Contact ---------- */

.flxt-contact-stack {
  display: grid;
  gap: 14px;
}

.flxt-contact-stack .flxt-field {
  margin-bottom: 0;
}

.flxt-phone-wrap {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 8px;
}

.flxt-phone-code {
  padding-right: 8px;
}

/* The code box is narrow; its menu also lists country names. */
.flxt-phone-wrap .flxt-select .flxt-menu {
  right: auto;
  width: 260px;
  max-width: calc(100vw - 32px);
}

.flxt-phone-wrap .flxt-option-text > span {
  white-space: nowrap;
}

.flxt-phone-wrap .flxt-option-text > small {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "Use “…”" — a typed city / state that isn't in the list. */
.flxt-option-typed {
  color: #08743e;
  font-weight: 600;
}

.flxt-whatsapp-field {
  position: relative;
}

.flxt-whatsapp-icon {
  position: absolute;
  left: 12px;
  top: 21px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* Filled WhatsApp mark: green bubble, white handset. */
.flxt-whatsapp-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.flxt-whatsapp-icon .flxt-wa-bubble {
  fill: #25d366;
}

.flxt-whatsapp-icon .flxt-wa-phone {
  fill: #fff;
}

.flxt-whatsapp-field .flxt-control {
  padding-left: 38px;
}

.flxt-legal {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

/* Custom 16px checkbox, centred on the text; green with a tick when checked. */
.flxt-legal input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1.5px solid #c9cdcf;
  border-radius: 5px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.flxt-legal input::after {
  content: "";
  width: 4px;
  height: 8px;
  margin-top: -2px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform 0.12s ease;
}

.flxt-legal input:hover {
  border-color: #adb4b7;
}

.flxt-legal input:checked {
  background: var(--flxt-brand);
  border-color: var(--flxt-brand);
}

.flxt-legal input:checked::after {
  transform: rotate(45deg) scale(1);
}

.flxt-legal input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 188, 91, 0.15);
}

.flxt-legal:has(+ .flxt-error.show) input {
  border-color: #d59b9b;
}

.flxt-legal label {
  font-size: 12px;
  color: var(--flxt-body);
  line-height: 1.4;
  cursor: pointer;
}

/* Line the error up with the text, not the box. */
.flxt-legal + .flxt-error {
  margin-left: 26px;
}

/* ---------- Wizard ---------- */

.flxt-progress {
  margin: 0 0 30px;
  scroll-margin-top: 90px;
}

.flxt-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.flxt-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--flxt-ink);
}

.flxt-step-count {
  font-size: 11px;
  color: var(--flxt-muted);
}

.flxt-track {
  height: 4px;
  background: #eceeee;
  border-radius: 999px;
  overflow: hidden;
}

.flxt-track i {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--flxt-brand);
  border-radius: inherit;
  transition: width 0.24s ease;
}

.flxt-step-names {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.flxt-step-name {
  font-size: 11px;
  color: var(--flxt-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flxt-step-name.active {
  color: var(--flxt-ink);
  font-weight: 600;
}

.flxt-step-name.done {
  color: #08743e;
}

.flxt-panel {
  display: none;
}

.flxt-panel.active {
  display: block;
}

.flxt-panel.active + .flxt-panel.active {
  padding-top: 26px;
  border-top: 1px solid var(--flxt-line);
  margin-top: 26px;
}

/* Buttons sit together on the right; no divider above them. */
.flxt-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.flxt-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flxt-back,
.flxt-next,
.flxt-submit {
  height: 40px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
}

.flxt-back {
  border: 1px solid var(--flxt-line);
  background: #fff;
  color: var(--flxt-label);
}

.flxt-back:hover {
  background: #f7f8f8;
}

.flxt-next,
.flxt-submit {
  border: 0;
  background: var(--flxt-charcoal);
  color: #fff;
  min-width: 108px;
}

.flxt-submit {
  display: none;
  min-width: 150px;
  align-items: center;
  justify-content: center;
}

.flxt-next:hover,
.flxt-submit:hover {
  background: #323138;
}

.flxt-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.flxt-actions.first .flxt-back {
  display: none;
}

.flxt-actions.final .flxt-next {
  display: none;
}

.flxt-actions.final .flxt-submit {
  display: inline-flex;
}

.flxt-form-error {
  display: none;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbf1f1;
  color: var(--flxt-danger);
  font-size: 11px;
  line-height: 1.5;
}

.flxt-form-error.show {
  display: block;
}

/* ---------- Preview card ---------- */

.flxt-preview {
  position: sticky;
  top: 92px;
}

.flxt-preview-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--flxt-muted);
  font-weight: 700;
  margin: 0 0 10px;
}

.flxt-preview-card {
  border: 1px solid var(--flxt-line);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.flxt-preview-main {
  padding: 18px;
}

.flxt-p-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.flxt-p-avatar {
  width: 49px;
  height: 49px;
  border-radius: 15px;
  background: #17181a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}

.flxt-p-head b {
  font-size: 14px;
  font-weight: 600;
  display: block;
  overflow-wrap: anywhere;
}

/* Only the role / location line — the avatar's letter is a span too. */
.flxt-p-head > div:not(.flxt-p-avatar) > span {
  font-size: 11px;
  line-height: 1.45;
  color: var(--flxt-muted);
  display: block;
  margin-top: 3px;
}

.flxt-p-summary {
  font-size: 12px;
  line-height: 1.55;
  color: var(--flxt-body);
  margin: 14px 0 0;
  overflow-wrap: anywhere;
}

.flxt-p-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--flxt-line);
  border-bottom: 1px solid var(--flxt-line);
  margin-top: 15px;
}

.flxt-p-stat {
  padding: 10px 0;
}

.flxt-p-stat:nth-child(odd) {
  border-right: 1px solid var(--flxt-line);
  padding-right: 10px;
}

.flxt-p-stat:nth-child(even) {
  padding-left: 10px;
}

.flxt-p-stat:nth-child(-n + 2) {
  border-bottom: 1px solid var(--flxt-line);
}

/* Same type as the form: label like .flxt-field label, value like a typed input. */
.flxt-p-stat small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--flxt-label);
  margin-bottom: 6px;
}

.flxt-p-stat b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #17181a;
}

.flxt-p-stat b.empty {
  color: #a6aaad;
  font-weight: 400;
}

.flxt-p-skills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.flxt-p-skill {
  background: #f5f6f6;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 11px;
  color: var(--flxt-label);
  font-weight: 500;
}

.flxt-match-note {
  padding: 11px 18px;
  background: #fbfcfb;
  border-top: 1px solid var(--flxt-line);
  font-size: 11px;
  line-height: 1.5;
  color: var(--flxt-label);
  font-weight: 500;
}

/* ---------- Success toast ---------- */

.flxt-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(390px, calc(100% - 32px));
  background: #fff;
  border: 1px solid #cbeed8;
  border-radius: 17px;
  box-shadow: 0 18px 50px rgba(18, 20, 22, 0.13);
  padding: 15px;
  display: none;
  align-items: flex-start;
  gap: 11px;
  z-index: 100;
}

.flxt-toast.show {
  display: flex;
}

.flxt-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--flxt-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.flxt-toast b {
  font-size: 12px;
  color: #245c3d;
}

.flxt-toast p {
  font-size: 11px;
  color: #728078;
  line-height: 1.5;
  margin: 4px 0 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .flxt-layout {
    grid-template-columns: 1fr;
  }

  .flxt-preview {
    position: relative;
    top: auto;
  }

  .flxt-content {
    width: min(100% - 28px, 720px);
  }

  .flxt-topbar {
    padding: 0 16px;
  }
}

@media (max-width: 760px) {
  .flxt-location-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flxt-location-grid .flxt-field:last-child {
    margin-bottom: 13px;
  }
}

@media (max-width: 620px) {
  .flxt-step-names,
  .flxt-preview {
    display: none;
  }

  .flxt-progress {
    margin-bottom: 24px;
  }

  .flxt-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(
      to top,
      #fdfdfd 78%,
      rgba(253, 253, 253, 0.92),
      rgba(253, 253, 253, 0)
    );
    padding: 18px 0 4px;
    z-index: 15;
  }

  .flxt-phone-wrap {
    grid-template-columns: 105px 1fr;
  }

  .flxt-content {
    padding-top: 36px;
  }

  .flxt-hero h1 {
    font-size: 42px;
  }

  .flxt-grid2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flxt-grid2 > .flxt-field {
    margin-bottom: 13px;
  }

  .flxt-topbar {
    height: 62px;
  }

  .flxt-photo-row {
    align-items: flex-start;
  }
}
