/* ==========================================================================
   AgFoodClassifieds.com - Core Stylesheet
   ========================================================================== */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

/* --- Custom Variables & Tokens --- */
:root {
  --primary-green: #234B2A;
  --secondary-green: #3A7D44;
  --accent-gold: #D4A017;
  --dark-navy: #111827;
  --background-slate: #F8FAFC;
  --white: #FFFFFF;
  --text-muted: #6B7280;
  --text-body: #374151;
  
  --border-color: rgba(17, 24, 39, 0.08);
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  --shadow-sm: 0 1px 3px 0 rgba(17, 24, 39, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(17, 24, 39, 0.05), 0 2px 4px -2px rgba(17, 24, 39, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(17, 24, 39, 0.04), 0 4px 6px -4px rgba(17, 24, 39, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(17, 24, 39, 0.06), 0 8px 10px -6px rgba(17, 24, 39, 0.06);
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Resets & Defaults --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark-navy);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-green);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--secondary-green);
}

/* --- Common UI Components --- */

/* Buttons */
.btn-primary-ag {
  background-color: var(--primary-green);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--primary-green);
  transition: var(--transition-smooth);
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-ag:hover {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-ag {
  background-color: transparent;
  color: var(--primary-green) !important;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1.5px solid var(--primary-green);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary-ag:hover {
  background-color: rgba(35, 75, 42, 0.05);
  transform: translateY(-1px);
}

.btn-gold-ag {
  background-color: var(--accent-gold);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--accent-gold);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold-ag:hover {
  background-color: #be8e12;
  border-color: #be8e12;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-dark-ag {
  background-color: var(--dark-navy);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 500;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--dark-navy);
  transition: var(--transition-smooth);
}

.btn-dark-ag:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

/* Badges */
.badge-ag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 50px;
  background-color: rgba(35, 75, 42, 0.08);
  color: var(--primary-green);
  font-family: var(--font-body);
}

.badge-gold {
  background-color: rgba(212, 160, 23, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(212, 160, 23, 0.2);
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--border-radius-sm);
}

/* --- Section Formatting --- */
.section-padding {
  padding: 1.75rem 0 4.5rem; /* Highly optimized: shrunken top-side space */
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 1.25rem 0 3rem;
  }
}

.section-title-wrap {
  margin-bottom: 2.25rem;
}

.section-subtitle {
  color: var(--accent-gold);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  max-width: 650px;
  font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navbar Style
   ========================================================================== */
.navbar-agtech {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  transition: var(--transition-smooth);
}

.navbar-brand-ag {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--dark-navy) !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  margin: 0;
  padding: 0;
  letter-spacing: -0.03em;
}

.brand-dot {
  color: var(--accent-gold);
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.nav-link-ag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.925rem;
  color: #4b5563 !important;
  padding: 0.5rem 0.9rem !important;
  position: relative;
  transition: var(--transition-smooth);
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.nav-link-ag::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background-color: var(--primary-green);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.nav-link-ag:hover {
  color: var(--primary-green) !important;
}

.nav-link-ag:hover::after,
.nav-link-ag.active::after {
  transform: scaleX(1);
}

.nav-link-ag.active {
  color: var(--primary-green) !important;
  font-weight: 600;
}

/* Ensure vertical alignment and prevent wrapping across viewports */
.navbar-agtech .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.navbar-collapse {
  align-items: center !important;
}

.navbar-nav {
  align-items: center !important;
}

@media (min-width: 992px) and (max-width: 1250px) {
  .nav-link-ag {
    padding: 0.5rem 0.55rem !important;
    font-size: 0.85rem !important;
  }
  .navbar-brand-ag {
    font-size: 1.3rem !important;
  }
  .btn-primary-ag {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
}

/* Custom Mobile Toggler - Zero Icons */
.navbar-toggler-ag {
  border: none;
  background: transparent;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.navbar-toggler-ag span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark-navy);
  transition: var(--transition-smooth);
}

.navbar-toggler-ag:not(.collapsed) span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-toggler-ag:not(.collapsed) span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler-ag:not(.collapsed) span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ==========================================================================
   Hero Section - Clean Modern Full-Width Layout (Centered & Powerful)
   ========================================================================== */
.hero-section {
  background-color: var(--white);
  padding: 2.25rem 0 3.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 1.5rem 0 2rem;
  }
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-green);
  background-color: rgba(35, 75, 42, 0.06);
  padding: 0.45rem 1.35rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.035em;
  color: var(--dark-navy);
  max-width: 1050px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 3.25rem;
    letter-spacing: -0.03em;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.35rem;
    line-height: 1.15;
  }
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .hero-desc {
    font-size: 1.1rem;
    margin-bottom: 2.25rem;
  }
}


/* ==========================================================================
   Featured Categories Section
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1199.98px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479.98px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(35, 75, 42, 0.15);
}

.category-num {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.category-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-navy);
}

.category-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  color: var(--primary-green);
}

.category-link::after {
  content: ' \2192'; /* Minimal clean CSS arrow sign */
  margin-left: 4px;
  transition: var(--transition-smooth);
}

.category-card:hover .category-link {
  color: var(--secondary-green);
}

.category-card:hover .category-link::after {
  transform: translateX(4px);
}


/* ==========================================================================
   Featured Listings Section (Classified Marketplace Premium Cards)
   ========================================================================== */
.listing-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(35, 75, 42, 0.1);
}

.listing-image-placeholder {
  height: 190px;
  background-color: #f3f4f6;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stylized placeholder pattern to feel premium with zero assets loaded */
.listing-placeholder-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  background-image: radial-gradient(var(--primary-green) 1px, transparent 0), radial-gradient(var(--primary-green) 1px, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

.listing-placeholder-label {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--primary-green);
  background-color: rgba(35, 75, 42, 0.08);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.listing-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.listing-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.listing-region {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f3f4f6;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.listing-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.listing-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.listing-footer {
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.listing-status {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #856404;
  background-color: rgba(212, 160, 23, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(212, 160, 23, 0.15);
  letter-spacing: 0.05em;
}

.listing-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  display: inline-flex;
  align-items: center;
}

.listing-link::after {
  content: ' \2192';
  margin-left: 4px;
}


/* ==========================================================================
   Legacy Features (Why Platform / Regions Boxes - Retained for Compatibility)
   ========================================================================== */
.why-section {
  background-color: var(--background-slate);
}

.feature-block {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 3rem 2.5rem;
  height: 100%;
  transition: var(--transition-smooth);
}

.feature-block:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(35, 75, 42, 0.12);
}

.feature-num {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  color: rgba(35, 75, 42, 0.08);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-block:hover .feature-num {
  color: rgba(35, 75, 42, 0.2);
  transform: scale(1.05);
  display: inline-block;
}

.feature-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.focus-section {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.region-box {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  background-color: var(--background-slate);
  transition: var(--transition-smooth);
}

.region-box:hover {
  background-color: var(--white);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-md);
}

.region-country-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0.5rem;
  background-color: rgba(35, 75, 42, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.region-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
}

.region-stats {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}


/* ==========================================================================
   Call To Action (CTA) Banner Style (Global Agriculture Look)
   ========================================================================== */
.cta-section {
  background-color: var(--dark-navy);
  padding: 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-wrap {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--white);
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

@media (max-width: 767.98px) {
  .cta-title {
    font-size: 2rem;
  }
}

.cta-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

@media (max-width: 575.98px) {
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Custom premium architectural visual accents with zero image loaders */
.cta-shape-left {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 50%;
  height: 200%;
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  transform: rotate(15deg);
  pointer-events: none;
}

.cta-shape-right {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50%;
  height: 200%;
  border-left: 1px solid rgba(255, 255, 255, 0.02);
  transform: rotate(15deg);
  pointer-events: none;
}


/* ==========================================================================
   Footer Style
   ========================================================================== */
.footer-ag {
  background-color: var(--dark-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--white) !important;
  display: inline-block;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.footer-about-text {
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 0.75rem;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.footer-links-list a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

@media (max-width: 767.98px) {
  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-bottom-links a:hover {
  color: var(--white);
}


/* ==========================================================================
   Form Styling (Deep Forest Green Theme - Retained and Standardized)
   ========================================================================== */
.form-section-dark {
  background-color: #1a3a21; /* Tailored high-trust forest dark green */
  padding: 5rem 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 3rem;
  text-transform: uppercase;
  text-align: center;
}

.form-group-custom {
  position: relative;
  margin-bottom: 0.5rem;
}

.form-label-custom {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.25rem;
  display: block;
}

.form-control-underline {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 !important;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-control-underline:focus {
  background: transparent !important;
  border-bottom: 1.5px solid var(--white) !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-control-underline::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Custom Select Underline Dropdown */
.form-select-underline {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 !important;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right center !important;
  background-size: 12px 12px !important;
}

.form-select-underline option {
  background-color: #1a3a21;
  color: var(--white);
}

/* Custom File Upload block */
.custom-file-upload-block {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.custom-file-upload-block:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
}

.file-title-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
}

.file-trigger-btn {
  background-color: var(--primary-green);
  border: 1px solid var(--primary-green);
  color: var(--white);
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: var(--transition-smooth);
}

.file-trigger-btn:hover {
  background-color: var(--secondary-green);
}

.file-chosen-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 0.5rem;
}

/* Mock reCAPTCHA Box */
.mock-captcha-container {
  background-color: #222222;
  border: 1px solid #333333;
  border-radius: 3px;
  padding: 0.75rem 1rem;
  width: 300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.captcha-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  cursor: pointer;
  background-color: #fff;
  transition: all 0.2s;
  position: relative;
}

.captcha-checkbox.checked {
  background-color: #fff;
  border-color: #fff;
}

.captcha-checkbox.checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid var(--secondary-green);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #fff;
  user-select: none;
}

.captcha-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.captcha-logo-mock {
  width: 22px;
  height: 22px;
  border: 3.5px solid #1a73e8;
  border-right-color: transparent;
  border-radius: 50%;
  position: relative;
  transform: rotate(-45deg);
}

.captcha-logo-mock::before {
  content: '';
  position: absolute;
  right: -3px;
  top: -1px;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent #1a73e8;
  transform: rotate(45deg);
}

.captcha-subtext {
  font-size: 8px;
  color: #9b9b9b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Red Submit Button */
.btn-submit-red {
  background-color: #C62828 !important;
  border: 1px solid #C62828 !important;
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 0.9rem 2.5rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.btn-submit-red:hover {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.25);
}

/* ==========================================================================
   Home Search Form Container (Forest Green Theme)
   ========================================================================== */
.search-container {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  margin-top: 2.25rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.search-title-bar {
  background: linear-gradient(135deg, var(--primary-green), #1b3a21);
  color: var(--white);
  padding: 1.15rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  border-bottom: 3px solid var(--accent-gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-title-bar svg {
  color: var(--accent-gold);
}

.search-form-body {
  padding: 2rem;
}

.search-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
  gap: 1.25rem;
  align-items: end;
}

@media (max-width: 991.98px) {
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
}

.search-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-field-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--dark-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.search-input-custom {
  background-color: #f8fafc !important;
  border: 1px solid rgba(17, 24, 39, 0.1) !important;
  color: var(--dark-navy) !important;
  border-radius: var(--border-radius-sm) !important;
  padding: 0.75rem 1rem !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  width: 100%;
}

.search-input-custom:focus {
  background-color: var(--white) !important;
  border-color: var(--secondary-green) !important;
  box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.15) !important;
  outline: none !important;
}

.search-input-custom::placeholder {
  color: #9ca3af;
}

.search-select-custom {
  background-color: #f8fafc !important;
  border: 1px solid rgba(17, 24, 39, 0.1) !important;
  color: var(--dark-navy) !important;
  border-radius: var(--border-radius-sm) !important;
  padding: 0.75rem 1.75rem 0.75rem 1rem !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 10px 10px !important;
}

.search-select-custom:focus {
  background-color: var(--white) !important;
  border-color: var(--secondary-green) !important;
  box-shadow: 0 0 0 3px rgba(58, 125, 68, 0.15) !important;
}

.search-btn-container {
  margin-top: 1.5rem;
}

.search-btn-full {
  background-color: var(--secondary-green);
  border-color: var(--secondary-green);
  color: var(--white) !important;
  width: 100%;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--secondary-green);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.search-btn-full:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Collapsible advanced section */
.advanced-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 1.25rem;
  transition: var(--transition-smooth);
  user-select: none;
  text-decoration: none !important;
}

.advanced-trigger:hover {
  color: var(--primary-green);
}

.advanced-trigger svg {
  transition: var(--transition-smooth);
}

.advanced-trigger.active svg {
  transform: rotate(180deg);
  color: var(--primary-green);
}

.advanced-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
  background-color: #f8fafc;
  border-radius: var(--border-radius-sm);
}

.advanced-content.show {
  max-height: 200px;
  margin-top: 1rem;
  border: 1px dashed rgba(17, 24, 39, 0.08);
  padding: 1.25rem;
}

.advanced-links-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.advanced-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-navy);
}

.advanced-links {
  display: flex;
  gap: 1rem;
}

.advanced-link-item {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-green);
  padding: 0.25rem 0.75rem;
  background-color: rgba(35, 75, 42, 0.06);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.advanced-link-item:hover {
  background-color: var(--primary-green);
  color: var(--white) !important;
}

/* Custom indicators */
.text-arrow {
  display: inline-block;
  transition: var(--transition-smooth);
}

a:hover .text-arrow {
  transform: translateX(3px);
}

.bolded {
  font-weight: 600 !important;
}

#advanced-search-fields-wrapper {
  transition: var(--transition-smooth);
  border-top: 1px dashed rgba(17, 24, 39, 0.08);
}

