@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

/* Newnormz WhatsApp Leads — consultation modal */
:root {
  --nnwlg-wa: #25D366;
  --nnwlg-wa-dark: #128C7E;
  --nnwlg-wa-header: #075E54;
  --nnwlg-mint: #e8f8ef;
  --nnwlg-mint-2: #f3fbf6;
  --nnwlg-text: #14352c;
  --nnwlg-muted: #6b7c76;
  --nnwlg-border: #d7e3dd;
  --nnwlg-line: #e8eeeB;
}

.nnwlg-float-wrap,
.nnwlg-overlay,
.nnwlg-consult,
.nnwlg-section {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.nnwlg-float-wrap {
  position: fixed;
  right: 22px;
  /* Keep clear of browser chrome / home bar / sticky page CTAs.
     Do not use max() here — it invalidates bottom on this site and
     drops the fixed button to the end of the page (looks missing). */
  bottom: 56px;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: nnwlg-breathe 2.4s ease-in-out infinite;
}

.nnwlg-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.nnwlg-float-label-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #2b2b2b;
  color: #fff;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.2s;
}

.nnwlg-float-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: background 0.2s, box-shadow 0.2s;
}

.nnwlg-float-icon .nnwlg-wa-icon {
  width: 28px;
  height: 28px;
  display: block;
  color: #fff;
}

.nnwlg-float-btn:hover .nnwlg-float-label-pill {
  background: #1f1f1f;
}

.nnwlg-float-btn:hover .nnwlg-float-icon {
  background: #20bd5a;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.nnwlg-float-wrap:hover {
  animation-play-state: paused;
  transform: scale(1.04);
}

@keyframes nnwlg-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .nnwlg-float-wrap {
    animation: none;
  }
}

@media (max-width: 760px) {
  .nnwlg-float-wrap {
    right: 14px;
    bottom: 72px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .nnwlg-float-label-pill {
    height: 32px;
    padding: 0 14px;
    font-size: 12px;
  }
  .nnwlg-float-icon {
    width: 50px;
    height: 50px;
  }
  .nnwlg-float-icon .nnwlg-wa-icon {
    width: 26px;
    height: 26px;
  }
}

/* Overlay */
.nnwlg-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(16, 36, 30, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(3px);
}

.nnwlg-overlay[hidden] {
  display: none !important;
}

/* Consultation card */
.nnwlg-consult {
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(16, 36, 30, 0.28);
  animation: nnwlg-pop 0.28s ease;
}

@keyframes nnwlg-pop {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.nnwlg-consult-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #eef2f0 !important;
  color: #54656f !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 36px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  box-shadow: none !important;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}

.nnwlg-consult-close:hover {
  background: #e2e8e5 !important;
}

.nnwlg-consult-side {
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 211, 102, 0.18), transparent 45%),
    linear-gradient(180deg, var(--nnwlg-mint) 0%, var(--nnwlg-mint-2) 100%);
  padding: 36px 28px;
  color: var(--nnwlg-text);
}

.nnwlg-consult-side-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.28);
}

.nnwlg-consult-side-icon .nnwlg-wa-icon {
  width: 24px;
  height: 24px;
}

.nnwlg-consult-side h2 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-family: "Poppins", system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: #0d3b31;
  line-height: 1.25;
}

.nnwlg-consult-side-copy {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3f5d54;
}

.nnwlg-consult-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.nnwlg-consult-points li {
  position: relative;
  padding-left: 28px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #244940;
  font-weight: 500;
}

.nnwlg-consult-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.18);
  color: #128C7E;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nnwlg-consult-main {
  padding: 28px 28px 22px;
  background: #fff;
}

.nnwlg-consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}

.nnwlg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nnwlg-field--full {
  grid-column: 1 / -1;
}

.nnwlg-field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7c76;
}

.nnwlg-req { color: #e53935; }

.nnwlg-field-hint {
  font-size: 0.72rem;
  color: #8a9a94;
  line-height: 1.35;
}

.nnwlg-field input,
.nnwlg-field select,
.nnwlg-field textarea {
  width: 100%;
  border: 1.5px solid var(--nnwlg-border);
  border-radius: 12px;
  padding: 12px 14px;
  /* 16px minimum — iOS/Android zoom if smaller on focus */
  font-size: 16px;
  line-height: 1.4;
  font-family: inherit;
  color: var(--nnwlg-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

.nnwlg-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 48px;
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  padding-right: 36px;
  line-height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238aa095' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #fff;
}

.nnwlg-field input {
  min-height: 48px;
}

.nnwlg-field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.45;
  padding-top: 12px;
  padding-bottom: 12px;
}

.nnwlg-field input:focus,
.nnwlg-field select:focus,
.nnwlg-field textarea:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

.nnwlg-field input.nnwlg-invalid,
.nnwlg-field select.nnwlg-invalid {
  border-color: #e53935;
}

.nnwlg-error {
  font-size: 0.72rem;
  color: #e53935;
}

.nnwlg-phone-wrap {
  display: flex;
  align-items: stretch;
}

.nnwlg-phone-wrap--flag .nnwlg-phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #f4f7f5;
  border: 1.5px solid var(--nnwlg-border);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #075E54;
  white-space: nowrap;
}

.nnwlg-flag {
  display: block;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.nnwlg-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

.nnwlg-phone-wrap input {
  border-radius: 0 12px 12px 0 !important;
  padding-left: 12px !important;
}

.nnwlg-consult-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.nnwlg-consult-footer {
  flex: 0 0 auto;
  margin-top: 16px;
  background: #fff;
}

.nnwlg-consult-submit {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #2fe373 0%, #25D366 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
  transition: transform 0.15s, filter 0.15s;
}

.nnwlg-consult-submit:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.nnwlg-consult-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.nnwlg-consult-submit-ico {
  display: flex;
  color: #fff;
}

.nnwlg-consult-submit-ico .nnwlg-wa-icon {
  width: 20px;
  height: 20px;
}

.nnwlg-privacy {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: #8a9a94;
  text-align: center;
  line-height: 1.45;
}

.nnwlg-msg {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.nnwlg-msg[hidden] { display: none !important; }

.nnwlg-msg.nnwlg-success {
  background: #e7f8ee;
  color: #075E54;
  display: block !important;
}

body.nnwlg-modal-open { overflow: hidden; }

/* Shortcode form keeps a cleaner card look */
.nnwlg-section {
  padding: 48px 16px;
  background: linear-gradient(160deg, #e8f9f0 0%, #f7faf8 100%);
}

.nnwlg-container { max-width: 960px; margin: 0 auto; }

.nnwlg-form-wrap {
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 40px rgba(7, 94, 84, 0.1);
}

.nnwlg-trust-panel {
  flex: 0 0 300px;
  background: linear-gradient(160deg, #075E54 0%, #128C7E 100%);
  color: #fff;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nnwlg-wa-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nnwlg-trust-title { margin: 0; font-size: 1.3rem; font-weight: 700; color: #fff; }
.nnwlg-trust-sub { margin: 0; font-size: 0.9rem; opacity: 0.9; line-height: 1.55; }
.nnwlg-trust-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nnwlg-trust-list li { display: flex; gap: 8px; font-size: 0.88rem; }
.nnwlg-check { color: #25D366; font-weight: 700; }
.nnwlg-whatsapp-direct { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-size: 0.82rem; }
.nnwlg-wa-direct-link { display: inline-block; margin-top: 6px; color: #25D366; font-weight: 700; text-decoration: none; }
.nnwlg-form-panel { flex: 1; padding: 32px 28px; }
.nnwlg-form { display: flex; flex-direction: column; gap: 11px; }
.nnwlg-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nnwlg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; border: 0; border-radius: 12px; padding: 13px 18px;
  background: #25D366; color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer;
}

@media (max-width: 860px) {
  .nnwlg-consult {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }
  .nnwlg-consult-side {
    padding: 24px 22px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .nnwlg-consult-side-icon {
    margin-left: auto;
    margin-right: auto;
  }
  .nnwlg-consult-points {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    width: 100%;
  }
  .nnwlg-consult-main {
    padding: 18px 18px 16px;
  }
}

@media (max-width: 620px) {
  .nnwlg-consult-grid,
  .nnwlg-row-2,
  .nnwlg-consult-points {
    grid-template-columns: 1fr;
  }
  .nnwlg-form-wrap { flex-direction: column; }

  /* Bottom sheet ~75% — fixed header, scrollable form */
  .nnwlg-overlay {
    padding: 0;
    align-items: flex-end;
    justify-content: stretch;
  }

  .nnwlg-consult {
    width: 100%;
    height: 75vh;
    height: 75dvh;
    max-height: 75vh;
    max-height: 75dvh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    animation: nnwlg-sheet 0.28s ease;
  }

  @keyframes nnwlg-sheet {
    from { transform: translateY(24px); opacity: 0.6; }
    to { transform: none; opacity: 1; }
  }

  /* Static header — stays put while form scrolls */
  .nnwlg-consult-side {
    flex: 0 0 auto;
    padding: 16px 44px 12px; /* extra right room so title clears the X */
    border-bottom: 1px solid #e4efe9;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nnwlg-consult-side-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    margin: 0 auto 8px;
  }

  .nnwlg-consult-side-icon .nnwlg-wa-icon {
    width: 18px;
    height: 18px;
  }

  .nnwlg-consult-side h2 {
    font-size: 1.12rem;
    margin-bottom: 4px;
    text-align: center;
    font-weight: 800 !important;
  }

  .nnwlg-consult-side-copy {
    margin-bottom: 0;
    font-size: 0.8rem;
    text-align: center;
    max-width: 28em;
  }

  /* Keep sheet usable — trust bullets are desktop/tablet only */
  .nnwlg-consult-points {
    display: none;
  }

  /* Form body: fields scroll, CTA footer always visible */
  .nnwlg-consult-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 14px 16px 0;
  }

  .nnwlg-consult-form {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .nnwlg-consult-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 8px;
  }

  .nnwlg-consult-footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #eef2f0;
    box-shadow: 0 -8px 16px rgba(255, 255, 255, 0.95);
  }

  .nnwlg-consult-close {
    top: 10px !important;
    right: 10px !important;
    position: absolute !important;
    z-index: 5;
  }

  .nnwlg-phone-wrap--flag .nnwlg-phone-prefix {
    font-size: 16px;
  }

  .nnwlg-consult-submit {
    position: static;
    margin: 0;
    z-index: auto;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28);
  }
}
