/* =====================================================================
   LOCALBUDDY — PROVIDER SIGN UP (sign-upProvider.php)
   Loads AFTER signup.css (shared sign-up look: banner, mascot, card,
   fields, buttons, OTP + avatar modals). This file only adds the
   provider-only parts. Sizes = design px × --u (set in signup.css).
   ===================================================================== */

/* Mascot bubble text for providers */
.lb-signup-provider .lbs-stage::before { content: "Let's grow! \1F680"; }

/* Inline photo preview from the JS gets a 12px radius — keep it round */
.lb-signup-provider .lbs-photo-preview img { border-radius: 50% !important; }
.lb-signup-provider .lbs-photo-preview .photo-placeholder { font-size: inherit; }

/* Generic blocks ------------------------------------------------------ */
.lbp-full { width: 100%; }
.lbp-block { margin-top: calc(14 * var(--u)); }
.lbp-full + .lbp-block { margin-top: calc(14 * var(--u)); }

.lbp-label {
  display: block;
  margin: 0 0 calc(7 * var(--u));
  font-size: calc(16 * var(--u));
  font-weight: 700;
  color: var(--lb-ink);
}
.lbp-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: calc(6 * var(--u));
  font-size: calc(13.5 * var(--u));
  line-height: 1.45;
  color: var(--lb-muted);
}
.lbp-hint-top { display: block; margin: calc(-2 * var(--u)) 0 calc(8 * var(--u)); }
#addressHelp { display: block; }

.lbp-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: calc(12 * var(--u)) 0 0;
  padding: calc(10 * var(--u)) calc(14 * var(--u));
  border-radius: calc(12 * var(--u));
  background: var(--lb-green-mint);
  font-size: calc(14 * var(--u));
  font-weight: 600;
  color: var(--lb-green-dark);
}
.lbp-note i { color: var(--lb-green); }

/* ---------------------------------------------------------------------
   ACCOUNT TYPE CARDS (drive the hidden #userType select)
   --------------------------------------------------------------------- */
.lbp-types { position: relative; }
.lbp-type-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(14 * var(--u));
}
.lbp-type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(4 * var(--u));
  min-width: 0;
  padding: calc(16 * var(--u)) calc(18 * var(--u));
  border: 1.5px solid #d6dde6;
  border-radius: calc(16 * var(--u));
  background: #ffffff;
  font-family: var(--lb-font);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.lbp-type:hover { border-color: var(--lb-green); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(16, 24, 40, .08); }
.lbp-type:focus-visible { outline: 3px solid rgba(11, 107, 52, .35); outline-offset: 2px; }
.lbp-type-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  margin-bottom: calc(6 * var(--u));
  border-radius: calc(12 * var(--u));
  background: var(--lb-green-soft);
  color: var(--lb-green);
  font-size: calc(18 * var(--u));
  transition: background .2s ease, color .2s ease;
}
.lbp-type strong { font-size: calc(17 * var(--u)); font-weight: 800; color: var(--lb-ink); }
.lbp-type small { font-size: calc(13 * var(--u)); line-height: 1.35; color: var(--lb-muted); }

.lbp-type.is-active {
  border-color: var(--lb-green);
  background: var(--lb-green-mint);
  box-shadow: 0 0 0 4px rgba(11, 107, 52, .12);
}
.lbp-type.is-active .lbp-type-ico { background: var(--lb-green); color: #ffffff; }
.lbp-type.is-active::after {
  content: "\f00c";
  position: absolute;
  top: calc(12 * var(--u));
  right: calc(12 * var(--u));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  border-radius: 50%;
  background: var(--lb-green);
  color: #ffffff;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: calc(11 * var(--u));
}

/* Real select stays in the form (for validation) but is invisible */
.lbp-type-select {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lb-signup-provider .lbs-photo { margin-top: calc(18 * var(--u)); }

/* ---------------------------------------------------------------------
   TEXTAREA
   --------------------------------------------------------------------- */
.lbp-textarea {
  border: 1.5px solid #cfd8e3;
  border-radius: calc(12 * var(--u));
  background: #ffffff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lbp-textarea:focus-within { border-color: var(--lb-green); box-shadow: 0 0 0 4px rgba(11, 107, 52, .12); }
.lbp-textarea textarea {
  display: block;
  width: 100%;
  min-height: calc(96 * var(--u));
  padding: calc(14 * var(--u)) calc(18 * var(--u));
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  font-family: var(--lb-font);
  font-size: max(16px, calc(17 * var(--u)));
  font-weight: 500;
  line-height: 1.5;
  color: var(--lb-ink);
}
.lbp-textarea textarea::placeholder { color: #98a2b3; }

/* ---------------------------------------------------------------------
   TAG INPUT + CHIPS
   --------------------------------------------------------------------- */
.lbp-tag-row { display: flex; gap: calc(12 * var(--u)); }
.lbp-tag-row .lbs-field { flex: 1; }
.lbp-add-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: calc(54 * var(--u));
  padding: 0 calc(22 * var(--u));
  border: 0;
  border-radius: calc(12 * var(--u));
  background: var(--lb-green);
  color: #ffffff;
  font-family: var(--lb-font);
  font-size: calc(16 * var(--u));
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lbp-add-btn:hover { background: var(--lb-green-dark); transform: translateY(-1px); }

.lbp-chips { display: flex; flex-wrap: wrap; gap: calc(8 * var(--u)); }
.lbp-chips:not(:empty) { margin-top: calc(10 * var(--u)); }

.lb-profile-tag,
.lb-specific-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: calc(6 * var(--u)) calc(6 * var(--u)) calc(6 * var(--u)) calc(13 * var(--u));
  border: 1px solid #cfe9d7;
  border-radius: 999px;
  background: var(--lb-green-mint);
  font-size: calc(14 * var(--u));
  font-weight: 700;
  color: var(--lb-green-dark);
}
.lb-profile-tag > span,
.lb-specific-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-profile-tag-remove,
.lb-specific-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: var(--lb-green);
  font-size: 11px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lb-profile-tag-remove:hover,
.lb-specific-chip-remove:hover { background: var(--lb-green); color: #ffffff; }

.lbp-count {
  margin-top: calc(8 * var(--u));
  font-size: calc(13 * var(--u));
  font-weight: 700;
  color: var(--lb-muted);
}

/* ---------------------------------------------------------------------
   SEARCH FIELDS (address, service areas, specific services)
   --------------------------------------------------------------------- */
.lb-address-autocomplete { position: relative; }

.lb-address-input,
.lb-specific-search,
.lbp-select select {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 calc(16 * var(--u));
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--lb-font);
  font-size: max(16px, calc(18.5 * var(--u)));
  font-weight: 500;
  color: var(--lb-ink);
}
.lb-address-input::placeholder,
.lb-specific-search::placeholder { color: #98a2b3; }
.lb-specific-search:disabled { cursor: not-allowed; }
.lbs-field:has(.lb-specific-search:disabled) { background: #f9fafb; cursor: not-allowed; }

/* Dropdown results */
.lb-address-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--lb-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .14);
}
.lb-address-results.show { display: block; }

.lb-address-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-family: var(--lb-font);
  text-align: left;
  cursor: pointer;
}
.lb-address-result:hover,
.lb-address-result.active { background: var(--lb-green-mint); }
.lb-address-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lb-green-soft);
  color: var(--lb-green);
  font-size: 14px;
}
.lb-address-result-text { display: flex; flex-direction: column; min-width: 0; }
.lb-address-result-main { font-size: 15px; font-weight: 700; color: var(--lb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-address-result-secondary { font-size: 13px; color: var(--lb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-address-loading,
.lb-address-empty { padding: 12px; font-size: 14px; color: var(--lb-muted); }
.lb-address-google { padding: 6px 10px 2px; font-size: 11px; font-weight: 600; text-align: right; color: #98a2b3; }

/* Category select */
.lbp-select { padding-right: calc(16 * var(--u)); }
.lbp-select select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: calc(28 * var(--u));
  cursor: pointer;
}
.lbp-select-chev {
  position: absolute;
  right: calc(18 * var(--u));
  font-size: calc(14 * var(--u));
  color: var(--lb-muted);
  pointer-events: none;
}

/* Specific services selector */
.lb-specific-selector { position: relative; }
.lb-specific-search-wrap { cursor: pointer; }
.lb-specific-chevron {
  margin: 0 calc(8 * var(--u));
  font-size: calc(14 * var(--u));
  color: var(--lb-muted);
  transition: transform .2s ease;
}
.lb-specific-selector.open .lb-specific-chevron { transform: rotate(180deg); }

.lb-specific-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -1.5px;
  right: -1.5px;
  z-index: 50;
  display: none;
  padding: 8px;
  border: 1px solid var(--lb-line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .14);
  cursor: default;
}
.lb-specific-selector.open .lb-specific-dropdown { display: block; }
.lb-specific-dropdown-title {
  padding: 4px 8px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--lb-muted);
}
.lb-specific-list { max-height: 280px; overflow-y: auto; }
.lb-specific-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
}
.lb-specific-item:hover { background: #f6faf7; }
.lb-specific-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--lb-green-soft);
  color: var(--lb-green);
  font-size: 13px;
}
.lb-specific-item-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--lb-ink); }
.lb-specific-add {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border: 1.5px solid var(--lb-green);
  border-radius: 9px;
  background: #ffffff;
  color: var(--lb-green);
  font-family: var(--lb-font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lb-specific-add:hover { background: var(--lb-green); color: #ffffff; }
.lb-specific-add.selected,
.lb-specific-add:disabled { border-color: transparent; background: var(--lb-green-soft); color: var(--lb-green-dark); cursor: default; }
.lb-specific-empty { padding: 12px; font-size: 14px; color: var(--lb-muted); }

/* Bootstrap helper classes used by the JS-built markup */
.lb-signup-provider .me-1 { margin-right: .25rem; }

/* ---------------------------------------------------------------------
   MOBILE (app-style)
   --------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .lb-signup-provider .lbs-stage::before { content: "Let's grow! \1F680"; right: 66px; }

  .lbp-type-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lbp-type { align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 14px; text-align: center; }
  .lbp-type:hover { transform: none; }
  .lbp-type-ico { width: 38px; height: 38px; margin-bottom: 4px; border-radius: 11px; font-size: 16px; }
  .lbp-type strong { font-size: 13px; }
  .lbp-type small { display: none; }
  .lbp-type.is-active::after { top: 6px; right: 6px; width: 18px; height: 18px; font-size: 9px; }

  .lb-signup-provider .lbs-photo { margin-top: 14px; }

  .lbp-block { margin-top: 12px; }
  .lbp-label { font-size: 14px; margin-bottom: 6px; }
  .lbp-hint { font-size: 12.5px; }
  .lbp-note { font-size: 13px; padding: 10px 12px; border-radius: 12px; align-items: flex-start; }
  .lbp-note i { margin-top: 2px; }

  .lbp-textarea { border-radius: 14px; }
  .lbp-textarea textarea { min-height: 96px; padding: 12px 14px; }

  .lbp-tag-row { gap: 8px; }
  .lbp-add-btn { height: 52px; padding: 0 14px; border-radius: 14px; font-size: 14px; }

  .lb-address-input,
  .lb-specific-search,
  .lbp-select select { padding-left: 12px; }
  .lbp-select-chev { right: 14px; font-size: 13px; }
  .lb-specific-chevron { font-size: 13px; }

  .lbp-chips { gap: 6px; }
  .lb-profile-tag,
  .lb-specific-chip { font-size: 13px; padding: 5px 5px 5px 11px; }
  .lbp-count { font-size: 12px; }

  .lb-address-results { max-height: 260px; }
  .lb-specific-list { max-height: 240px; }
  .lb-specific-item-name { font-size: 14px; }
}