/* ============================================================
   Time-Check - signup request wizard
   Desktop from design 1a (1440), mobile from 1b (390), breakpoint 768px.
   ============================================================ */

/* ---- Header ---- */
.signup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
}
.signup-header .brand { display: flex; align-items: center; gap: 12px; }
.brand-chevron { display: none; }
.signup-header .brand-logo { border-radius: 8px; display: block; }
.signup-header .brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.signup-header-actions { display: flex; align-items: center; gap: 14px; }

@media (max-width: 767px) {
  .signup-header { gap: 12px; padding: 14px 20px; }
  .signup-header .brand { gap: 9px; }
  .brand-chevron { display: block; }
  .signup-header .brand-logo { width: 28px; height: 28px; border-radius: 7px; }
  .signup-header .brand-name { font-size: 16px; }
  .back-btn { display: none; }
  .signup-header .lang-pill { font-size: 11.5px; padding: 4px 9px; }
}

/* ---- Page column ---- */
.signup-main {
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 12%);
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 60vh;
}
.signup-col { width: 760px; max-width: 100%; display: flex; flex-direction: column; }
#wizard { display: flex; flex-direction: column; gap: 26px; }
.signup-intro { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.signup-intro h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.signup-intro p { font-size: 15.5px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

@media (max-width: 767px) {
  .signup-main { background: var(--bg); padding: 28px 20px 40px; }
  #wizard { gap: 20px; }
  .signup-intro { gap: 8px; text-align: left; }
  .signup-intro h1 { font-size: 24px; }
  .signup-intro p { font-size: 14px; }
}

/* ---- Stepper (desktop: circles + labels + lines) ---- */
.stepper {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stepper-item { display: flex; align-items: center; gap: 9px; flex: none; }
.stepper-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--border-subtle);
  color: var(--muted);
  transition: background 160ms ease;
}
.stepper-check { display: none; }
.stepper-item.is-active .stepper-num { background: var(--blue); color: #FFFFFF; }
.stepper-item.is-done .stepper-num { background: var(--green); }
.stepper-item.is-done .stepper-digit { display: none; }
.stepper-item.is-done .stepper-check { display: block; }
.stepper-label { font-size: 13.5px; font-weight: 500; color: var(--secondary); }
.stepper-item.is-active .stepper-label { font-weight: 600; color: var(--ink); }
.stepper-line { flex: 1; height: 1px; background: var(--border); }

/* ---- Stepper (mobile: progress bars) ---- */
.stepper-bars { display: none; }

@media (max-width: 767px) {
  .stepper { display: none; }
  .stepper-bars { display: flex; flex-direction: column; gap: 8px; }
  .bars { display: flex; gap: 5px; }
  .bar { flex: 1; height: 4px; border-radius: 999px; background: var(--border); transition: background 160ms ease; }
  .bar.is-on { background: var(--blue); }
  .bars-counter { font-size: 12.5px; font-weight: 500; color: var(--secondary); }
}

/* ---- Card ---- */
.wizard-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 40px;
  box-shadow: var(--shadow-near);
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}
.step { border: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.step[hidden] { display: none; }
.step-head { display: flex; flex-direction: column; gap: 6px; padding: 0; }
.step-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.step-head p { font-size: 14px; line-height: 1.6; color: var(--secondary); text-wrap: pretty; }

@media (max-width: 767px) {
  .wizard-card { padding: 22px 20px; gap: 20px; }
  .step { gap: 20px; }
  .step-head { gap: 5px; }
  .step-head h2 { font-size: 17px; }
  .step-head p { font-size: 13px; line-height: 1.55; }
}

/* ---- Step 1: plan cards ---- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-opt {
  position: relative;
  display: grid;
  grid-template-areas:
    "name dot"
    "price price"
    "note note"
    "tag tag";
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-content: start;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.plan-opt:has(.plan-radio:checked) {
  background: #F5F8FE;
  border: 1.5px solid var(--blue);
  padding: 21.5px 19.5px;
}
.plan-opt:has(.plan-radio:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.plan-rec {
  position: absolute;
  top: -10px; left: 18px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--grad);
  border-radius: 999px;
  padding: 3px 10px;
}
.plan-opt-name { grid-area: name; font-size: 15px; font-weight: 700; color: var(--ink); align-self: center; }
.plan-dot {
  grid-area: dot;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  transition: background 140ms ease;
  align-self: center;
}
.plan-dot-inner { width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; display: none; }
.plan-opt:has(.plan-radio:checked) .plan-dot { border-color: var(--blue); background: var(--blue); }
.plan-opt:has(.plan-radio:checked) .plan-dot-inner { display: block; }
.plan-opt-price { grid-area: price; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.plan-opt-per { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--secondary); }
.plan-opt-note { grid-area: note; font-size: 12.5px; line-height: 1.5; color: var(--secondary); }
.plan-opt-tagline { grid-area: tag; font-size: 13px; line-height: 1.5; color: var(--body); text-wrap: pretty; }

@media (max-width: 767px) {
  .plan-grid { display: flex; flex-direction: column; gap: 12px; }
  .plan-opt {
    grid-template-areas:
      "dot name price"
      "dot note price";
    grid-template-columns: auto 1fr auto;
    gap: 2px 12px;
    align-items: center;
    padding: 16px;
  }
  .plan-opt:has(.plan-radio:checked) { padding: 15.5px; }
  .plan-dot { grid-area: dot; align-self: center; }
  .plan-opt-name { font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
  .plan-rec { position: static; font-size: 10px; letter-spacing: 0.05em; padding: 2px 8px; }
  .plan-opt-price { font-size: 19px; align-self: center; text-align: right; }
  .plan-opt-per { font-size: 11.5px; }
  .plan-opt-note { font-size: 12.5px; }
  .plan-opt-tagline { display: none; }
}

/* ---- Form fields ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.span2 { grid-column: span 2; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--ink);
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
}
.field input:focus, .field select:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field input::placeholder { color: var(--muted); }
.field .input-mono { font-variant-numeric: tabular-nums; }
.field select:invalid { color: var(--muted); }
.field select option { color: var(--ink); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--warn); }

@media (max-width: 767px) {
  .field input, .field select { padding: 11px 12px; }
  /* Company step: single column except postal (110px) + city on one row;
     prototype mobile order: name, vat, street, postal+city, sector, size. */
  .form-grid { grid-template-columns: 110px 1fr; gap: 16px 12px; }
  .field { grid-column: span 2; }
  .f-name { order: 1; }
  .f-vat { order: 2; }
  .f-street { order: 3; }
  .f-postal { order: 4; grid-column: span 1; }
  .f-city { order: 5; grid-column: span 1; }
  .f-sector { order: 6; }
  .f-size { order: 7; }
  /* Employer step: first/last side by side, rest full width. */
  .form-grid-employer { grid-template-columns: 1fr 1fr; }
  .form-grid-employer .f-first, .form-grid-employer .f-last { grid-column: span 1; order: initial; }
}

/* ---- Preferred language pills ---- */
.preflang { display: flex; gap: 8px; }
.preflang-pill { flex: none; }
.preflang-pill span {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: var(--body);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.preflang-pill:has(input:checked) span {
  border: 1.5px solid var(--blue);
  padding: 8.5px 17.5px;
  background: #F5F8FE;
  color: var(--blue);
}
.preflang-pill:has(input:focus-visible) span { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 767px) {
  .preflang-pill { flex: 1; }
  .preflang-pill span { display: block; text-align: center; font-size: 13px; padding: 10px 0; }
  .preflang-pill:has(input:checked) span { padding: 9.5px 0; }
}

/* ---- Info box ---- */
.info-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.info-box svg { flex: none; margin-top: 1px; }
.info-box span { font-size: 13px; line-height: 1.55; color: var(--body); text-wrap: pretty; }

@media (max-width: 767px) {
  .info-box { padding: 13px 14px; }
  .info-box span { font-size: 12.5px; }
}

/* ---- Step 4: summary + consent ---- */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.summary-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}
.summary-row { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.summary-row span { font-size: 13px; color: var(--secondary); flex: none; }
.summary-row strong { font-size: 13.5px; font-weight: 500; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.consent { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; flex: none; }
.consent span { font-size: 13.5px; line-height: 1.55; color: var(--body); }

@media (max-width: 767px) {
  .summary-grid { display: flex; flex-direction: column; gap: 12px; }
  .summary-card { padding: 15px 16px; gap: 10px; }
  .summary-title { font-size: 11px; }
  .summary-row span { font-size: 12.5px; }
  .summary-row strong { font-size: 13px; }
  .consent { gap: 10px; }
  .consent span { font-size: 13px; }
}

/* ---- Error + nav ---- */
.wizard-error { font-size: 13px; font-weight: 500; color: var(--warn); }
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 22px;
}
.btn-back {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 140ms ease;
}
.btn-back:hover { background: var(--bg); }
.btn-next, .btn-submit { padding: 11px 24px; border: none; cursor: pointer; }
.btn-submit[disabled] { opacity: 0.6; cursor: default; }

@media (max-width: 767px) {
  .wizard-error { font-size: 12.5px; }
  .wizard-nav { gap: 12px; padding-top: 18px; }
  .btn-back { padding: 11px 18px; }
  .btn-next, .btn-submit { padding: 12px 22px; }
}

/* ---- Success card ---- */
.success-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 56px 48px;
  box-shadow: var(--shadow-near);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-top: 20px;
}
.success-card[hidden] { display: none; }
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad);
}
.success-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.success-card p { font-size: 15px; line-height: 1.65; color: var(--body); max-width: 480px; text-wrap: pretty; }
.success-card p strong { color: var(--ink); }
.success-note { font-size: 13.5px; color: var(--secondary); }
.success-back { margin-top: 8px; padding: 10px 22px; }

@media (max-width: 767px) {
  .success-card { padding: 40px 24px; gap: 14px; margin-top: 24px; }
  .success-icon { width: 52px; height: 52px; }
  .success-card h2 { font-size: 21px; }
  .success-card p { font-size: 14px; }
  .success-note { font-size: 13px; }
  .success-back { margin-top: 6px; padding: 10px 20px; }
}
