/* ===============================
   Elite5Pro – Listing Form Styles
   =============================== */

:root {
  --accent: #0f172a;
  --accent-soft: rgba(77, 107, 255, 0.12);
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border-soft: #e6e9ee;
  --bg-soft: #fbfcfe;
  --card-bg: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --container-side: 18px;
  --maxW: 1200px;
  --font-main: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

/* ---------- page wrapper ---------- */

.list-your-business-wrap {
  max-width: var(--maxW);
  margin: 32px auto;
  padding: 0 var(--container-side);
}

/* ---------- form card ---------- */

#listingForm {
  background: var(--card-bg);
  border: 2px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px 24px 30px;
  font-family: var(--font-main);
}

/* ---------- labels ---------- */

#listingForm label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 16px;
  margin-top: 15px;
}

/* ---------- inputs ---------- */

#listingForm input,
#listingForm textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-soft);
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--text-main);
}

#listingForm textarea {
  resize: vertical;
  min-height: 80px;
}

/* focus */
#listingForm input:focus,
#listingForm textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* disabled city input */
#listingForm input[disabled] {
  background: #f3f4f6;
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ---------- file input ---------- */

#listingForm input[type="file"] {
  padding: 8px;
  font-size: 13px;
}

/* ---------- autosuggest ---------- */

.autosuggest {
  position: absolute;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  padding-left: 0px;
}

.autosuggest li {
  list-style: none;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-main);
}
.listCategorySuggest {
  padding-left: 0px;
}
.autosuggest li:hover,
.autosuggest li[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- form button ---------- */

#listingForm button {
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, #415be0, #00b3b5) !important;
  color: #fff;
  box-shadow: 0 8px 18px rgba(77, 107, 255, 0.28);
}

#listingForm button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(77, 107, 255, 0.34);
}

/* ---------- spacing tweaks ---------- */

#listingForm label:last-of-type {
  margin-bottom: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  #listingForm {
    padding: 20px 16px 24px;
  }
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-input .country-code {
  background: #f1f5f9;
  border: 1px solid #ccc;
  border-radius: 6px;
  /*padding: 8px 10px;*/
  padding: 11px 12px;
  font-size: 14px;
  color: #333;
  min-width: 48px;
  text-align: center;
  margin-top: 6px;
}

/* ===============================
   Tablet adjustments
   =============================== */
@media (max-width: 1024px) {
  .list-your-business-wrap {
    padding: 0 14px;
  }

  #listingForm {
    padding: 22px 20px 26px;
  }

  #listingForm label {
    font-size: 13.5px;
    margin-bottom: 14px;
  }

  #listingForm input,
  #listingForm textarea {
    font-size: 14px;
    padding: 10px 11px;
  }
}

/* ===============================
   Mobile adjustments
   =============================== */
@media (max-width: 720px) {
  .list-your-business-wrap {
    margin: 20px auto;
    padding: 0 12px;
  }

  #listingForm {
    padding: 18px 14px 22px;
    border-radius: 10px;
  }

  #listingForm label {
    font-size: 13px;
    margin-bottom: 12px;
  }

  #listingForm input,
  #listingForm textarea {
    font-size: 14px;
    padding: 10px;
  }

  /* Phone input stacks better on mobile */
  .phone-input {
    gap: 4px;
  }

  .phone-input .country-code {
    padding: 10px;
    min-width: 44px;
    font-size: 13px;
  }

  /* Autosuggest full-width */
  .autosuggest {
    max-height: 180px;
    font-size: 14px;
  }

  /* Button full width on mobile */
  #listingForm button {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
  }
}

.breadcrumb-small .crumb-home {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;

  /* matches Elite5Pro gradient buttons */
  background: linear-gradient(90deg, #4d6bff, #00c6c7) !important;
  color: #fff;
  font-weight: 600;
  transition: 0.22s ease;
  box-shadow: 0 4px 14px rgba(65, 91, 224, 0.15);
}

/* Hover effect */
.breadcrumb-small .crumb-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(65, 91, 224, 0.22);
}

/* Slash separator */
.breadcrumb-small .crumb-sep {
  color: var(--muted, #6b7280);
  opacity: 0.65;
}

/* Current category */
.breadcrumb-small .crumb-cat {
  color: #081426;
  font-weight: 600;
}

#formMsg {
  margin-top: 12px;
  font-weight: 600;
}
.form-field {
  position: relative;
}
.autosuggest-wrap {
  position: relative;
}
.autosuggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  z-index: 99999;
}

.autosuggest[hidden] {
  display: none;
}

.autosuggest:not([hidden]) {
  display: block;
}

/* --- Acknowledgement Popup --- */
.ack-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 13000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}
.ack-modal[aria-hidden="false"] {
  display: flex;
}
.ack-panel {
  background: #fff;
  padding: 20px;
  max-width: 420px;
  width: 88%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  text-align: center;
}
.ack-panel h3 {
  margin: 0 0 8px;
  color: #1a73e8;
}
.ack-panel p {
  margin: 0 0 16px;
  color: #234;
}
.ack-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.ack-actions .btn-primary {
  background: linear-gradient(90deg, #4d6bff 0%, #aec7ff 100%);
  color: #fff;
  font-weight: 400;
  box-shadow: 0 4px 14px rgba(65, 91, 224, 0.15);
  border-radius: 8px;
}
/* ===== Modal Primary Button ===== */
.modal-btn-primary {
  min-width: 140px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: #4d6bff; /* Elite5Pro primary */
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modal-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(77, 107, 255, 0.35);
}

.modal-btn-primary:active {
  transform: translateY(0);
}

/* ===== Submit Loader Overlay ===== */
.submit-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.submit-loader[aria-hidden="true"] {
  display: none;
}

.loader-box {
  text-align: center;
  font-weight: 600;
  color: #0f172a;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e7eb;
  border-top-color: #4d6bff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* freeze page scrolling */
body.submitting {
  overflow: hidden;
}

/* ===== Logo Preview ===== */
.logo-preview-wrap {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-preview-wrap img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border: 2px solid var(--border-soft);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}
/* Listing selection note below breadcrumb */
.listing-process-note {
  margin: 24px 0;            /* equal space top & bottom */
  font-size: 14px;
  color: #444;
}

/* Blue hyperlink */
.listing-process-note .seo-link {
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
}

.listing-process-note .seo-link:hover {
  text-decoration: underline;
}
/* ===============================
   FIX LABEL + INPUT ALIGNMENT
   =============================== */

/* Normalize label spacing */
#listingForm label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px; /* tighter, consistent */
  line-height: 1.4;
}

/* Remove extra spacing when label wraps input */
#listingForm label > input,
#listingForm label > textarea {
  margin-top: 6px;
}

/* Standalone inputs (autosuggest, phone, etc.) */
#listingForm > input,
#listingForm > textarea,
#listingForm .autosuggest-wrap,
#listingForm .phone-input {
  margin-bottom: 14px;
}

/* Autosuggest input alignment */
.autosuggest-wrap input {
  margin-top: 0;
}

/* Phone input aligns with others */
.phone-input {
  margin-top: 6px;
}

/* Country code box aligns vertically */
.phone-input .country-code {
  margin-top: 0;
}

/* Textareas match input spacing */
#listingForm textarea {
  margin-top: 6px;
}

/* First field should not push down */
#listingForm label:first-of-type {
  margin-top: 0;
}
/* ===== Mobile Hero Fix ===== */
@media (max-width: 768px) {
  .page-hero {
    padding: 16px 14px;        /* reduce vertical space */
    margin-bottom: 12px;
  }

  .page-hero-left h1 {
    font-size: 1.35rem;        /* smaller but still strong */
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .page-hero-left .lead {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
  }
}





