/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #1e1e1e;
  color: #fcfcfc;
  text-align: center;
  min-height: 100vh;
  padding-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  /* Performance optimizations */
  font-display: swap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Prevent horizontal overflow on mobile */
input, select, textarea, button {
  max-width: 100%;
}

/* Header & Navigation */
header {
  background-color: #fcfcfc;
  color: #1e1e1e;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  /* Optimize for faster rendering */
  contain: layout style;
  will-change: auto;
}

header img {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Reserve space to prevent layout shifts */
  aspect-ratio: 280 / 84; /* Approximate ratio, adjust if needed */
  /* Additional performance optimizations */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

nav {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 99999;
}

/* Cool dropdown navigation */
.nav-dropdown {
  position: relative;
  display: inline-block;
  z-index: 9999;
}

.dropdown-button {
  background-color: #FF6B35;
  color: white;
  padding: 15px;
  font-size: 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  box-shadow: 0 3px 12px rgba(255, 107, 53, 0.3);
}

.dropdown-button:hover {
  background-color: #e55a2b;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.hamburger-icon {
  transition: transform 0.3s ease;
  font-size: 26px;
  font-weight: bold;
}

.nav-dropdown.active .hamburger-icon {
  transform: rotate(90deg);
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}

.nav-dropdown.active .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  color: #333;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  margin: 0;
  border-radius: 0;
  transition: all 0.2s ease;
  background-color: transparent;
}

.dropdown-content a:hover {
  background-color: #FF6B35;
  color: white;
  transform: translateX(5px);
}

.dropdown-content a.current {
  background-color: #f8f9fa;
  color: #FF6B35;
  font-weight: bold;
}

/* FAQ Section Styles */
#faq {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

#faq h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #FF6B35;
  font-size: 2rem;
}

.faq-item {
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px;
  border-left: 4px solid #FF6B35;
  transition: transform 0.2s ease;
}

.faq-item:hover {
  transform: translateX(5px);
}

.faq-item h3 {
  color: #FF6B35;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.faq-item p {
  color: #e0e0e0;
  line-height: 1.6;
  margin: 0;
}

/* Services Grid Styles */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.service-item {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #FF6B35;
}

.service-item h3 {
  color: #FF6B35;
  margin-bottom: 10px;
}

.service-item p {
  color: #e0e0e0;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background-color: #2a2a2a;
  border-radius: 8px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.benefits-list li {
  background-color: #2a2a2a;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 5px;
  border-left: 4px solid #FF6B35;
}

.local-service-area {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  text-align: center;
}

.local-service-area h3 {
  color: #FF6B35;
  margin-bottom: 15px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 15px;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    position: relative;
  }
  
  header img {
    max-width: 250px;
    order: 2;
  }
  
  nav {
    order: 1;
    align-self: flex-start;
    display: block;
    background: none;
  }
  
  .nav-dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropdown-button {
    width: 45px;
    height: 45px;
    font-size: 18px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hamburger-icon {
    font-size: 20px;
  }
  
  .dropdown-content {
    min-width: 180px;
    top: calc(100% + 5px);
    left: 0;
    position: absolute !important;
  }
  
  /* Remove conflicting body/header adjustments from here since they're now above */
  
  /* Contact page mobile fixes */
  .contact-methods {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 20px;
  }
  
  .contact-method {
    padding: 20px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }
  
  .contact-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    flex-shrink: 0;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .contact-method h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  
  .contact-method p {
    margin: 6px 0;
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .contact-hours {
    font-size: 0.9rem;
    margin-top: 12px;
    flex-shrink: 0;
  }
  
  /* Team grid mobile fixes */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  
  .team-member {
    padding: 20px;
  }
  
  .member-avatar {
    font-size: 3rem;
    height: 3rem;
    margin-bottom: 10px;
  }
  
  /* Form mobile fixes */
  .quote-form {
    margin: 20px 10px 0;
    padding: 20px;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group.full-width {
    margin-bottom: 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px;
    font-size: 16px; /* Prevents zoom on iOS */
    width: 100%;
    box-sizing: border-box;
  }
  
  .cta-button {
    width: 100%;
    padding: 15px 24px;
    font-size: 1.1rem;
    margin-top: 15px;
    box-sizing: border-box;
  }
  
  /* Services page mobile fixes */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .coverage-areas {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Values grid mobile fix */
  .values-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .value-item {
    padding: 15px;
  }
  
  /* Section padding adjustments */
  section {
    margin: 30px auto;
    padding: 0 15px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.3rem;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  body {
    padding-top: 60px; /* Adjust for smaller button */
  }
  
  header {
    margin-top: -60px;
    padding-top: 68px;
  }
  
  nav {
    margin: 10px !important;
  }
  
  .dropdown-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
    padding: 10px;
  }
  
  .hamburger-icon {
    font-size: 18px;
  }
  
  .quote-form {
    margin: 15px 5px 0;
    padding: 15px;
    max-width: calc(100vw - 10px);
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 16px;
  }
  
  .contact-method {
    padding: 18px;
    min-height: auto;
  }
  
  .contact-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    height: 2.5rem;
  }
  
  .contact-method h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .contact-method p {
    font-size: 0.95rem;
    margin: 5px 0;
  }
  
  .contact-hours {
    font-size: 0.85rem;
    margin-top: 10px;
  }
  
  .team-member {
    padding: 15px;
  }
  
  section {
    padding: 0 10px;
  }
  
  h1 {
    font-size: 1.6rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  .cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

/* Specific mobile contact methods fix for small screens */
@media (max-width: 600px) {
  .contact-methods {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .contact-method {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px !important;
  }
}

/* Larger desktop screens */
@media (min-width: 1200px) {
  header {
    padding: 20px 50px;
  }
  
  header img {
    max-width: 320px;
  }
  
  nav {
    left: 50px;
  }
  
  .dropdown-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
    padding: 18px;
  }
  
  .hamburger-icon {
    font-size: 30px;
  }
}

/* Sections */
section {
  margin: 40px auto;
  max-width: 800px;
  padding: 0 1rem;
}

h1 {
  margin-top: 20px;
  color: #fcfcfc;
  font-size: 2rem;
}

h2 {
  color: #f57c00;
  margin-top: 20px;
  font-size: 1.5rem;
}

p {
  margin-top: 10px;
  color: #e0e0e0;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: #fcfcfc;
  color: #1e1e1e;
  padding: 10px 0;
  margin-top: 40px;
}

footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer .google-reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #4285f4;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

footer .google-reviews-link:hover {
  background-color: #3367d6;
  transform: translateY(-1px);
  text-decoration: none;
}

footer .google-reviews-link:focus {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
}

footer .google-reviews-link .star-icon {
  font-size: 1.1em;
  color: #fbbf24;
}

@media (min-width: 768px) {
  footer .footer-content {
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
}

/* About Page Specific Styles */
.current {
  background-color: #f57c00;
  padding: 5px 10px;
  border-radius: 3px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.value-item {
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #f57c00;
}

.value-item h3 {
  color: #f57c00;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.value-item p {
  color: #e0e0e0;
  margin: 0;
}

.value-item.centered {
  grid-column: 1 / -1;
  max-width: 400px;
  margin: 0 auto;
}

.cta-button {
  display: inline-block;
  background-color: #f57c00;
  color: #1e1e1e;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.cta-button:hover {
  background-color: #e65100;
  color: #fcfcfc;
}

/* Services Page Styles */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  border-left: 4px solid #f57c00;
  text-align: left;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  text-align: center;
}

.service-card h3 {
  color: #f57c00;
  margin-bottom: 15px;
  font-size: 1.3rem;
  text-align: center;
}

.service-card p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.service-features li {
  color: #e0e0e0;
  margin-bottom: 8px;
  padding-left: 0;
  text-align: left;
}

.additional-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.additional-service {
  background-color: #333;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.additional-service h4 {
  color: #f57c00;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.additional-service p {
  font-size: 0.9rem;
  margin: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  text-align: center;
  padding: 20px;
}

.step-number {
  background-color: #f57c00;
  color: #1e1e1e;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 15px auto;
}

.step h4 {
  color: #f57c00;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
}

.coverage-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 20px;
  justify-items: start;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.area-column ul {
  text-align: left;
  margin: 0;
  list-style: none;
  padding: 0;
  width: 100%;
}

.area-column li {
  color: #e0e0e0;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  text-align: left;
  line-height: 1.4;
}

.area-column li:before {
  content: "📍";
  position: absolute;
  left: 0;
}



/* Contact Page Styles */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.contact-method {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border-left: 4px solid #f57c00;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contact-method h3 {
  color: #f57c00;
  margin-bottom: 15px;
}

.contact-method a {
  color: #fcfcfc;
  text-decoration: none;
  font-weight: bold;
}

.contact-method a:hover {
  color: #f57c00;
}

.contact-hours {
  font-size: 0.9rem;
  color: #b0b0b0;
  margin-top: 10px;
}

.service-area-centered {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.service-area-centered .contact-method {
  max-width: 300px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  align-items: stretch;
}

.team-member {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  border-left: 4px solid #f57c00;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-avatar {
  font-size: 4rem;
  margin-bottom: 15px;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member h3 {
  color: #f57c00;
  font-size: 1.5rem;
  margin-bottom: 5px;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-title {
  color: #b0b0b0;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 0.9rem;
  height: 2.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.member-description {
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: left;
  flex-grow: 1;
}

.member-contact {
  background-color: #333;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 0;
  text-align: left;
  margin-top: auto;
}

.member-contact p {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.member-contact a {
  color: #fcfcfc;
  text-decoration: none;
}

.member-contact a:hover {
  color: #f57c00;
}

.member-specialty {
  font-size: 0.85rem;
  color: #b0b0b0;
  text-align: left;
  border-top: 1px solid #444;
  padding-top: 10px;
}

.quote-form {
  max-width: 600px;
  margin: 30px auto 0;
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

.form-group label {
  color: #f57c00;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #1e1e1e;
  color: #fcfcfc;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f57c00;
}

.error-message {
  display: block;
  color: #ff4444;
  font-size: 0.875rem;
  margin-top: 4px;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #ff4444;
  box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.1);
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
}

.form-group.has-error .error-message {
  opacity: 1;
}

.field-help {
  display: block;
  color: #666;
  font-size: 0.8rem;
  margin-top: 4px;
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.char-count {
  font-size: 0.8rem;
  color: #666;
}

/* Form Messages */
.form-message {
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: slideDown 0.3s ease-out;
}

.form-error-message {
  background-color: #fee;
  color: #c53030;
  border: 1px solid #feb2b2;
  box-shadow: 0 2px 8px rgba(197, 48, 48, 0.1);
}

.form-error-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #c53030;
}

.form-error-message p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #c53030;
  font-weight: 500;
}

.form-error-message ul {
  text-align: left;
  margin: 15px 0;
  padding-left: 20px;
}

.form-error-message li {
  margin: 8px 0;
  color: #c53030;
}

.form-error-message a {
  color: #2b6cb0;
  text-decoration: underline;
}

/* Verification Question Styles */
.verification-question {
  background-color: #2a2a2a;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 20px;
  margin-top: 10px;
  color: #fcfcfc;
}

.verification-question p {
  margin: 0 0 15px 0;
  color: #fcfcfc;
  font-size: 0.95rem;
  line-height: 1.5;
}

.verification-question p:last-of-type {
  margin-bottom: 15px;
  font-weight: 600;
  color: #fcfcfc;
}

.verification-question select {
  width: 100%;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #1e1e1e;
  color: #fcfcfc;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.verification-question select:focus {
  outline: none;
  border-color: #f57c00;
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.1);
}

.form-success-message {
  background-color: #f0fff4;
  color: #2f855a;
  border: 1px solid #9ae6b4;
  box-shadow: 0 2px 8px rgba(47, 133, 90, 0.1);
}

.form-success-message h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #2f855a;
}

.form-success-message p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #2f855a;
  font-weight: 500;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* File Upload Styles */
.custom-file-input {
  position: relative;
  display: inline-block;
}

.file-input-button {
  display: inline-block;
  background-color: #f57c00;
  color: #1e1e1e;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  transition: background-color 0.3s ease;
  margin: 10px 0;
  text-align: left;
  min-width: 200px;
}

.file-input-button:hover {
  background-color: #e65100;
  color: #fcfcfc;
}

.file-input-button:focus {
  outline: none;
  background-color: #e65100;
  color: #fcfcfc;
  box-shadow: 0 0 0 2px rgba(245, 124, 0, 0.3);
}

.form-group input[type="file"] {
  display: none;
}

.file-preview {
  margin-top: 15px;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 8px;
  border: 1px solid #555;
}

.file-preview h4 {
  margin: 0 0 10px 0;
  color: #f57c00;
  font-size: 1rem;
}

.file-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.file-preview li {
  padding: 8px 0;
  border-bottom: 1px solid #444;
  color: #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.file-preview li:last-child {
  border-bottom: none;
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-name {
  font-weight: 500;
}

.file-size {
  font-size: 0.8rem;
  color: #999;
}

.file-error {
  color: #ff4444;
  font-size: 0.8rem;
}

/* Loading states */
.submit-button {
  position: relative;
  overflow: hidden;
}

.cta-button.submit-button {
  /* Ensure consistent styling when both classes are applied */
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.submit-button.loading span:first-child {
  opacity: 0;
}

.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  opacity: 0;
}

.submit-button.loading .loading-spinner {
  opacity: 1;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
  
  .submit-button,
  .dropdown-content,
  .dropdown-button,
  body {
    transition: none !important;
  }
}

/* Focus indicators */
.dropdown-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.submit-button:focus-visible {
  outline: 2px solid #FF6B35;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .dropdown-button,
  .submit-button {
    border: 2px solid;
  }
}

/* Back to Top Button */
.back-to-top-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #FF6B35;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top-button:hover {
  background-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 53, 0.6);
}

.back-to-top-button:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top-button {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Company Information Section for Branded Search */
#company-info {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 2rem;
}

#company-info h2 {
  color: #FF6B35;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

#company-info p {
  margin-bottom: 1rem;
  text-align: left;
  line-height: 1.7;
}

#company-info strong {
  color: #FF6B35;
  font-weight: bold;
}
