/* 
   Arbor Managers - Main Stylesheet
   Author: Arbor Managers Web Team
   Version: 1.0
*/

/* ===== GLOBAL STYLES ===== */
:root {
  /* Color palette */
  --primary-color: #1b4d2a;     /* Dark green */
  --secondary-color: #4caf50;   /* Light green */
  --medium-color: #38893f;        /* Medium green */
  --accent-color: #ff4d00;      /* Wood/orange */
  --light-color: #fefee3;       /* Cream */
  --text-color: #333333;        /* Dark gray */
  --light-gray: #f4f4f4;        /* Light gray background */
  --border-color: #e0e0e0;      /* Border gray */
  
  /* Typography */
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
}

/* ===== UTILITY STYLES ===== */

.primary-color {
  color: var(--primary-color);
}

.secondary-color {
  color: var(--secondary-color);
}

.phone {
  font-size: 1.15rem;
  color: var(--accent-color);
  font-weight:700;
}

/* ===== HEADER ===== */
header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 800;
  padding: 15px 0;
  box-sizing:border-box;
}
header h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.nav-logo {
  display: block;
  height: 50px;
  width: auto;
  max-width: 100%;
}

nav {
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 15px;
  z-index: 1000;
}

nav .nav-item {
  flex:auto;
  min-width: 0;
}

nav ul {
  display:flex;
  list-style: none;
}

nav ul li {
  flex:0 1 auto;
  margin-left: 25px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* ===== DROPDOWN MENU ===== */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 230px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10000;
  list-style: none;
  padding: 0.5rem 0;
  display: flex;
  flex-direction: column; /* Ensure vertical display */
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  margin: 0;
  width: 100%;
}

.dropdown li a {
  padding: 10px 20px;
  display: block;
  color: var(--text-color);
}

.dropdown li a:hover {
  background-color: var(--light-gray);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* ===== LOGO STYLES ===== */

.arborman {
  text-align:center;
  height:100vh;
  padding: 0 15px;
}
.arborman .text-large {
color:#006633;
text-align:center;
margin-top:5vh;
font-size:4.5rem;
}
.arborman .text-medium {
color:#336633;
text-align:center;
font-size:clamp(2.5em , 5vw + 1em, 3.5em);
}
.arborman .text-small {
color:#777777;
text-align:center;
font-size:2.25rem;
font-style:italic;
}
a[href^="tel"]{
color:inherit;
text-decoration:none;
}
.webpage-logo {
width:55em;
height:auto;
}
.top-buttons {
  color: white;
  text-align: center;
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(1.5rem , 2vw, 2rem);
}

h2 {
  font-size: clamp(1.5rem , 2vw, 2rem);
  position: relative;
  margin-bottom: 30px;
  color:var(--secondary-color);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

section {
  padding: 60px 0;
}
.medium-container {
  width:100%;
  max-width: 1100px;
  margin:auto;
  padding-left: 15px;
  padding-right: 15px;
}
.medium-container h2 {
  font-size: 1.5rem;
}
img {
  max-width: 100%;
  height: auto;
}

.commitment-list {
  list-style: none;
  padding-left: 0;
}
.commitment-list li {
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.commitment-list i {
  color: var(--secondary-color);
  margin-right: 0.5rem;
  font-size: 1.1em;
}

.img-overlay-section {
  position: relative;
}
.img-overlay-section img {
  width: 100%;
  display: block;
}
.img-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.img-overlay h2 {
  color: white;
  text-shadow: 0px 5px 5px rgba(0, 0, 0, 0.7);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 28px;
  border-radius: 4px;
  max-width:300px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--medium-color);
  border: 2px solid var(--medium-color);
  color:#ffffff;
}

.btn-urgent {
background-color: #ef5350;
border-color: #ef5350;
}

.btn-urgent:hover {
background-color: #ffffff;
border-color: #ffffff;
color: #ef5350;
}

/* ===== HERO SECTION ===== */
.hero {
  background-image: url('/images/tree-assessments-florida.jpg');
  background-size: cover;
  background-position: left bottom;
  color: white;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 0;
}

/* ===== SITE TOOLS SECTION ===== */
.site-tools {
  background-color: #e3ebe5;
  padding: 2.5rem 1rem;
  text-align: center;
}

.site-tools .container {
  max-width: 600px;
}

.site-tools-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color, #333);
  margin-bottom: 1.25rem;
}

.site-tools .am-search-wrap {
  margin-bottom: 1.25rem;
}

.site-tools-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-witt {
  cursor: pointer;
  font: inherit;
}

.btn-witt i,
.site-tools-buttons .btn-request i {
  margin-right: 6px;
}

.am-tagline-strip {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 0.85rem 1rem;
  text-align: center;
}

.am-tagline-strip p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.am-tagline-strip i {
  margin-right: 0.4rem;
}

.hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.hero h1 {
  font-size: clamp(2rem , 2.5vw, 3rem);
  color: white;
  margin-bottom: 15px;
  text-shadow:0px 5px 5px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  font-size:clamp(1.1em , 1.5vw + 1em, 1.1rem);
}

/* ===== SERVICES SECTION ===== */
#services {
  padding:60px 0;
}
.services {
  text-align: center;
  background-color: var(--light-gray);
}

.services h2 {
  display: inline-block;
  margin-bottom: 40px;
}

.services h2::after {
  margin-left: auto;
  margin-right: auto;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.service {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-10px);
}

.service img,
.service-icon img {
  height: 75px;
  width: 75px;
  object-fit: contain;
  margin-bottom: 14px;
}

.service h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 14px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
}

.service-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--light-gray);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text ul {
  list-style-type: none;
  margin-bottom: 20px;
}

.about-text li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.about-text li i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
  background-color: var(--light-gray);
  text-align: center;
  padding: 160px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.benefit {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.benefit h3 {
  margin-bottom: 15px;
}

/* ===== CTA SECTION ===== */
.cta {
  background-color: rgba(27, 77, 42, 0.9);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta h2 {
  color: white;
}

.cta h2::after {
  background-color: white;
  margin: 10px auto 0;
}

.cta p {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cta .btn {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

.cta .btn:hover {
  background-color: transparent;
  color: white;
}

.cta .btn.secondary-btn {
  background-color: transparent;
  color: white;
  border-color: white;
}

.cta .btn.secondary-btn:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Full-width background, constrained inner */
.cta-split-bg {
  background-color: #f4f8f5;
  border-top: 3px solid #5c8a5f;
  border-bottom: 3px solid #5c8a5f;
  padding: 2rem 1rem;
}

.cta-split-inner {
  display: flex;
  flex-wrap: wrap;
  max-width: 1500px;
  margin: 0 auto;
  align-items: center;
}

/* Image column */
.cta-image {
  flex: 1;
  flex-basis: 600px;
}
.cta-image img {
  border-radius:15px;
  box-shadow: 1px 1px 15px #777;
}

/* Text + form */
.cta-form-content {
  flex: 1 1 55%;
  padding: 1.5rem;
  max-width: 600px;
}

.cta-form-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d3e50;
}

.cta-form-content h3 {
  font-size: 1.3rem;
  color: #385b38;
  margin-top: 2rem;
}

.cta-form-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

#cta-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#cta-form input[type="email"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#cta-form button {
  padding: 0.75rem 1.5rem;
  background-color: #5c8a5f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#cta-form button:hover {
  background-color: #466b47;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-split-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-form-content,
  .cta-image {
    flex: 1 1 100%;
    padding: 1rem 0;
  }
}

@media (max-width: 1100px) {
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-column p {
  color: #ccc;
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #ccc;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: white;
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

address p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #ccc;
}

address i {
  margin-right: 10px;
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #999;
  font-size: 0.9rem;
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  transform: translateY(-30px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1.8rem;
  color: #aaa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal h2 {
  margin-bottom: 15px;
}

.modal p {
  margin-bottom: 25px;
  color: #666;
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--body-font);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 1200px) {
  .nav-logo {
    height: 42px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav.active ul {
    display: flex;
  }

  nav ul li {
    margin: 0;
  }

  nav ul li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.open .dropdown {
    max-height: 500px;
  }

  .dropdown li a {
    padding-left: 40px;
  }

  .phone-text {
    display: none;
  }

  .phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #fff;
  }

  .phone a i {
    margin: 0;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .nav-logo {
    height: 38px;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .site-tools-buttons {
    flex-direction: column;
    align-items: center;
  }

  .site-tools-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .benefit {
    padding: 20px;
  }

  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    height: 32px;
  }

  #section {
    padding: 40px 0;
  }

  .container {
    width: 95%;
  }

  .hero {
    height: 200px;
  }

  .modal-content {
    padding: 20px;
    margin: 10% auto;
  }
}

@media (max-width: 400px) {
  nav {
    gap: 8px;
  }

  .nav-logo {
    height: 26px;
  }
}

/** Basic Sections with section container **/

.section-container {
  display:flex;
  flex-direction:row;
  max-width:1400px;
  width:90%;
  margin:auto;
  gap:50px;
}
.section-col {
  flex:1;
  min-width: 0;
}

@media (max-width: 768px) {
  .section-container {
    flex-direction: column;
  }
}



/* === TRIAGE DASHBOARD SECTION === */
.triage-dashboard {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2)),
    url('/images/ocala/tree-management-planning-ocala-central-florida.jpg');
  background-size: cover;
  padding: 10rem;
}

/* === CONTAINER BOX === */
.triage-dashboard > div {
  flex:auto;
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

/* === HEADLINE === */
.triage-dashboard h1 {
  font-size: 3.75rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

/* === HEADLINE SUPPORTING TEXT === */
.triage-dashboard p:last-of-type {
  font-size: 1.75rem;
  color: #ffffff;
}

/* ===== COMMON TREE ISSUES ===== */

.risk-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.risk-image,
.risk-content {
  flex: 1 1 500px;
}

.risk-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Alternate layout handling */
.risk-image.left {
  order: 1;
}
.risk-content.right {
  order: 2;
}

.risk-content.left {
  order: 1;
}
.risk-image.right {
  order: 2;
}

.risk-content h2 {
  font-size: 1.5rem;
  color: #1b4d2a; /* Arbor dark green */
  margin-bottom: 1rem;
}

.risk-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1rem;
}

/* Mobile layout: stack vertically */
@media (max-width: 768px) {
  .risk-section {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .risk-image.left,
  .risk-image.right,
  .risk-content.left,
  .risk-content.right {
    order: initial;
  }

  .risk-content h2 {
    font-size: 1.5rem;
  }

  .risk-content p {
    font-size: 1rem;
  }
}

#tree-risk-assessment {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f8f9f8;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(27, 77, 42, 0.1);
  color: #1b4d2a;
}

#tree-risk-assessment h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1b4d2a;
}

#tree-risk-assessment form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ===== FOOTER LOGO ===== */
.footer-logo {
  width: 120px;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  display: none;
  align-items: center;
  width: 50px;
  height: 50px;
  background: green;
  color: #ffffff;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  border-radius: 7px;
}
.back-to-top i {
  flex: 1;
  font-size: 2.75rem;
}

/* ===== HONEYPOT (bot trap, hidden from real visitors) ===== */
.am-honeypot {
  display: none;
}

#tree-risk-assessment fieldset {
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 1.5rem;
}

#tree-risk-assessment legend {
  font-weight: bold;
  color: #4caf50;
  padding: 0 10px;
  font-size: 1.1rem;
}

#tree-risk-assessment label {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

#tree-risk-assessment input,
#tree-risk-assessment select {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  margin-top: 0.25rem;
  background-color: #fff;
  color: #1b4d2a;
}

#tree-risk-assessment input:focus,
#tree-risk-assessment select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.4);
}

#tree-risk-assessment button[type="submit"] {
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-self: center;
  transition: background-color 0.3s ease;
}

#tree-risk-assessment button[type="submit"]:hover {
  background-color: #388e3c;
}

/* Responsive */
@media (max-width: 600px) {
  #tree-risk-assessment {
    padding: 1rem;
  }

  #tree-risk-assessment label {
    font-size: 0.9rem;
  }

  #tree-risk-assessment legend {
    font-size: 1rem;
  }
}

/* ============================================================
   SEARCH CSS - Add to style.css
   ============================================================ */

.am-search-wrap {
  position: relative;
  z-index: 500;
}

.am-search-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 8px;
}

.am-search-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--body-font, 'Open Sans', sans-serif);
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  color: var(--text-color);
}

.am-search-input::placeholder {
  color: #999;
}
.am-search-input2 {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--body-font, 'Open Sans', sans-serif);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 6px;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  background: #fff;
  color: var(--text-color, #333);
}

.am-search-input:focus {
  border-color: var(--primary-color, #1b4d2a);
}

.am-search-results {
  position:absolute;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 6px;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  overflow-x: hidden;
  max-height: 400px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.am-search-result {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-color, #eee);
  transition: background 0.1s;
}

.am-search-result:last-child {
  border-bottom: none;
}

.am-search-result:hover {
  background: var(--light-color, #f4f4f4);
}

.am-search-result.am-focused {
  background: var(--light-color, #f4f4f4);
}

.am-search-result-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color, #1b4d2a);
  margin-bottom: 2px;
}

.am-search-result-desc {
  display: block;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.am-search-result.am-focused,
.am-search-result:focus {
  background: var(--light-color);
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
}

.am-search-noresult {
  padding: 14px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
}

.am-search-noresult a {
  color: var(--primary-color, #1b4d2a);
  font-weight: 600;
}

/* Toggle open/close */
.am-search-panel[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .am-search-panel {
    width: calc(100vw - 2rem);
  }
}

/* On mobile make the panel fit the viewport */
@media (max-width: 768px) {
  .am-search-panel {
    #top: 100px; /* adjust to match your header height */
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
  }
}
