/* ============================================================
   Faminaz Tools v1.3.0 — shared styles
   Every selector is scoped under .fmt-wrap to avoid clashes
   with the theme or other plugins.
   Brand: #bd00ff (primary) / #8f00c2 (dark)
   ============================================================ */

.fmt-wrap {
  --fmt-primary: #bd00ff;
  --fmt-dark: #8f00c2;
  --fmt-blush: #faf0fd;
  --fmt-line: #e6d2f5;
  --fmt-ink: #2b2b2b;
  --fmt-muted: #7a7a7a;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fmt-ink);
}
.fmt-wrap *,
.fmt-wrap *::before,
.fmt-wrap *::after { box-sizing: border-box; }

/* ---------- page typography (inside tool pages) ---------- */
.fmt-wrap h2 { font-size: 24px; margin: 30px 0 12px; line-height: 1.3; }
.fmt-wrap h3 { font-size: 19px; margin: 22px 0 8px; color: var(--fmt-dark); line-height: 1.35; }
.fmt-wrap p { margin: 0 0 12px; }
.fmt-wrap ul, .fmt-wrap ol { margin: 0 0 12px; }
.fmt-wrap .fmt-hint { font-size: 13px; color: var(--fmt-muted); font-style: italic; margin-top: 5px; }
.fmt-wrap .fmt-cap { font-size: 13px; color: var(--fmt-muted); font-style: italic; margin-top: 10px; }

/* ---------- calculator app container ---------- */
.fmt-wrap .fmt-app {
  background: #fff;
  border: 1px solid var(--fmt-line);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  margin: 22px 0;
}

/* ---------- tabs ---------- */
.fmt-wrap .fmt-tabs { display: flex; gap: 8px; justify-content: center; margin: 0 0 20px; flex-wrap: wrap; }
.fmt-wrap .fmt-tab {
  font-family: Arial, sans-serif; border: 1px solid var(--fmt-line); background: #fff;
  color: var(--fmt-ink); padding: 10px 18px; border-radius: 30px; cursor: pointer;
  font-size: 14px; transition: background .2s, color .2s;
}
.fmt-wrap .fmt-tab.fmt-active { background: var(--fmt-primary); border-color: var(--fmt-primary); color: #fff; }

/* ---------- panels ---------- */
.fmt-wrap .fmt-panel { display: none; }
.fmt-wrap .fmt-panel.fmt-active { display: block; animation: fmt-fade .3s; }
@keyframes fmt-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

/* ---------- form elements ---------- */
.fmt-wrap .fmt-label { display: block; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; margin: 14px 0 6px; letter-spacing: .3px; }
.fmt-wrap .fmt-input, .fmt-wrap .fmt-select {
  width: 100%; padding: 12px 14px; font-size: 16px; color: var(--fmt-ink);
  border: 1px solid #d8cfcb; border-radius: 10px; font-family: Arial, sans-serif; background: #fffdfc;
}
.fmt-wrap .fmt-input:focus, .fmt-wrap .fmt-select:focus { outline: 2px solid var(--fmt-primary); border-color: var(--fmt-primary); }
.fmt-wrap .fmt-btn {
  display: block; width: 100%; margin-top: 20px; background: var(--fmt-primary); color: #fff;
  border: none; border-radius: 10px; padding: 14px; font-size: 17px;
  font-family: Georgia, 'Times New Roman', serif; cursor: pointer; letter-spacing: .5px;
}
.fmt-wrap .fmt-btn:hover { background: var(--fmt-dark); }

/* ---------- results ---------- */
.fmt-wrap .fmt-results { display: none; margin-top: 22px; }
.fmt-wrap .fmt-results.fmt-show { display: block; animation: fmt-fade .3s; }
.fmt-wrap .fmt-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 6px; }
@media (min-width: 560px) { .fmt-wrap .fmt-cards.fmt-cards-4 { grid-template-columns: repeat(4, 1fr); } }
.fmt-wrap .fmt-card { background: var(--fmt-blush); border: 1px solid var(--fmt-line); border-radius: 12px; padding: 16px 8px; text-align: center; }
.fmt-wrap .fmt-card .fmt-sys { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 1.5px; color: var(--fmt-muted); }
.fmt-wrap .fmt-card .fmt-val { font-size: 30px; font-weight: 700; color: var(--fmt-dark); margin-top: 4px; }
.fmt-wrap .fmt-card .fmt-cm { font-family: Arial, sans-serif; font-size: 12px; color: var(--fmt-muted); margin-top: 2px; }
.fmt-wrap .fmt-card.fmt-green { background: #eef6ee; border-color: #cbe3cb; }
.fmt-wrap .fmt-card.fmt-green .fmt-val { color: #2e7d32; }
.fmt-wrap .fmt-card.fmt-amber { background: #fff8e6; border-color: #f0dfa8; }
.fmt-wrap .fmt-card.fmt-amber .fmt-val { color: #a86a12; }

/* big single result */
.fmt-wrap .fmt-big { background: var(--fmt-blush); border: 1px solid var(--fmt-line); border-radius: 12px; padding: 22px 12px; text-align: center; }
.fmt-wrap .fmt-big .fmt-lbl { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 2px; color: var(--fmt-muted); }
.fmt-wrap .fmt-big .fmt-size { font-size: 52px; font-weight: 700; color: var(--fmt-dark); margin: 4px 0; }
.fmt-wrap .fmt-big .fmt-detail { font-size: 14px; color: var(--fmt-muted); }

/* shape result */
.fmt-wrap .fmt-shape-card { background: var(--fmt-blush); border: 1px solid var(--fmt-line); border-radius: 12px; padding: 26px 20px; text-align: center; }
.fmt-wrap .fmt-shape-card .fmt-lbl { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 2px; color: var(--fmt-muted); }
.fmt-wrap .fmt-shape-card .fmt-name { font-size: 34px; font-weight: 700; color: var(--fmt-dark); margin: 6px 0 2px; }
.fmt-wrap .fmt-shape-card .fmt-meas { font-family: Arial, sans-serif; font-size: 13px; color: var(--fmt-muted); }
.fmt-wrap .fmt-desc { font-size: 16px; margin: 16px 2px 0; }
.fmt-wrap .fmt-tips { margin-top: 18px; }
.fmt-wrap .fmt-tips h3 { font-size: 20px; margin: 0 0 10px; color: var(--fmt-ink); }
.fmt-wrap .fmt-tip { background: #fff; border: 1px solid var(--fmt-line); border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; font-size: 15px; }
.fmt-wrap .fmt-tip strong { color: var(--fmt-dark); }
.fmt-wrap .fmt-shape-tag { display: inline-block; font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 1.5px; color: var(--fmt-dark); background: var(--fmt-blush); border: 1px solid var(--fmt-line); padding: 4px 12px; border-radius: 20px; margin-bottom: 6px; }

/* ---------- message boxes ---------- */
.fmt-wrap .fmt-note { background: #fff8e6; border: 1px solid #f0dfa8; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.fmt-wrap .fmt-advice { background: #eef6ee; border: 1px solid #cbe3cb; border-radius: 10px; padding: 14px; font-size: 15px; margin-top: 14px; }
.fmt-wrap .fmt-advice strong { color: #2e6b2e; }
.fmt-wrap .fmt-advice.fmt-amber-box { background: #fff8e6; border-color: #f0dfa8; }
.fmt-wrap .fmt-advice.fmt-amber-box strong { color: #a86a12; }
.fmt-wrap .fmt-advice.fmt-rose-box { background: var(--fmt-blush); border-color: var(--fmt-line); }
.fmt-wrap .fmt-advice.fmt-rose-box strong { color: var(--fmt-dark); }
.fmt-wrap .fmt-tips-box { background: #eef6ee; border: 1px solid #cbe3cb; border-radius: 10px; padding: 14px 16px; font-size: 14px; margin-top: 14px; }
.fmt-wrap .fmt-tips-box strong { color: #2e6b2e; }
.fmt-wrap .fmt-tips-box ul { margin: 8px 0 0; padding-left: 18px; }
.fmt-wrap .fmt-tips-box li { margin-bottom: 6px; }
.fmt-wrap .fmt-error { background: #fdecec; border: 1px solid #f3b8b8; color: #a33; border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-top: 14px; display: none; }
.fmt-wrap .fmt-disclaimer { background: #f4f4f4; border: 1px solid #ddd; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--fmt-muted); margin-top: 14px; font-style: italic; }
.fmt-wrap .fmt-disclaimer-big { background: #fff8f2; border: 2px solid var(--fmt-line); border-radius: 12px; padding: 16px 18px; margin-top: 26px; font-size: 14px; }
.fmt-wrap .fmt-disclaimer-big strong { color: var(--fmt-dark); }

/* ---------- grids ---------- */
.fmt-wrap .fmt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fmt-wrap .fmt-row3 { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 560px) { .fmt-wrap .fmt-row3 { grid-template-columns: 1fr 1fr 1fr; gap: 12px; } }
.fmt-wrap .fmt-m-title { font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; letter-spacing: 1px; margin: 22px 0 4px; }

/* ---------- tables ---------- */
.fmt-wrap .fmt-table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--fmt-line); border-radius: 10px; }
.fmt-wrap table.fmt-table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; min-width: 480px; margin: 0; }
.fmt-wrap table.fmt-table th { background: var(--fmt-primary); color: #fff; padding: 10px 8px; text-align: center; font-size: 12px; letter-spacing: 1px; }
.fmt-wrap table.fmt-table td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--fmt-line); }
.fmt-wrap table.fmt-table tbody tr:nth-child(even) td { background: var(--fmt-blush); }
.fmt-wrap table.fmt-table tbody tr:last-child td { border-bottom: none; }

/* ---------- FAQ accordions ---------- */
.fmt-wrap details.fmt-faq { border: 1px solid var(--fmt-line); border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.fmt-wrap details.fmt-faq summary { cursor: pointer; padding: 13px 16px; font-weight: bold; font-family: Arial, sans-serif; font-size: 15px; list-style: none; }
.fmt-wrap details.fmt-faq summary::-webkit-details-marker { display: none; }
.fmt-wrap details.fmt-faq summary::before { content: "+ "; color: var(--fmt-primary); font-weight: bold; }
.fmt-wrap details.fmt-faq[open] summary::before { content: "\2013  "; }
.fmt-wrap details.fmt-faq[open] summary { background: var(--fmt-blush); }
.fmt-wrap details.fmt-faq .fmt-a { padding: 4px 16px 16px; font-size: 15px; }

/* ---------- WHR gauge ---------- */
.fmt-wrap .fmt-gauge-wrap { margin: 26px 4px 8px; }
.fmt-wrap .fmt-gauge { position: relative; height: 18px; border-radius: 10px;
  background: linear-gradient(to right, #2e7d32 0%, #2e7d32 42.8%, #e0a93e 42.8%, #e0a93e 57.1%, var(--fmt-primary) 57.1%, var(--fmt-primary) 100%); }
.fmt-wrap .fmt-pointer { position: absolute; top: -9px; width: 4px; height: 36px; background: var(--fmt-ink); border-radius: 2px; transform: translateX(-2px); transition: left .4s; }
.fmt-wrap .fmt-pointer::after { content: ''; position: absolute; top: -7px; left: -5px; border: 7px solid transparent; border-top-color: var(--fmt-ink); }
.fmt-wrap .fmt-gauge-labels { display: flex; justify-content: space-between; font-family: Arial, sans-serif; font-size: 11px; color: var(--fmt-muted); margin-top: 6px; }
.fmt-wrap .fmt-zone-legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-family: Arial, sans-serif; font-size: 12px; color: var(--fmt-muted); margin-top: 10px; }
.fmt-wrap .fmt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: baseline; }

/* ---------- hub page tool cards ---------- */
.fmt-wrap .fmt-tool-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
@media (min-width: 560px) { .fmt-wrap .fmt-tool-grid { grid-template-columns: 1fr 1fr; } }
.fmt-wrap .fmt-tool-card { border: 1px solid var(--fmt-line); border-radius: 12px; padding: 20px; background: #fff; }
.fmt-wrap .fmt-tool-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--fmt-ink); }
.fmt-wrap .fmt-tool-card p { font-size: 14.5px; color: #555; margin: 0 0 14px; }
.fmt-wrap .fmt-tool-card a.fmt-link { display: inline-block; background: var(--fmt-primary); color: #fff; text-decoration: none; padding: 10px 22px; border-radius: 30px; font-family: Arial, sans-serif; font-size: 14px; }
.fmt-wrap .fmt-tool-card a.fmt-link:hover { background: var(--fmt-dark); color: #fff; }

/* ============================================================
   Faminaz Tools v1.2.0 — quiz styles
   ============================================================ */

/* ---------- quiz shell ---------- */
.fmt-wrap .fmt-qprogress { height: 8px; background: #f0e6f7; border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.fmt-wrap .fmt-qbar { height: 100%; width: 0; background: var(--fmt-primary); border-radius: 6px; transition: width .3s; }
.fmt-wrap .fmt-qcount { font-family: Arial, sans-serif; font-size: 12px; letter-spacing: 1px; color: var(--fmt-muted); margin-bottom: 14px; }
.fmt-wrap .fmt-qstep { display: none; border: none; padding: 0; margin: 0; }
.fmt-wrap .fmt-qstep.fmt-active { display: block; animation: fmt-fade .3s; }
.fmt-wrap .fmt-qstep .fmt-label { font-size: 17px; margin: 0 0 12px; letter-spacing: 0; }

/* ---------- quiz options ---------- */
.fmt-wrap .fmt-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--fmt-line); border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; font-size: 15px; background: #fff; transition: border-color .2s, background .2s; }
.fmt-wrap .fmt-opt:hover { border-color: var(--fmt-primary); background: var(--fmt-blush); }
.fmt-wrap .fmt-opt input { margin-top: 4px; accent-color: var(--fmt-primary); flex-shrink: 0; }
.fmt-wrap .fmt-opt strong { color: var(--fmt-dark); }

/* ---------- quiz navigation ---------- */
.fmt-wrap .fmt-qnav { display: flex; gap: 10px; margin-top: 18px; }
.fmt-wrap .fmt-qnav .fmt-btn { margin-top: 0; flex: 1; }
.fmt-wrap .fmt-btn-back { background: #fff; color: var(--fmt-dark); border: 2px solid var(--fmt-line); }
.fmt-wrap .fmt-btn-back:hover { background: var(--fmt-blush); color: var(--fmt-dark); }
.fmt-wrap .fmt-qresult { display: none; }

/* ---------- quiz result extras ---------- */
.fmt-wrap .fmt-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fmt-wrap .fmt-swatch { font-family: Arial, sans-serif; font-size: 13px; background: var(--fmt-blush); border: 1px solid var(--fmt-line); border-radius: 20px; padding: 6px 14px; }
.fmt-wrap .fmt-routine { margin: 14px 0; }
.fmt-wrap .fmt-step { background: #fff; border: 1px solid var(--fmt-line); border-radius: 10px; padding: 12px 15px; margin-bottom: 10px; font-size: 15px; }
.fmt-wrap .fmt-step strong { color: var(--fmt-dark); display: block; font-family: Arial, sans-serif; font-size: 12px; letter-spacing: 1.5px; margin-bottom: 2px; }
.fmt-wrap .fmt-qtag { display: inline-block; font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 1.5px; color: #fff; background: var(--fmt-primary); padding: 5px 14px; border-radius: 20px; margin-bottom: 8px; }

/* ---------- baby name generator ---------- */
.fmt-wrap .fmt-name-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 0 4px; }
@media (min-width: 640px) { .fmt-wrap .fmt-name-grid { grid-template-columns: repeat(4, 1fr); } }
.fmt-wrap .fmt-name-card { background: var(--fmt-blush); border: 1px solid var(--fmt-line); border-radius: 12px; padding: 14px 12px; text-align: center; }
.fmt-wrap .fmt-name { font-size: 20px; font-weight: 700; color: var(--fmt-dark); margin-bottom: 3px; }
.fmt-wrap .fmt-meaning { font-size: 14px; color: var(--fmt-ink); margin-bottom: 5px; }
.fmt-wrap .fmt-origin { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: 1px; color: var(--fmt-muted); text-transform: uppercase; }
.fmt-wrap .fmt-btn + .fmt-btn { margin-left: 8px; }
