/*
Theme Name: AIPickr
Theme URI: https://forestgreen-fly-685435.hostingersite.com
Author: AIPickr
Author URI: https://forestgreen-fly-685435.hostingersite.com
Description: Custom AI Tools Directory theme for forestgreen-fly-685435.hostingersite.com
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: aipickr
*/

:root {
  --white: #ffffff;
  --bg: #F7F6F3;
  --bg2: #EFEDE8;
  --border: #E2DDD6;
  --border2: #D4CEC6;
  --text-1: #1C1917;
  --text-2: #57534E;
  --text-3: #A8A29E;
  --accent: #2563EB;
  --accent-light: #EFF6FF;
  --accent-border: #BFDBFE;
  --green: #16A34A;
  --green-light: #F0FDF4;
  --green-border: #BBF7D0;
  --orange: #EA580C;
  --orange-light: #FFF7ED;
  --orange-border: #FED7AA;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────── */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  color: var(--text-1);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}
.site-logo span { color: var(--accent); }
.nav-search-wrap {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.nav-search-wrap input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.nav-search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: var(--white);
}
.nav-search-wrap input::placeholder { color: var(--text-3); }
.nav-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: 15px;
  pointer-events: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.nav-link:hover { background: var(--bg); color: var(--text-1); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, transform 0.1s;
}
.nav-cta:hover { background: #1D4ED8; transform: translateY(-1px); }

/* ── HERO ────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  animation: fadeInDown 0.5s ease;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 14px;
  animation: fadeInUp 0.5s ease 0.1s both;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 32px;
  font-weight: 400;
  line-height: 1.6;
  animation: fadeInUp 0.5s ease 0.2s both;
}
.hero-search-wrap {
  max-width: 560px;
  margin: 0 auto 28px;
  animation: fadeInUp 0.5s ease 0.3s both;
}
.hero-search-box {
  display: flex;
  background: var(--white);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08), var(--shadow-md);
}
.hero-search-box input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-1);
  background: transparent;
}
.hero-search-box input::placeholder { color: var(--text-3); }
.hero-search-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.hero-search-btn:hover { background: #1D4ED8; }
.hero-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  animation: fadeInUp 0.5s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  font-family: 'Instrument Serif', serif;
  letter-spacing: -0.5px;
}
.hero-stat span {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero-divider { width: 1px; background: var(--border); }

/* ── QUIZ BANNER ─────────────────────── */
.quiz-section {
  max-width: 1280px;
  margin: 20px auto 0;
  padding: 0 24px;
}
.quiz-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.quiz-banner:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); }
.quiz-left { display: flex; align-items: center; gap: 14px; }
.quiz-emoji { font-size: 24px; }
.quiz-text h3 { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 1px; }
.quiz-text p { font-size: 13px; color: var(--text-2); }
.quiz-cta {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}
.quiz-cta:hover { background: #1D4ED8; transform: translateY(-1px); }

/* ── FILTER BAR ──────────────────────── */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  position: sticky;
  top: 60px;
  z-index: 100;
}
.filter-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}
.ftag {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  font-family: 'DM Sans', sans-serif;
}
.ftag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.ftag.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.filter-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }

/* ── MAIN LAYOUT ─────────────────────── */
.page-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
}

/* ── SIDEBAR ─────────────────────────── */
.sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  padding: 0 8px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  margin-bottom: 1px;
  transition: all 0.12s;
  font-weight: 500;
}
.sidebar-item:hover { background: var(--bg2); color: var(--text-1); }
.sidebar-item.active { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); }
.sidebar-count {
  font-size: 11px;
  background: var(--bg2);
  color: var(--text-3);
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
}
.sidebar-item.active .sidebar-count { background: var(--accent-border); color: var(--accent); }

/* ── TOOLS AREA ──────────────────────── */
.tools-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.tools-count { font-size: 13px; color: var(--text-3); font-weight: 500; }
.compare-controls { display: flex; align-items: center; gap: 10px; }
.compare-hint { font-size: 13px; color: var(--text-3); }
.compare-btn {
  padding: 7px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.compare-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.compare-btn.ready { background: var(--accent); border-color: var(--accent); color: var(--white); }
.compare-btn.ready:hover { background: #1D4ED8; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* ── TOOL CARD ───────────────────────── */
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.18s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-card.selected { border: 1.5px solid var(--accent); background: #FAFCFF; box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.card-select {
  position: absolute;
  top: 12px; right: 12px;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  background: var(--white);
  transition: all 0.15s;
  color: transparent;
}
.tool-card.selected .card-select { background: var(--accent); border-color: var(--accent); color: var(--white); }
.card-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; }
.price-pill { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: 0.03em; text-transform: uppercase; }
.pill-free { background: var(--green-light); color: var(--green); border: 1px solid var(--green-border); }
.pill-freemium { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent-border); }
.pill-paid { background: var(--orange-light); color: var(--orange); border: 1px solid var(--orange-border); }
.card-name { font-size: 15px; font-weight: 700; color: var(--text-1); letter-spacing: -0.2px; }
.card-desc { font-size: 12px; color: var(--text-2); line-height: 1.55; flex: 1; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.card-tag { font-size: 11px; padding: 2px 8px; border-radius: 5px; background: var(--bg2); color: var(--text-3); font-weight: 500; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto; }
.card-rating { font-size: 12px; color: #D97706; font-weight: 600; }
.card-visit { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 3px; }
.card-visit:hover { text-decoration: underline; }

/* ── COMPARE PANEL ───────────────────── */
.compare-panel { display: none; margin-top: 24px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-md); }
.compare-panel.show { display: block; }
.compare-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.compare-panel-header h3 { font-family: 'Instrument Serif', serif; font-size: 20px; font-weight: 400; color: var(--text-1); }
.close-compare { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-2); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th { padding: 12px 16px; text-align: center; background: var(--bg); border: 1px solid var(--border); font-weight: 700; color: var(--text-1); font-size: 14px; }
.compare-table th:first-child { text-align: left; width: 110px; background: transparent; border: none; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table td { padding: 11px 16px; text-align: center; border: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.compare-table td:first-child { border: none; text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table tr:hover td { background: var(--bg); }
.win-cell { color: var(--green) !important; font-weight: 700 !important; }
.compare-actions { display: flex; gap: 10px; margin-top: 16px; }
.visit-btn { flex: 1; padding: 10px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg); color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.12s; }
.visit-btn:hover { background: var(--accent-light); border-color: var(--accent-border); }

/* ── QUIZ MODAL ──────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 500; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.quiz-modal { background: var(--white); border-radius: var(--radius-xl); padding: 32px; max-width: 480px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); animation: scaleIn 0.2s ease; }
@keyframes scaleIn { from{opacity:0;transform:scale(0.95)} to{opacity:1;transform:scale(1)} }
.quiz-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.quiz-modal-title { font-family: 'Instrument Serif', serif; font-size: 22px; font-weight: 400; }
.quiz-close { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 14px; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.quiz-step-label { font-size: 12px; color: var(--text-3); font-weight: 600; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.quiz-q { font-size: 16px; font-weight: 600; color: var(--text-1); margin-bottom: 16px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-opt { padding: 12px 14px; border-radius: var(--radius-md); border: 1.5px solid var(--border); background: var(--bg); color: var(--text-1); font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; font-family: 'DM Sans', sans-serif; transition: all 0.12s; line-height: 1.4; }
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.quiz-result { display: none; text-align: center; padding: 8px 0; }
.quiz-result.show { display: block; }
.result-icon { font-size: 48px; margin-bottom: 12px; }
.result-title { font-family: 'Instrument Serif', serif; font-size: 22px; margin-bottom: 6px; }
.result-desc { font-size: 14px; color: var(--text-2); margin-bottom: 20px; line-height: 1.6; }
.result-btn { background: var(--accent); color: var(--white); border: none; padding: 12px 28px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; }

/* ── SUBMIT BANNER ───────────────────── */
.submit-banner { background: var(--white); border: 1px dashed var(--border2); border-radius: var(--radius-lg); padding: 16px; text-align: center; margin-top: 8px; }
.submit-banner p { font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.submit-btn { background: transparent; border: 1px solid var(--accent-border); color: var(--accent); padding: 6px 14px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.12s; }
.submit-btn:hover { background: var(--accent-light); }

/* ── EMPTY STATE ─────────────────────── */
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state .e-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* ── SITE FOOTER ─────────────────────── */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 20px 24px; text-align: center; font-size: 13px; color: var(--text-3); }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── WORDPRESS OVERRIDES ─────────────── */
.wp-block { max-width: 100% !important; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }

/* ============================= */
/* MOBILE FIX FOR AIPICKR THEME */
/* ============================= */

@media (max-width: 768px) {

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  /* NAVBAR FIX */
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }

  .nav-search-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    order: 2;
    width: 100%;
    text-align: center;
  }

  /* HERO FIX */
  .hero {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero-sub {
    font-size: 14px;
    padding: 0 10px;
  }

  /* SEARCH BAR FIX */
  .hero-search-box {
    flex-direction: column;
  }

  .hero-search-box input {
    padding: 12px;
  }

  .hero-search-btn {
    width: 100%;
  }

  /* STATS FIX */
  .hero-stats {
    flex-direction: column;
    gap: 10px;
  }

  .hero-divider {
    display: none;
  }

  /* QUIZ BANNER FIX */
  .quiz-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .quiz-cta {
    width: 100%;
    text-align: center;
  }

  /* MAIN LAYOUT FIX (BIGGEST ISSUE) */
  .page-body {
    grid-template-columns: 1fr;
  }

  /* HIDE SIDEBAR ON MOBILE */
  .sidebar {
    display: none;
  }

  /* TOOLS GRID */
  .tools-grid {
    grid-template-columns: 1fr;
  }

  /* TOOL CARD */
  .tool-card {
    padding: 14px;
  }
}

@media (max-width: 768px) {
  .tool-card {
    border-radius: 12px;
  }

  .card-name {
    font-size: 16px;
  }

  .card-desc {
    font-size: 13px;
  }
}

/* ============================= */
/* MOBILE UI POLISH (PREMIUM) */
/* ============================= */

@media (max-width: 768px) {

  /* HEADER CLEANUP */
  .nav-inner {
    padding: 8px 12px;
  }

  .site-logo {
    font-size: 18px;
  }

  .nav-search-wrap input {
    font-size: 13px;
    padding: 6px 10px 6px 30px;
  }

  /* HERO SPACING */
  .hero {
    padding: 32px 16px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-sub {
    margin-bottom: 20px;
  }

  /* STATS IMPROVEMENT */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hero-stat strong {
    font-size: 18px;
  }

  /* FILTER FIX */
  .filter-bar-inner {
    gap: 6px;
  }

  .ftag {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* TOOL HEADER */
  .tools-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* CARD IMPROVEMENT */
  .tool-card {
    padding: 16px;
    border-radius: 14px;
  }

  .card-name {
    font-size: 16px;
  }

  .card-desc {
    font-size: 13px;
  }

  .card-footer {
    padding-top: 8px;
  }

  /* BUTTON FIX */
  .card-visit {
    font-size: 13px;
  }

}
/* ============================= */
/* SEARCH BAR BUTTON LOOKS HEAVY FIX ON MOBILE */
/* ============================= */
@media (max-width: 768px) {
  .hero-search-btn {
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .hero-search-box input {
    padding: 10px;
  }
}
/* ============================= */
/* QUIZ CARD SPACING */
/* ============================= */
@media (max-width: 768px) {
  .quiz-banner {
    padding: 16px;
  }

  .quiz-text h3 {
    font-size: 15px;
  }

  .quiz-text p {
    font-size: 13px;
  }
}
/* ============================= */
/* CARD VISUAL UPGRADE */
/* ============================= */
@media (max-width: 768px) {
  .tool-card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }

  .card-tag {
    font-size: 10px;
    padding: 3px 7px;
  }

  .card-rating {
    font-size: 13px;
  }
}
/* ============================= */
/* FILTER SECTION SPACING */
/* ============================= */
@media (max-width: 768px) {
  .filter-bar {
    padding: 12px 0;
  }
}

/* ============================= */
/* CLEAN MOBILE NAVBAR (FINAL) */
/* ============================= */

/* Default (Desktop) */
.mobile-menu {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Only */
@media (max-width: 768px) {

  /* Show hamburger */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide desktop nav */
  .nav-links {
    display: none;
  }

  /* Mobile menu styles */
  .mobile-menu {
    display: none;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 10px 16px;
  }

  .mobile-menu a {
    padding: 12px 0;
    text-decoration: none;
    color: var(--text-1);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu a:last-child {
    border-bottom: none;
  }

  /* Show menu when active */
  .mobile-menu.show {
    display: flex;
  }
}

/* =====================================
}

/* FIELD SPACING */

.submit-tool-page .wpforms-field {
  margin-bottom: 26px !important;
}

/* SUBMIT BUTTON */

.submit-tool-page button[type="submit"] {
  background: #2563EB !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 16px 28px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-tool-page button[type="submit"]:hover {
  background: #1D4ED8 !important;
  transform: translateY(-1px);
}
/* =====================================
   SUBMIT TOOL FIXED STYLES
===================================== */

.submit-tool-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 20px;
}

.submit-tool-page .wpforms-container {
  width: 100%;
  background: #ffffff;
  border: 1px solid #E7E5E4;
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  box-sizing: border-box;
}

.submit-tool-page form {
  width: 100%;
}

.submit-tool-page .wpforms-field {
  margin-bottom: 26px !important;
}

.submit-tool-page .wpforms-field-label {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin-bottom: 10px !important;
}

.submit-tool-page .wpforms-field input,
.submit-tool-page .wpforms-field textarea,
.submit-tool-page .wpforms-field select {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #D6D3D1 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  background: #ffffff !important;
  box-sizing: border-box;
}

.submit-tool-page .wpforms-field textarea {
  min-height: 140px !important;
}

.submit-tool-page button[type="submit"] {
  background: #2563EB !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 16px 28px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.submit-tool-page button[type="submit"]:hover {
  background: #1D4ED8 !important;
}

@media (max-width: 768px) {

  .submit-tool-page {
    padding: 48px 16px;
  }

  .submit-tool-page .wpforms-container {
    padding: 22px;
  }

  .submit-tool-page button[type=\"submit\"] {
    width: 100%;
  }
}

/* SUCCESS MESSAGE */

.submit-tool-page .wpforms-confirmation-container-full {
  background: #ECFDF3 !important;
  border: 1px solid #86EFAC !important;
  color: #166534 !important;
  border-radius: 18px !important;
  padding: 24px !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}

/* MOBILE */

@media (max-width: 768px) {

  .submit-tool-page {
    padding: 48px 16px;
  }

  .submit-tool-page h1 {
    font-size: 40px;
    line-height: 1.1;
  }

  .submit-tool-page p {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .submit-tool-page .wpforms-container {
    padding: 22px;
    border-radius: 20px;
  }

  .submit-tool-page button[type="submit"] {
    width: 100%;
  }
}