/* ═══════════════════════════════════════════
   GP Telecom Store Locator - style.css
═══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --blue:     #1A4F7A;
  --blue-lt:  #E8F2FA;
  --blue-dk:  #163e60;
  --teal:     #1A7A6E;
  --amber:    #7A5C1A;
  --text:     #1C1C1E;
  --muted:    #6E7B8B;
  --border:   #DDE4EC;
  --bg:       #F7F9FB;
  --white:    #FFFFFF;
  --green-lt: #E9F8EF;
  --green:    #1A7A4A;
  --red-lt:   #fef2f2;
  --red:      #b91c1c;
  --r:        10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}


/* STORE INTRO REGISTRATION */
body.offer-locked {
  min-height: 100vh;
  overflow: auto;
  background: var(--bg);
}
body.offer-locked .banner,
body.offer-locked .about,
body.offer-locked .search-wrap,
body.offer-locked .stores-wrap,
body.offer-locked footer {
  display: none;
}
.offer-gate {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 430px);
  grid-template-areas: "copy form";
  align-items: center;
  align-content: center;
  justify-content: center;
  gap: 44px;
  padding: 32px 24px;
  color: var(--text);
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(232,242,250,0.92), rgba(255,255,255,0.96) 42%, #f7f9fb 100%);
}
.offer-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26,79,122,0.08), transparent 34%),
    repeating-linear-gradient(90deg, rgba(26,79,122,0.035) 0 1px, transparent 1px 42px);
  pointer-events: none;
}
.offer-copy,
.offer-card {
  position: relative;
  z-index: 1;
}
.offer-copy {
  grid-area: copy;
  max-width: 620px;
}
.offer-kicker {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.offer-copy h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.45rem, 4.2vw, 3.85rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text);
  max-width: 620px;
}
.offer-copy > p:not(.offer-kicker) {
  max-width: 520px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.offer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.offer-badges span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(26,79,122,0.06);
}
.offer-card {
  grid-area: form;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(26,79,122,0.14);
  padding: 30px;
}
.offer-card-title {
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 20px;
}
.offer-card label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.offer-name-input {
  width: 100%;
  min-height: 54px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  outline: none;
  box-sizing: border-box;
}
.offer-name-input::placeholder { color: #AAB5C0; }
.offer-name-input:focus { border-color: var(--blue); background: var(--white); }
.offer-name-input.is-error { border-color: var(--red); }
.offer-card .field-error.name-err { margin-left: 0; }
.offer-card label.label-gap { margin-top: 14px; }
.offer-phone-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
}
.offer-phone-row span,
.offer-phone-row input {
  min-height: 54px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}
.offer-phone-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--blue);
}
.offer-phone-row input {
  width: 100%;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  outline: none;
}
.offer-phone-row input::placeholder {
  color: #AAB5C0;
}
.offer-phone-row input:focus {
  border-color: var(--blue);
  background: var(--white);
}
.offer-phone-row input.is-error {
  border-color: var(--red);
}
.offer-card .field-error {
  color: var(--red);
  margin: 8px 0 0 92px;
}
.offer-card .form-msg.error {
  margin-top: 14px;
}
.offer-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(26,79,122,0.18);
}
.offer-submit:hover:not(:disabled) {
  background: var(--blue-dk);
}
.offer-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}
.offer-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
@media (max-width: 920px) {
  .offer-gate {
    grid-template-columns: minmax(0, 560px);
    grid-template-areas:
      "copy"
      "form";
    gap: 22px;
    padding: 24px 20px;
  }
  .offer-copy,
  .offer-card {
    width: 100%;
  }
  .offer-copy > p:not(.offer-kicker) {
    margin-left: auto;
    margin-right: auto;
  }
  .offer-badges {
    justify-content: flex-start;
  }
  .offer-copy h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .offer-copy > p:not(.offer-kicker) {
    font-size: 0.96rem;
    margin-top: 14px;
  }
  .offer-card {
    padding: 24px;
  }
}
@media (max-width: 520px) {
  .offer-gate {
    min-height: auto;
    display: block;
    padding: 22px 16px 28px;
  }
  .offer-copy {
    max-width: none;
  }
  .offer-kicker {
    font-size: 0.68rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .offer-copy h1 {
    font-size: 1.95rem;
    line-height: 1.14;
  }
  .offer-copy > p:not(.offer-kicker) {
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 14px 0 0;
  }
  .offer-badges {
    gap: 8px;
    margin-top: 18px;
  }
  .offer-badges span {
    font-size: 0.74rem;
    padding: 6px 10px;
  }
  .offer-card {
    width: 100%;
    margin-top: 22px;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(26,79,122,0.1);
  }
  .offer-card-title {
    font-size: 0.95rem;
  }
  .offer-phone-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
  }
  .offer-phone-row span,
  .offer-phone-row input {
    min-height: 50px;
  }
  .offer-phone-row input {
    padding: 0 12px;
    font-size: 0.9rem;
  }
  .offer-submit {
    min-height: 50px;
    margin-top: 18px;
  }
  .offer-note {
    font-size: 0.76rem;
  }
  .offer-card .field-error {
    margin-left: 0;
  }
}
/* ════════════════════════════════════════════
   BANNER
════════════════════════════════════════════ */
.banner img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit:contain;
      padding-top: 20px;
      background: #fff;
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
.about {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
}
.about h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  text-align: center;
}
.about p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ════════════════════════════════════════════
   SEARCH + FILTER
════════════════════════════════════════════ */
.search-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 10px 36px 10px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.search-box input::placeholder { color: #AAB5C0; }
.search-box input:focus { border-color: var(--blue); background: var(--white); }
.search-clear {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  display: none;
  padding: 2px;
  line-height: 1;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  user-select: none;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ════════════════════════════════════════════
   STORE LIST
════════════════════════════════════════════ */
.stores-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}
.result-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.result-meta strong { color: var(--text); font-weight: 600; }

/* ── Card ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow-x: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(26,79,122,0.09);
  transform: translateY(-1px);
}
.card-top {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.type-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.tag-exp  { color: var(--blue); }
.tag-svc  { color: var(--teal); }
.tag-mbo  { color: var(--amber); }

.card-location {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.card-body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.address {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}
.contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text);
}
.contact-row svg { flex-shrink: 0; color: var(--muted); }

.actions {
  display: flex;
  gap: 8px;
  padding-top: 2px;
}
.btn-wa,
.btn-map {
  flex: 1;
  padding: 9px 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.btn-wa           { background: var(--green-lt); color: var(--green); }
.btn-wa:hover     { background: #d4f0e1; }
.btn-map          { background: var(--blue-lt);  color: var(--blue); }
.btn-map:hover    { background: #d4e8f5; }
.btn-map.disabled { opacity: 0.45; cursor: default; pointer-events: none; }

/* ── No results ── */
.no-results {
  display: none;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ════════════════════════════════════════════
   SIGN UP FORM
════════════════════════════════════════════ */
.signup-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 44px 24px 48px;
}
.signup-inner {
  max-width: 480px;
  margin: 0 auto;
}
.signup-inner h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.signup-inner > p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.field-wrap { position: relative; }
.field-wrap input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.field-wrap input:focus   { border-color: var(--blue); background: var(--white); }
.field-wrap input::placeholder { color: #AAB5C0; }
.field-wrap input.is-error { border-color: var(--red); }

.field-error {
  font-size: 0.76rem;
  color: var(--red);
  margin-top: 3px;
  display: none;
  padding-left: 2px;
}
.field-error.show { display: block; }

/* T&C row */
.tc-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.tc-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--blue);
  flex-shrink: 0;
  cursor: pointer;
}
.tc-link {
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}

/* Submit button */
.btn-submit {
  background: var(--blue);
  color: var(--white);
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.btn-submit:hover:not(:disabled) { background: var(--blue-dk); }
.btn-submit:disabled { background: #a0b4c8; cursor: not-allowed; }

/* Feedback messages */
.form-msg {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
  line-height: 1.5;
}
.form-msg.success { background: var(--green-lt); color: var(--green); border: 1px solid #b6e8cc; }
.form-msg.error   { background: var(--red-lt);   color: var(--red);   border: 1px solid #fecaca; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 20px 24px;
}
footer p { font-size: 0.78rem; color: var(--muted); }
footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════
   T&C MODAL
════════════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  animation: modalIn 0.2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.modal-head h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 2px 5px;
  border-radius: 4px;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--muted);
}
.modal-body h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  margin: 18px 0 6px;
}
.modal-body h4:first-child { margin-top: 0; }
.modal-body p  { margin-bottom: 10px; }
.modal-body strong { color: var(--text); font-weight: 600; }

.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
.btn-agree {
  background: var(--blue);
  color: var(--white);
  padding: 9px 24px;
  border-radius: 8px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-agree:hover { background: var(--blue-dk); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 520px) {
  .stores-wrap  { padding: 16px 12px 48px; }
  .card-top, .card-body { padding-left: 14px; padding-right: 14px; }
  .about, .signup-section { padding: 28px 16px 32px; }
  .search-wrap { padding: 14px 16px; }
  .modal-box { max-height: 90vh; border-radius: 10px; }
  .modal-body { padding: 16px; }
  .chips { gap: 6px; }
  .chip { padding: 5px 12px; font-size: 0.76rem; }
}
