/* fb.igg.ge — igg.ge-style purple/teal palette. Mobile-first. */

:root {
  --igg-purple: #2c2570;
  --igg-purple-dark: #211a55;
  --igg-teal: #2bb195;
  --igg-teal-dark: #1f9e84;
  --igg-bg: #f5f6fa;
  --igg-card: #ffffff;
  --igg-text: #1c2330;
  --igg-muted: #6b7280;
  --igg-border: #e4e7ef;
  --igg-error: #c0392b;
  --igg-error-bg: #fdeaea;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--igg-text);
  font-family: "BPG Nino Mtavruli", "Noto Sans Georgian", -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

/* Page-wide background: soft diagonal gradient in IGG purple tones, plus
 * a giant rotated IGG logo as a draft-style watermark behind everything.
 * The body itself stays clean — we paint the background on ::before so it
 * sits behind the topbar/hero/footer without affecting layout. */
body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(43, 177, 149, 0.10), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(44, 37, 112, 0.14), transparent 50%),
    linear-gradient(135deg, #f7f8fc 0%, #eef0f8 100%);
  background-attachment: fixed;
}
/* Draft-style watermark: one large logo in the centre (as a stamped DRAFT
 * mark on a document) plus four smaller corner logos so the pattern reads
 * across the whole page without becoming a repeating tile. All share the
 * same -18° rotation so they look like one set of stamps. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    url("/assets/logo-color.png"),
    url("/assets/logo-color.png"),
    url("/assets/logo-color.png"),
    url("/assets/logo-color.png"),
    url("/assets/logo-color.png");
  background-repeat: no-repeat;
  background-position:
    50% 50%,    /* large centre */
    12% 14%,    /* top-left */
    88% 16%,    /* top-right */
    14% 86%,    /* bottom-left */
    86% 84%;    /* bottom-right */
  background-size:
    min(620px, 75vw) auto,
    240px auto,
    240px auto,
    240px auto,
    240px auto;
  opacity: 0.07;
  transform: rotate(-18deg);
  transform-origin: center center;
  filter: grayscale(35%) contrast(110%);
}
@media (max-width: 700px) {
  /* On phones the four corner stamps would crowd the form, so we keep
   * only the centre + two diagonal accents (top-left + bottom-right). */
  body::before {
    background-image:
      url("/assets/logo-color.png"),
      url("/assets/logo-color.png"),
      url("/assets/logo-color.png");
    background-position: 50% 50%, 10% 10%, 90% 90%;
    background-size: min(380px, 85vw) auto, 140px auto, 140px auto;
    opacity: 0.08;
  }
}

/* Anything visible must sit above the watermark layer. */
.topbar, .hero, .footer, main, .admin-top { position: relative; z-index: 1; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- header --- */
.topbar {
  /* Subtle teal accent on the right-hand side gives the navy bar a bit of
   * brand colour without competing with the watermark below. */
  background:
    linear-gradient(90deg, var(--igg-purple) 0%, var(--igg-purple) 60%, #3a2f8a 100%);
  color: #fff;
  box-shadow: 0 2px 18px rgba(33, 26, 85, 0.18);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand img {
  height: 48px;
  width: auto;
}
.brand__text {
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.topbar__contacts {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.lang-switch {
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.15s, border-color 0.15s;
}
.lang-switch:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 600px) {
  .topbar__contacts > span { display: none; }
  .topbar__contacts { gap: 0; }
}

/* --- hero / form --- */
.hero {
  padding: 50px 0 80px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}
.card {
  /* Slightly translucent so the watermark gradient peeks through at the
   * card edges — keeps the form looking elevated, not pasted on. */
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 44px 38px 40px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px -20px rgba(44, 37, 112, 0.28),
    0 8px 18px rgba(44, 37, 112, 0.08);
  position: relative;
  overflow: hidden;
}
/* Thin teal accent stripe along the top edge — the same teal IGG uses
 * for primary CTAs. Subtle, only ~3px. */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--igg-teal), var(--igg-purple));
}
.card h1 {
  margin: 0 0 10px;
  color: var(--igg-purple);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.lead {
  margin: 0 0 24px;
  color: var(--igg-muted);
  font-size: 15px;
}
.form {
  display: flex;
  flex-direction: column;
}
.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--igg-text);
  margin-bottom: 6px;
}
.input {
  height: 54px;
  padding: 0 18px;
  border: 1.5px solid var(--igg-border);
  border-radius: 12px;
  font-size: 17px;
  font-family: inherit;
  background: #fff;
  color: var(--igg-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--igg-teal);
  box-shadow: 0 0 0 4px rgba(43, 177, 149, 0.16);
}
.btn {
  margin-top: 18px;
  height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  /* Brand-coloured gradient + soft glow so the CTA feels like the obvious
   * next action without needing a giant size or bright shock-colour. */
  background: linear-gradient(135deg, var(--igg-teal) 0%, var(--igg-teal-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 8px 18px -4px rgba(43, 177, 149, 0.45);
  transition: transform 0.08s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover { filter: brightness(1.04); box-shadow: 0 10px 22px -4px rgba(43, 177, 149, 0.55); }
.btn:active { transform: translateY(1px); box-shadow: 0 4px 10px -2px rgba(43, 177, 149, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--igg-purple);
  border: 1.5px solid var(--igg-purple);
}
.btn--ghost:hover { background: var(--igg-purple); color: #fff; }

/* Small trust strip shown beneath the form. Three quick reassurance lines
 * with check dots — common pattern on insurance landing pages. */
.trust {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--igg-border);
  font-size: 13px;
  color: var(--igg-muted);
}
.trust li {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.trust ul { margin: 0; padding: 0; display: grid; gap: 10px; }
.trust .dot {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(43, 177, 149, 0.15);
  color: var(--igg-teal);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.btn--small {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert--error {
  background: var(--igg-error-bg);
  color: var(--igg-error);
  border: 1px solid #f3c2c0;
}

/* --- thank-you card --- */
.card--thanks { text-align: center; }
.check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--igg-teal);
  color: #fff;
  font-size: 38px;
  font-weight: 700;
  line-height: 64px;
  margin: 0 auto 16px;
}

.footer {
  background: linear-gradient(180deg, var(--igg-purple-dark) 0%, #1a1444 100%);
  color: #d4d6e3;
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- admin --- */
.admin-body { background: #f0f2f6; }
.admin-top {
  background: var(--igg-purple);
  color: #fff;
  padding: 14px 0;
}
.admin-top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-top a { color: #fff; }
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0 22px;
  flex-wrap: wrap;
  gap: 12px;
}

/* Date-range filter bar above the leads list. */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--igg-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 22px;
}
.filter-bar__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}
.filter-bar__field .label {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--igg-muted);
}
.input--date {
  height: 42px;
  font-size: 14px;
  padding: 0 12px;
}
.filter-bar__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
@media (max-width: 560px) {
  .filter-bar__actions { margin-left: 0; width: 100%; }
  .filter-bar__actions .btn { flex: 1; justify-content: center; }
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-card h1 {
  margin: 0 0 18px;
  text-align: center;
}
.login-card .label { margin-top: 8px; }
.login-card .btn { margin-top: 20px; }

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--igg-border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--igg-border);
  vertical-align: middle;
}
.table th {
  background: #f7f8fc;
  color: var(--igg-muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.table tr:last-child td { border-bottom: none; }
.table .phone a { color: var(--igg-purple); font-weight: 600; text-decoration: none; }
.table .ref { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--igg-muted); }

.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--igg-muted);
  background: #fff;
  border: 1px dashed var(--igg-border);
  border-radius: 10px;
}
.muted { color: var(--igg-muted); font-size: 13px; margin-top: 12px; }
