/* =========================================================
   Mobile Numerology Calculator — Responsive Stylesheet
   ========================================================= */

/* --- Container --- */
.numerology-container {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  font-family: inherit;
  padding: 0 16px;
  box-sizing: border-box;
}

/* --- Typography scale --- */
.numerology-container h2 {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 12px;
}
.numerology-container h3 {
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  margin: 10px 0 6px;
  font-weight: 700;
}
.numerology-container p,
.numerology-container div,
.numerology-container span {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  line-height: 1.55;
}
.numerology-container small,
.examples {
  font-size: clamp(0.72rem, 2vw, 0.82rem) !important;
  color: #555;
  margin-top: 6px;
  display: block;
}

/* --- Form labels (fixes placeholder-only problem) --- */
.mnc-field {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.mnc-field label {
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

/* --- Form row: 3-col desktop → 1-col mobile --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

/* --- Inputs --- */
.numerology-container input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  box-sizing: border-box;
  background: #fff;
}
.numerology-container input:focus {
  outline: 2px solid #6b5cff;
  border-color: #6b5cff;
}

/* --- Calculate button --- */
.mnc-btn {
  display: inline-block;
  padding: 13px 32px;
  background: #6b5cff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  width: auto;
}
.mnc-btn:hover {
  background: #5444dd;
}

/* --- Section spacer --- */
.section {
  margin-top: 10px;
  padding: 6px 0;
}

/* --- Badges --- */
.badge-red   { color: #c0392b; font-weight: bold; }
.badge-green { color: #2e7d32; font-weight: bold; }
.badge-yellow{ color: #caa000; font-weight: bold; }

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 22px 0;
}

/* --- Influence-area tiles: 3-col desktop → 1-col mobile --- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.tile {
  border: 1px solid #e5e5f0;
  border-radius: 10px;
  padding: 14px 10px;
  background: #fafaff;
  font-weight: 600;
  font-size: clamp(0.82rem, 2.3vw, 0.95rem);
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* --- Lo Shu Grid: fixed px cells → fluid --- */
.lo-shu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 4px;
  justify-content: center;
  margin: 12px auto 0;
  max-width: 300px;
  width: 100%;
}
.lo-cell {
  border: 2px solid #bbb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: clamp(1rem, 3.5vw, 1.3rem);
  min-height: 60px;
  aspect-ratio: 1 / 1;
  background: #f9f9ff;
}

/* --- CTA WhatsApp button (not just a link) --- */
.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 24px;
  background: #25D366;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(37,211,102,0.35);
  transition: background 0.2s;
  word-break: break-word;
}
.cta:hover {
  background: #1ebe5d;
}

/* =========================================================
   MOBILE  (≤ 600 px)
   ========================================================= */
@media (max-width: 600px) {

  .numerology-container {
    padding: 0 12px;
    text-align: center;
  }

  /* Stack form fields vertically */
  .form-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Full-width button on mobile */
  .mnc-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }

  /* Stack tiles vertically */
  .tile-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Lo Shu: shrink to screen */
  .lo-shu {
    max-width: 100%;
    width: min(270px, 90vw);
  }
  .lo-cell {
    min-height: 0;
    font-size: clamp(0.9rem, 5vw, 1.2rem);
  }

  /* Full-width CTA */
  .cta {
    display: block;
    text-align: center;
    padding: 16px 12px;
  }
}

/* =========================================================
   TABLET  (601–768 px)
   ========================================================= */
@media (min-width: 601px) and (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .tile-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
