:root {
  color-scheme: light;
  --primary: #093d89;
  --primary-dark: #062a5f;
  --accent: #f6ad1b;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #607086;
  --border: rgba(9, 61, 137, 0.14);
  --danger: #c62828;
  --ok: #1b7a3d;
  --radius: 18px;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 173, 27, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 90%, rgba(7, 89, 133, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
}

.page {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand img {
  border-radius: 10px;
}

.steps {
  display: flex;
  gap: 6px;
}

.steps span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(7, 89, 133, 0.2);
}

.steps span.active {
  width: 22px;
  background: var(--primary);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px 18px 24px;
  box-shadow: 0 18px 50px rgba(7, 46, 71, 0.1);
}

.page-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.page-logo img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(9, 61, 137, 0.12);
}

.city-field {
  position: relative;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
}

.sub {
  margin: 0 0 22px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.98rem;
}

.hint {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

.type-grid {
  display: grid;
  gap: 14px;
}

.type-card {
  appearance: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  padding: 20px 18px;
  text-align: start;
  cursor: pointer;
  color: #fff;
  transition:
    opacity 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 180ms ease;
}

.type-card.type-individual {
  background: linear-gradient(135deg, #f5a623, #e8890c);
  box-shadow: 0 10px 24px rgba(232, 137, 12, 0.28);
}

.type-card.type-company {
  background: linear-gradient(135deg, #7c5cfc, #5b3fd4);
  box-shadow: 0 10px 24px rgba(91, 63, 212, 0.28);
}

.type-card.selected {
  background: linear-gradient(135deg, #093d89, #0b4fa8);
  border-color: #093d89;
  border-width: 3px;
  box-shadow: 0 12px 28px rgba(9, 61, 137, 0.35);
}

.type-card.dimmed {
  opacity: 0.55;
}

.type-card:hover:not(.dimmed) {
  transform: translateY(-1px);
}

.type-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.type-card strong {
  display: block;
  flex: 1;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.type-desc {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.55;
}

.type-bullets {
  margin: 0;
  padding: 0 1.1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
}

.type-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  flex-shrink: 0;
}

.type-card.selected .type-icon {
  background: rgba(255, 255, 255, 0.2);
}

.type-icon .material-symbols-outlined {
  font-size: 30px;
}

.type-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.type-card.selected .type-check {
  background: #fff;
  border-color: #fff;
  color: #093d89;
}

.type-check .material-symbols-outlined {
  font-size: 18px;
  font-weight: 700;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #31415c;
  letter-spacing: 0.01em;
}

.field input,
.field select,
.custom-entry input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid rgba(9, 61, 137, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(9, 61, 137, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field input::placeholder,
.custom-entry input::placeholder {
  color: #8a97ab;
  font-weight: 500;
}

.field input:hover,
.field select:hover,
.custom-entry input:hover {
  border-color: rgba(9, 61, 137, 0.22);
  background: #fff;
}

.field input:focus,
.field select:focus,
.custom-entry input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(9, 61, 137, 0.12),
    0 8px 20px rgba(9, 61, 137, 0.08);
}

.phone-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  direction: ltr;
  unicode-bidi: isolate;
}

.phone-row select,
.phone-row input {
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid rgba(9, 61, 137, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(9, 61, 137, 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.phone-row input {
  letter-spacing: 0.04em;
}

.phone-row select:hover,
.phone-row input:hover {
  border-color: rgba(9, 61, 137, 0.22);
  background: #fff;
}

.phone-row select:focus,
.phone-row input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(9, 61, 137, 0.12),
    0 8px 20px rgba(9, 61, 137, 0.08);
}

.gender-row {
  display: flex;
  gap: 10px;
}

.gender-row button {
  flex: 1;
  min-height: 52px;
  border-radius: 16px;
  border: 1.5px solid rgba(9, 61, 137, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  font: inherit;
  font-weight: 700;
  color: #31415c;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(9, 61, 137, 0.04);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.gender-row button:hover {
  border-color: rgba(9, 61, 137, 0.22);
  background: #fff;
}

.gender-row button.selected {
  background: linear-gradient(135deg, rgba(9, 61, 137, 0.12), rgba(11, 79, 168, 0.08));
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(9, 61, 137, 0.1);
}

.city-list {
  max-height: 200px;
  overflow: auto;
  border: 1.5px solid rgba(9, 61, 137, 0.12);
  border-radius: 16px;
  margin-top: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(9, 61, 137, 0.1);
}

.city-list button {
  display: block;
  width: 100%;
  text-align: start;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(7, 89, 133, 0.06);
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.city-list button:hover {
  background: rgba(9, 61, 137, 0.06);
  color: var(--primary);
}

.city-list button:last-child {
  border-bottom: 0;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.checkbox input {
  margin-top: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cat {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 14px 12px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 132px;
  box-shadow: 0 6px 18px rgba(9, 61, 137, 0.06);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.cat:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(9, 61, 137, 0.1);
}

.cat-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cat-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-logo .material-symbols-outlined {
  font-size: 28px;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.cat-label {
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
}

.cat.selected {
  border-color: var(--cat-accent, var(--primary));
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--cat-accent, var(--primary)) 28%, transparent),
    0 10px 24px rgba(9, 61, 137, 0.12);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--cat-accent, var(--primary)) 10%, #fff),
    #fff 55%
  );
  color: var(--cat-accent, var(--primary));
}

.chip.selected {
  background: rgba(9, 61, 137, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

.chip-group {
  margin-bottom: 16px;
}

.chip-group h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip-group-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

.chip-group-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-entry {
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(9, 61, 137, 0.04), rgba(9, 61, 137, 0.02));
  border: 1.5px dashed rgba(9, 61, 137, 0.24);
}

.custom-entry label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #31415c;
}

.custom-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.ghost {
  background: rgba(7, 89, 133, 0.08);
  color: var(--primary);
}

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

.error {
  margin-top: 10px;
  color: var(--danger);
  font-weight: 600;
  font-size: 0.9rem;
}

.loading {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* App-like profile card preview */
.app-card {
  position: relative;
  overflow: hidden;
  width: min(100%, 400px);
  margin: 0 auto 20px;
  border-radius: 20px;
  color: #fff;
  padding: 16px 16px 14px;
  box-shadow: 0 16px 36px rgba(0, 22, 69, 0.35);
}

.app-card-worker {
  min-height: 230px;
  background: linear-gradient(160deg, #0172b2 0%, #001645 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-card-company {
  min-height: 248px;
  background: linear-gradient(145deg, #7b5fd4 0%, #4e358f 55%, #261a52 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-card-shine {
  pointer-events: none;
  position: absolute;
  inset: -20% auto auto -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
}

.app-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
}

.app-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3.5px solid #22c55e;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.app-card-avatar-img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.app-card-avatar-fallback {
  color: #607086;
  font-size: 34px;
}

.app-card-company-logo {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  padding: 8px;
}

.app-card-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-card-company-logo .material-symbols-outlined {
  color: rgba(9, 61, 137, 0.35);
  font-size: 34px;
}

.app-card-info,
.app-card-company-text {
  min-width: 0;
  flex: 1;
}

.app-card-company-text {
  text-align: center;
  padding-top: 2px;
}

.app-card h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.app-card-company-text h2 {
  font-size: 1.1rem;
}

.app-card-sub {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.app-card-category {
  margin: 0 0 4px;
  color: #f5a623;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-card-category .material-symbols-outlined {
  font-size: 16px;
}

.app-card-meta {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
}

.app-card-company-text .app-card-meta {
  justify-content: center;
}

.app-card-meta .material-symbols-outlined {
  font-size: 15px;
  opacity: 0.9;
}

.app-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.app-card-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-card-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

.app-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.app-card-brand {
  height: 28px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
}

.app-card-rating {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.82rem;
}

.app-card-rating .material-symbols-outlined {
  font-size: 14px;
  color: #f5a623;
}

.app-card-rating .material-symbols-outlined.filled {
  font-variation-settings: "FILL" 1;
}

.app-card-rating strong {
  font-weight: 700;
  line-height: 1;
}

.app-card-actions {
  display: flex;
  gap: 6px;
}

.app-card-round-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
}

.app-card-round-btn img {
  width: 14px;
  height: 14px;
}

.app-card-footer-company .app-card-rating {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

.app-card-company-actions {
  display: flex;
  gap: 6px;
}

.app-card-glass-btn {
  width: 44px;
  padding: 6px 3px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff;
}

.app-card-glass-btn img {
  width: 14px;
  height: 14px;
}

.app-card-glass-btn .invert-icon {
  filter: brightness(0) invert(1);
}

.app-card-glass-btn small {
  font-size: 8.5px;
  font-weight: 500;
  line-height: 1.1;
}

.success-title {
  color: var(--ok);
  text-align: center;
}

.pricing-note {
  margin: 14px 0 8px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  line-height: 1.65;
  font-size: 0.92rem;
}

.pricing-note strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.pricing-note p {
  margin: 0 0 8px;
}

.pricing-note p:last-child {
  margin-bottom: 0;
}

.pricing-note-company {
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(91, 63, 212, 0.28);
  color: #3b2a7a;
}

.pricing-note-company .pricing-contrast {
  color: #1b7a3d;
  font-weight: 700;
}

.pricing-note-free {
  background: rgba(27, 122, 61, 0.08);
  border: 1px solid rgba(27, 122, 61, 0.22);
  color: #14532d;
}

.whatsapp-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: #0b5c2c;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.28);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.whatsapp-help:hover {
  background: rgba(37, 211, 102, 0.18);
  transform: translateY(-1px);
}

.whatsapp-help svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: #25d366;
}

@media (max-width: 560px) {
  .actions {
    flex-direction: column-reverse;
  }
}
