/* =========================================================
   Tech Solution Direct — Design System
   ========================================================= */

:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-navy: #0F172A;
  --color-bg: #F8FAFC;
  --color-white: #FFFFFF;
  --color-text: #334155;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-success: #16A34A;
  --color-warning: #F59E0B;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 8px 16px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(15, 23, 42, 0.09);

  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 2000;
}
.skip-link:focus { top: 8px; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
  color: var(--color-navy);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-muted-custom { color: var(--color-muted); }

.btn { border-radius: 10px; font-weight: 600; padding: 0.6rem 1.25rem; }
.btn-primary { background: var(--color-primary); border-color: var(--color-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.btn-outline-primary { color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-primary:hover { background: var(--color-primary); border-color: var(--color-primary); }

.section { padding: 3.5rem 0; }
.section-header { margin-bottom: 2rem; }
.section-eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  display: inline-block;
}
.section-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--color-muted); max-width: 640px; }
.bg-alt { background: var(--color-white); }

/* =========================================================
   Header / Navbar
   ========================================================= */
.site-header { background: var(--color-white); border-bottom: 1px solid var(--color-border); z-index: 1030; }
.site-navbar { padding: 0.65rem 0; }
.navbar-brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-mark {
  width: 42px; height: 42px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; color: var(--color-navy); font-size: 1.05rem; }
.brand-tagline { font-size: 0.7rem; color: var(--color-muted); font-weight: 500; }

.navbar-nav .nav-link {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem !important;
  border-radius: 8px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:focus { color: var(--color-primary); }
.dropdown-menu { border: 1px solid var(--color-border); box-shadow: var(--shadow-card); border-radius: var(--radius-sm); }
.dropdown-item { font-size: 0.92rem; padding: 0.5rem 1rem; }
.dropdown-item:active { background: var(--color-primary); }

.nav-search { flex-shrink: 0; }
.nav-search-form { position: relative; }
.nav-search-form .input-group { width: 260px; }
.nav-search-form .form-control { border-radius: 10px 0 0 10px; border-color: var(--color-border); }
.nav-search-form .btn { border-radius: 0 10px 10px 0; }

/* =========================================================
   Breadcrumb
   ========================================================= */
.breadcrumb-nav { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.breadcrumb { margin: 0; padding: 0.75rem 0; font-size: 0.85rem; }
.breadcrumb-item a { color: var(--color-muted); }
.breadcrumb-item.active { color: var(--color-text); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(180deg, #EFF4FF 0%, var(--color-bg) 100%);
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--color-border);
}
.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero-examples { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.hero-example-chip {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  border-radius: 100px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
.hero-example-chip:hover { border-color: var(--color-primary); color: var(--color-primary); background: #EFF4FF; }

/* Search box */
.search-box { max-width: 680px; margin: 0 auto; position: relative; }
.search-box-inner {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.35rem 0.35rem 0.35rem 1.25rem;
  box-shadow: var(--shadow-card);
}
.search-box--large .search-box-inner { padding: 0.5rem 0.5rem 0.5rem 1.5rem; }
.search-box-icon { color: var(--color-muted); margin-right: 0.6rem; font-size: 1.1rem; }
.search-box .form-control {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.6rem 0;
}
.search-box--large .form-control { font-size: 1.1rem; padding: 0.8rem 0; }
.search-box-btn { border-radius: 100px !important; padding: 0.6rem 1.5rem; }

.autocomplete-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card-hover);
  z-index: 50;
  overflow: hidden;
  display: none;
  text-align: left;
}
.autocomplete-suggestions.show { display: block; }
.autocomplete-suggestions a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  color: var(--color-text);
  font-size: 0.92rem;
  border-bottom: 1px solid var(--color-border);
}
.autocomplete-suggestions a:last-child { border-bottom: none; }
.autocomplete-suggestions a:hover, .autocomplete-suggestions a.active { background: #EFF4FF; color: var(--color-primary); }
.autocomplete-suggestions a i { color: var(--color-muted); }

/* =========================================================
   Question cards (Popular Questions)
   ========================================================= */
.question-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  height: 100%;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-card);
}
.question-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); border-color: #C7D7FE; }
.question-card-icon { color: var(--color-primary); font-size: 1.15rem; margin-top: 0.1rem; flex-shrink: 0; }
.question-card-text { font-weight: 600; color: var(--color-navy); display: block; line-height: 1.4; }
.question-card-cat { display: block; font-size: 0.78rem; color: var(--color-muted); margin-top: 0.35rem; }

/* =========================================================
   Category tiles (Find Your Problem)
   ========================================================= */
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  height: 100%;
  transition: all 0.15s ease;
}
.category-tile:hover { border-color: var(--color-primary); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.category-tile-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #EFF4FF;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.category-tile-name { font-weight: 700; color: var(--color-navy); font-size: 0.95rem; }
.category-tile-count { font-size: 0.78rem; color: var(--color-muted); }

/* =========================================================
   Article cards
   ========================================================= */
.article-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
}
.article-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.article-card-img-wrap { position: relative; display: block; aspect-ratio: 5 / 3; overflow: hidden; background: #EFF4FF; }
.article-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-badge {
  background: #EFF4FF;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.4rem 0.65rem;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.category-badge--floating { position: absolute; top: 0.85rem; left: 0.85rem; background: rgba(255,255,255,0.94); }
.article-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.article-card-title { font-size: 1.05rem; margin: 0.5rem 0 0.5rem; line-height: 1.35; }
.article-card-title a { color: var(--color-navy); }
.article-card-title a:hover { color: var(--color-primary); }
.article-card-excerpt { color: var(--color-muted); font-size: 0.88rem; margin-bottom: 0.75rem; flex-grow: 1; }
.article-card-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--color-muted); }
.article-card-meta i { margin-right: 0.25rem; }

.article-card--horizontal { flex-direction: row; }
.article-card--horizontal .article-card-img-wrap { width: 220px; flex-shrink: 0; aspect-ratio: auto; }
.article-card--horizontal .article-card-body { flex: 1; }

/* =========================================================
   Blog page layout
   ========================================================= */
.category-filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.category-filter-chip {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.category-filter-chip.active,
.category-filter-chip:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* =========================================================
   Sidebar
   ========================================================= */
.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-widget-title { font-size: 0.95rem; margin-bottom: 1rem; font-weight: 700; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); }
.sidebar-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-list a { color: var(--color-text); font-weight: 600; font-size: 0.88rem; line-height: 1.4; display: block; }
.sidebar-list a:hover { color: var(--color-primary); }
.sidebar-list-meta { font-size: 0.75rem; color: var(--color-muted); display: block; margin-top: 0.15rem; }

.sidebar-chip-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.sidebar-chip {
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
}
.sidebar-chip:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.sidebar-chip--search i { margin-right: 0.2rem; }

.compact-article-link { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.compact-article-title { display: block; font-weight: 600; font-size: 0.88rem; color: var(--color-navy); }
.compact-article-meta { display: block; font-size: 0.74rem; color: var(--color-muted); margin-top: 0.15rem; }

/* =========================================================
   Article page content components
   ========================================================= */
.article-header { padding: 2.5rem 0 1.5rem; }
.article-category-link { font-weight: 700; color: var(--color-primary); font-size: 0.85rem; }
.article-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0.75rem 0 1rem; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--color-muted); font-size: 0.88rem; }
.article-meta-row i { margin-right: 0.3rem; color: var(--color-primary); }

.article-body { font-size: 1.03rem; }
.article-body h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 1rem;
  padding-top: 0.25rem;
  scroll-margin-top: 90px;
}
.article-body p { margin-bottom: 1.1rem; color: var(--color-text); }

.quick-answer {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.quick-answer-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.5rem; font-size: 0.92rem; }
.quick-answer p { margin: 0; color: var(--color-navy); font-weight: 500; }

.table-of-contents {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.table-of-contents-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.table-of-contents ol { margin: 0; padding-left: 1.25rem; columns: 1; }
.table-of-contents li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.table-of-contents a { color: var(--color-text); }
.table-of-contents a:hover { color: var(--color-primary); }

.solution-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1rem;
}
.step-number {
  width: 36px; height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.solution-box-body h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.solution-box-body p { margin: 0; color: var(--color-text); font-size: 0.95rem; }

.cause-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  height: 100%;
}
.cause-card h4 { font-size: 0.98rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem; }
.cause-card h4 i { color: var(--color-warning); }
.cause-card p { margin: 0; font-size: 0.9rem; color: var(--color-muted); }

.tip-box, .warning-box, .note-box {
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.tip-box { background: #F0FDF4; border: 1px solid #BBF7D0; }
.tip-box i { color: var(--color-success); font-size: 1.1rem; margin-top: 0.1rem; }
.warning-box { background: #FFFBEB; border: 1px solid #FDE68A; }
.warning-box i { color: var(--color-warning); font-size: 1.1rem; margin-top: 0.1rem; }
.note-box { background: #F1F5F9; border: 1px solid var(--color-border); }
.note-box i { color: var(--color-muted); font-size: 1.1rem; margin-top: 0.1rem; }
.tip-box strong, .warning-box strong, .note-box strong { display: block; margin-bottom: 0.15rem; color: var(--color-navy); }

.problem-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.problem-table th {
  background: var(--color-navy);
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
}
.problem-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.problem-table th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.problem-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); background: var(--color-white); }
.problem-table tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-sm); }
.problem-table tr:last-child td:last-child { border-radius: 0 0 var(--radius-sm) 0; }

.faq-accordion .accordion-item { border: 1px solid var(--color-border); border-radius: var(--radius-md) !important; margin-bottom: 0.75rem; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 600; color: var(--color-navy); font-size: 0.98rem; }
.faq-accordion .accordion-button:not(.collapsed) { background: #EFF6FF; color: var(--color-primary); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-body { color: var(--color-text); font-size: 0.93rem; }

.related-guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.related-guide {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 0.92rem;
}
.related-guide:hover { border-color: var(--color-primary); color: var(--color-primary); }
.related-guide i { color: var(--color-primary); font-size: 1.1rem; flex-shrink: 0; }

.paa-list { list-style: none; padding: 0; margin: 0; }
.paa-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 0.75rem; overflow: hidden; }
.paa-question {
  width: 100%;
  text-align: left;
  background: var(--color-white);
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.paa-answer { padding: 0 1.25rem 1rem; color: var(--color-muted); font-size: 0.9rem; display: none; }
.paa-item.open .paa-answer { display: block; }
.paa-item.open .paa-chevron { transform: rotate(180deg); }
.paa-chevron { transition: transform 0.15s ease; color: var(--color-muted); }

/* =========================================================
   Search results
   ========================================================= */
.search-results-header { padding: 2rem 0 1rem; }
.search-query-highlight { color: var(--color-primary); }
.search-count { color: var(--color-muted); }

/* =========================================================
   Generic content pages (about/privacy/terms/disclaimer/contact)
   ========================================================= */
.content-page { padding: 3rem 0; }
.content-page h1 { margin-bottom: 1rem; }
.content-page .lead { color: var(--color-muted); }
.content-page h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.content-page ul { padding-left: 1.25rem; }
.content-page-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-label { font-weight: 600; color: var(--color-navy); font-size: 0.9rem; }
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--color-border);
  padding: 0.65rem 0.9rem;
}
.form-control:focus, .form-select:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.invalid-feedback { font-size: 0.8rem; }

/* =========================================================
   404 page
   ========================================================= */
.error-page { padding: 5rem 0; text-align: center; }
.error-code { font-size: 6rem; font-weight: 800; color: var(--color-primary); line-height: 1; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-navy); color: #CBD5E1; padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.footer-brand .brand-name { color: #fff; font-weight: 800; }
.footer-desc { color: #94A3B8; font-size: 0.88rem; max-width: 320px; }
.footer-heading { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: #94A3B8; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.1); margin: 2rem 0 1.25rem; }

/* Utility */
.text-primary-custom { color: var(--color-primary) !important; }
.bg-soft-blue { background: #EFF4FF; }
.shadow-card { box-shadow: var(--shadow-card); }
.rounded-card { border-radius: var(--radius-lg); }

/* Popup Trigger Button */
.popup-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff !important;
    border: none;
    padding: 8px 22px !important;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    cursor: pointer;
}

.popup-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    color: #fff !important;
    background: linear-gradient(135deg, #0a58ca, #084298);
}

/* Contact Popup */
.contact-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.contact-popup-overlay.active {
    display: flex;
}

.contact-popup {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-popup-header {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    padding: 30px 30px 25px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.contact-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.contact-popup-header .popup-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-popup-header h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.contact-popup-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.contact-popup-body {
    padding: 25px 30px 30px;
}

.contact-popup-body .form-group {
    margin-bottom: 18px;
}

.contact-popup-body label {
    font-weight: 600;
    font-size: 13px;
    color: #2d3748;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.contact-popup-body label .required {
    color: #dc3545;
    font-size: 16px;
}

.contact-popup-body .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.contact-popup-body .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    background: #ffffff;
}

.contact-popup-body .form-control.is-invalid {
    border-color: #dc3545;
}

.contact-popup-body textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.contact-popup-body .btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.contact-popup-body .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.35);
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px 10px;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.success-message .success-icon {
    font-size: 60px;
    color: #28a745;
    margin-bottom: 15px;
}

/* Floating Button */
.floating-ask-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.floating-ask-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.5);
}

@keyframes pulse {
    0% { box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4); }
    50% { box-shadow: 0 8px 50px rgba(13, 110, 253, 0.6); }
    100% { box-shadow: 0 8px 30px rgba(13, 110, 253, 0.4); }
}

.floating-ask-btn .tooltip-text {
    position: absolute;
    right: 70px;
    background: #2d3748;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-ask-btn:hover .tooltip-text {
    opacity: 1;
}

@media (max-width: 991px) {
    .popup-trigger-btn {
        width: 100%;
        justify-content: center;
        margin: 8px 0;
    }
}

@media (max-width: 576px) {
    .contact-popup {
        width: 95%;
        border-radius: 16px;
    }
    .contact-popup-header {
        padding: 25px 20px 20px;
        border-radius: 16px 16px 0 0;
    }
    .contact-popup-header h3 {
        font-size: 19px;
    }
    .contact-popup-body {
        padding: 20px;
    }
    .floating-ask-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}
