@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400&display=swap');

/* Color variables for mental health theme */
:root {
 --primary-color: #5b9aa0; /* Calming teal */
 --secondary-color: #7a9eb1; /* Soft blue */
 --accent-color: #d5a26f; /* Warm accent */
 --button-color: #bad86a; /* Light green from colors.xlsx */
 --navbar-color: #c7e0e8; /* Lighter blue for navbar */
 --header-bg: #e8f4f8; /* Very light blue for headers */
 --text-color: #333;
 --light-bg: #f8f9fa;
 --light-primary-bg: rgba(91, 154, 160, 0.1);
 --light-secondary-bg: rgba(122, 158, 177, 0.1);
 --dark-bg: #2a4a5c;
}

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

body {
 font-family: 'Open Sans', sans-serif;
 background: #fff;
 color: #333;
 line-height: 1.6;
}

ul {
 list-style: none;
}

a {
 color: #333;
 text-decoration: none;
}

h1, h2 {
 font-weight: 300;
 line-height: 1.2;
}

p {
 margin: 10px 0;
}

img {
 width: 100%;
}

/* Common container for all pages */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Button */
.btn {
  cursor: pointer;
  display: inline-block;
  padding: 10px 30px;
  color: #fff;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-dark {
  background: #333;
  color: #fff;
}

.btn-light {
  background: #f4f4f4;
  color: #333;
}

.btn-outline {
  background: transparent;
  border: 1px solid #fff;
}

/* Background color utilities */
.bg-light-primary {
  background: var(--light-primary-bg);
  color: #333;
}

.bg-light-secondary {
  background: var(--light-secondary-bg);
  color: #333;
}

.bg-primary {
  background: var(--primary-color);
  color: #fff;
}

.bg-secondary {
  background: var(--secondary-color);
  color: #fff;
}

.bg-dark {
  background: #333;
  color: #fff;
}

.bg-light {
  background: #f4f4f4;
  color: #333;
}

.bg-transparent {
  background: transparent;
}

/* Text colors */
.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: transparent; /* Default is transparent */
  box-shadow: none; /* No shadow by default */
  color: var(--text-color);
  width: 100%;
  height: 120px;
  position: fixed;
  top: 0;
  padding: 0 55px;
  transition: all 0.3s ease-in-out;
  z-index: 999;
}

/* Only add background when scrolled class is added by JS */
.navbar.scrolled {
  background-color: var(--navbar-color) !important; /* Force background color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important; /* Force shadow */
}

.navbar:not(.top) {
  background-color: var(--navbar-color);
}

.navbar a {
  color: var(--text-color);
  padding: 10px 20px;
  margin: 0 5px;
}

.navbar ul {
  display: flex;
}

.navbar .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.navbar .logo img {
  width: auto;
  height: 95px; /* Increased from 55px to 95px for desktop */
}

.navbar .logo a {
  text-decoration: none;
  border-bottom: none !important;
  pointer-events: auto;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar a:not(.logo a):hover {
  border-bottom: var(--primary-color) 2px solid;
}

.navbar nav ul li a.btn {
  background: var(--button-color);
  color: black;
  border-radius: 25px;
  padding: 10px 20px;
  margin-left: 15px;
  transition: all 0.3s ease;
}

.navbar nav ul li a.btn:hover {
  background: #a8c55a;
  border-bottom: none;
}

/* Page headers */
.page-header {
  padding: 220px 0 60px;
  background-color: var(--header-bg);
  color: var(--text-color);
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-header .container {
  max-width: 900px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 400;
  color: var(--primary-color);
}

.page-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Common page styles */
.page-content {
  padding-top: 180px;
  padding-bottom: 60px;
}

.page-content.services-page,
.page-content.about-page,
.page-content.faqs-page,
.page-content.contact-page {
  padding-top: 80px;
}

/* Home Header */
.home-header {
  min-height: 100vh;
  background-color: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  position: relative;
  padding: 120px 0 60px;
}

.home-header .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Welcome Content Styles */
.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.welcome-icon {
  width: 500px;
  height: 120px;
  margin-bottom: 30px;
}

.welcome-heading {
  font-size: 3rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.welcome-description {
  font-size: 1.5rem;
  margin-bottom: 40px;
  line-height: 1.6;
  color: var(--text-color);
}

.welcome-buttons {
  display: flex;
  gap: 20px;
}

/* Section header */
.section-header {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-header h2 {
  font-size: 40px;
  margin: 20px 0;
}

.section-padding {
  padding: 20px 20px 40px;
}

/* Flex layouts */
.flex-items {
  display: flex;
  text-align: center;
  justify-content: center;
  height: 100%;
}

.flex-items > div {
  padding: 20px;
}

.flex-columns .row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.flex-columns.flex-reverse .row {
  flex-direction: row-reverse;
}

.flex-columns .column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}

.flex-columns .column .column-1,
.flex-columns .column .column-2 {
  height: 100%;
}

.flex-columns img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flex-columns .column-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
}

.flex-columns h2 {
  font-size: 40px;
  font-weight: 100;
}

.flex-columns h4 {
  margin-bottom: 10px;
}

.flex-columns p {
  margin: 20px 0;
}

/* Contact Section */
.contact .column-1.contact-info,
.contact .column-2 {
  padding: 40px;
  height: 100%;
}

.contact .content-wrapper {
  max-width: 400px;
  margin: 0 auto;
}

.contact h2 {
  margin-bottom: 20px;
}

.contact .company-details {
  margin-top: 30px;
}

.contact .company-details h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.contact .contact-details {
  margin-top: 20px;
}

.contact .contact-details p {
  margin: 15px 0;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.contact .contact-details i {
  margin-right: 15px;
  color: var(--primary-color);
  width: 20px;
}

.contact .row {
  display: flex;
  align-items: stretch;
}

.contact .column {
  flex: 1;
}

/* Form Styles */
.callback-form {
  width: 100%;
  padding: 20px 0;
}

.callback-form label {
  display: block;
  margin-bottom: 5px;
}

.callback-form .form-control {
  margin-bottom: 20px;
}

.callback-form input,
.callback-form textarea,
.callback-form select {
  width: 100%;
  padding: 8px;
  border: #f5f5f4 1px solid;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.5;
}

.callback-form input {
  height: 40px;
}

.callback-form select {
  height: 40px;
  background-color: white;
}

.callback-form textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.callback-form input:focus,
.callback-form textarea:focus,
.callback-form select:focus {
  outline-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(91, 154, 160, 0.2);
}

.callback-form .btn {
  width: 100%;
  padding: 12px;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  text-align: center;
  height: 50px;
  line-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callback-form .btn-primary {
  background: var(--primary-color);
}

.callback-form .btn-secondary {
  background: var(--secondary-color);
}

.callback-form .btn-primary:hover {
  opacity: 0.9;
}

.callback-form .btn-secondary:hover {
  opacity: 0.9;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: auto;
  padding: 30px 0;
  background: var(--navbar-color);
  color: var(--text-color);
}

.footer a {
  color: var(--text-color);
}

.footer a:hover {
  color: var(--primary-color);
}

.footer-info {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-info p:last-child {
  font-size: 0.85rem;
  margin-top: 15px;
}

/* Footer Emergency Services Box */
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.footer-left {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.footer-right {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 15px;
  margin: 10px;
  background-color: #f2f2f2;
  border-radius: 10px;
  text-align: left;
}

.footer-right h3 {
  color: #333;
  margin-bottom: 10px;
  font-weight: 500;
}

.footer-right p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.emergency-text {
  font-weight: bold;
  color: #333;
}

/* Footer contact details */
.footer-contact-details {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-contact-details p {
  margin: 5px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.footer-contact-details i {
  color: var(--primary-color);
}

.footer-contact-details a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-contact-details a:hover {
  color: var(--primary-color);
}
.footer-contact-details p:last-child {
  font-size: 1rem;
  margin-top: 0;
  margin: 5px 0;
}

.footer-contact-details i {
  font-size: 1rem;
}

.footer-contact-details .psychology-today-link {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
}

/* Navigation Components */
.menu-icon {
  display: none;
  flex-direction: column;
  width: 30px;
  cursor: pointer;
  z-index: 1001;
}

.menu-icon span {
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: all 0.3s ease;
}

.menu-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active span:nth-child(2) {
  opacity: 0;
}

.menu-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Base Navigation Styles */
.navbar nav ul {
  display: flex;
  align-items: center;
}

.navbar nav ul li {
  position: relative;
}

.dropdown .dropdown-menu,
.dropdown-menu .submenu {
  display: none;
  position: absolute;
  background-color: var(--navbar-color);
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 1000;
}

.dropdown .dropdown-menu {
  top: 100%;
  left: 0;
}

.dropdown-menu .submenu {
  top: 0;
  left: 100%;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

.submenu-item:hover > .submenu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a,
.submenu li a {
  padding: 12px 20px;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar nav ul li a:hover,
.dropdown-menu li a:hover,
.submenu li a:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-bottom: var(--primary-color) 2px solid;
}

/* Overlay Menu */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--navbar-color);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  padding-top: 80px;
  height: 100%;
  overflow-y: auto;
}

.overlay-menu {
  padding: 20px 30px;
}

.overlay-menu a {
  padding: 12px 0;
  font-size: 1.2rem;
  color: var(--text-color);
  text-decoration: none;
  display: block;
}

.overlay-menu a.btn {
  background-color: var(--button-color);
  color: black;
  border-radius: 25px;
  padding: 10px 20px;
  display: inline-block;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.overlay-menu a.btn:hover {
  background-color: #a8c55a;
  border-bottom: none;
}

.overlay-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 30px;
  background: var(--navbar-color);
  z-index: 1001;
}

.overlay-header a {
  height: 60px;
  display: flex;
  align-items: center;
}

.overlay-header img {
  height: 55px;
  width: auto;
}

.overlay-header a:hover {
  border-bottom: none;
  background-color: transparent;
}

/* Mobile Dropdown Menus */
.mobile-submenu,
.mobile-submenu-content {
  padding-left: 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}

.mobile-submenu.active,
.mobile-submenu-content.active {
  max-height: 2000px;
  opacity: 1;
  transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
}

/* Dropdown Triggers */
.dropdown-trigger i,
.submenu-trigger i {
  transition: transform 0.3s ease;
}

.dropdown-trigger.active i,
.submenu-trigger.active i {
  transform: rotate(180deg);
}

/* Close Button */
.close-btn {
  position: relative;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close-btn::before,
.close-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  top: 50%;
  left: 0;
  transition: all 0.3s ease;
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

.close-btn:hover {
  transform: rotate(90deg);
}

/* Service Page Styles */
.service-section {
  margin-bottom: 40px; /* Reduced from 50px */
  padding-bottom: 25px; /* Reduced from 30px */
  border-bottom: 1px solid #eaeaea;
}

.service-section:last-child {
  border-bottom: none;
}

.content-block {
  margin-bottom: 15px; /* Reduced from 20px */
}

.content-block p {
  margin-bottom: 8px; /* Reduced from 15px */
  font-size: 1.1rem;
  line-height: 1.6;
}

.section-title {
  margin-top: 40px;
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 400;
}

/* Service with icon layout */
.service-with-icon {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 20px;
}

.service-icon-container {
  flex: 0 0 250px;
}

.service-icon-container img {
  width: 100%;
  max-width: 250px;
}

.service-content {
  flex: 1;
}

/* Conditions and services grid containers */
.conditions-grid,
.services-grid {
  margin: 10px 0 30px;
}

/* Two-column list - more compact layout */
.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px; /* Reduced vertical and horizontal gap */
  list-style-type: disc;
  padding-left: 20px;
  margin: 8px 0; /* Reduced from 15px */
}

.two-column-list li {
  margin-bottom: 5px; /* Reduced from 10px */
  font-size: 1.05rem;
  line-height: 1.4; /* Control line height for better spacing */
}

/* More compact styling for services list */
.services-compact li {
  margin-bottom: 4px;
  line-height: 1.3;
}

/* Legacy services list for backward compatibility */
.services-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 15px 0 20px;
}

.services-list li {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* Virtual benefits grid */
.virtual-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 30px 0;
}

.benefit-item {
  background-color: var(--light-secondary-bg);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.benefit-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.benefit-item h4 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

/* Insurance layout */
.insurance-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 20px;
}

.insurance-text-section {
  flex: 1;
}

.insurance-icon-container {
  flex: 0 0 250px;
}

.insurance-icon-container img {
  width: 100%;
  max-width: 250px;
}

.insurance-info {
  background-color: var(--light-primary-bg);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
}

.insurance-note {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 5px;
}

.insurance-note i {
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* About Page Styles */
.about-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
}

.about-text {
  flex: 2;
}

.philosophy-section {
  margin-top: 40px;
  margin-bottom: 40px;
  background-color: var(--light-primary-bg);
  padding: 30px;
  border-radius: 10px;
}

.philosophy-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

/* FAQs Page Styles */
.faqs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 40px 0;
}

.faq-item {
  background-color: var(--light-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 500;
}

.faq-answer p {
  line-height: 1.6;
}

.faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Contact Page Styles */
section.page-content.contact-page {
  padding-top: 100px !important;
}

.contact-page .container {
  max-width: 1000px;
}

.appointment-request {
  text-align: center;
  margin-bottom: 50px;
  margin-top: 20px;
}

.contact-heading {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 400;
}

.contact-subheading {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-subheading a {
  color: var(--primary-color);
  font-weight: 500;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
}

.contact-form-container {
  background-color: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
}

.contact-information {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card,
.states-served {
  background-color: var(--light-secondary-bg);
  padding: 30px;
  border-radius: 10px;
}

.contact-card h3,
.states-served h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.states-notice {
  margin-bottom: 20px;
  font-style: italic;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.states-grid ul {
  list-style: none;
  padding: 0;
}

.states-grid li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.states-grid i {
  margin-right: 10px;
  color: var(--primary-color);
}

.profile-link h4 {
  margin-bottom: 10px;
  color: #555;
}

.psychology-today-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-color);
  font-weight: 500;
}

.psychology-today-link i {
  margin-right: 5px;
}

/* CTA container */
.cta-container {
  text-align: center;
  margin-top: 40px;
}

.cta-container p {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.cta-container .btn {
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* Center headings on specific pages */
.services-page .section-title,
.faqs-page .section-title {
  text-align: center;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Keep about page section titles left-aligned */
.about-text .section-title {
  text-align: left;
}

/* Rates Grid Styling */
.rates-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0;
}

.rate-box {
  flex: 1;
  background-color: var(--light-primary-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rate-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.rate-box i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.rate-box h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 15px;
  min-height: 60px; /* Ensures alignment of prices */
  display: flex;
  align-items: center;
  justify-content: center;
}

.rate-price {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 15px 0;
}

.rate-note {
  font-size: 0.9rem;
  color: var(--text-color);
  font-style: italic;
  margin-top: 5px;
}

/* Headway Button Styling */
.headway-button-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 60px;
}

.btn-headway {
    background-color: var(--button-color); /* Light green from colors.xlsx */
    color: black;
    font-weight: 500;
    border-radius: 25px;
    padding: 15px 30px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 220px;
}

.btn-headway:hover {
    background-color: #a8c55a; /* Slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.btn-headway i {
    font-size: 1.2rem;
}

/* Contact Section Styling */
.contact-section {
  margin-top: 20px;
  border-top: 1px solid #eaeaea;
  padding-top: 50px;
}

/* Center only the heading and subheading, not the entire form */
.contact-section .contact-heading,
.contact-section .contact-subheading {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-section .contact-subheading {
  margin-bottom: 40px;
}

.contact-wrapper {
  text-align: left;
}

/* Form validation styles */
.form-control {
  position: relative;
  margin-bottom: 20px;
}

.form-control label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control .required {
  color: #e74c3c;
  margin-left: 3px;
}

.form-control.error input,
.form-control.error select,
.form-control.error textarea {
  border: 1px solid #e74c3c;
  background-color: rgba(231, 76, 60, 0.05);
}

.form-control .error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  position: absolute;
  bottom: -18px;
  left: 0;
  display: none;
}

.form-control.error .error-message {
  display: block;
}


/* Form loading state */
.form-loading {
  position: relative;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.form-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Media Queries */
@media (max-width: 1200px) {
  .pricing-information {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-left, .footer-right {
    width: 100%;
    max-width: 800px;
    margin: 10px auto;
  }
  
  .footer-right {
    margin-top: 30px;
  }
}

@media (max-width: 992px) {
  .welcome-heading {
    font-size: 2.5rem;
  }
  
  .welcome-description {
    font-size: 1.3rem;
  }
  
  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }
  
  .expertise-grid,
  .virtual-benefits,
  .faqs-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .about-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin-top: 20px;
  }
  
  .about-image {
    padding: 5px;
    margin-bottom: 0;
  }
  
  .about-image img {
    max-height: 300px;
    margin: 5px 0;
  }
  
  .about-text .section-title {
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* Service with icon responsive */
  .service-with-icon, .insurance-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .service-icon-container, .insurance-icon-container {
    margin: 0 0 20px 0;
  }
  
  /* Two-column list adjustments for tablets */
  .two-column-list {
    gap: 5px 20px;
  }
  
  .service-icon-container {
    flex: 0 0 200px; /* Slightly smaller on tablets */
  }
  
  /* Add some padding to the services page container on mobile */
  .page-content.services-page .container {
    padding: 0 15px;
  }

  .rates-grid {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .rate-box {
    flex: 0 0 calc(50% - 10px);
    margin-bottom: 20px;
  }
  
  .rate-box h4 {
    min-height: auto;
  }

  .expertise-grid,
  .virtual-benefits,
  .faqs-grid,
  .contact-wrapper,
  .rates-grid {
    grid-template-columns: 1fr;
  }
  
}

@media (max-width: 795px) {
  .navbar {
    height: 80px;
    padding: 0 30px;
  }

  .navbar .logo {
    height: 60px;
  }

  .navbar .logo img {
    height: 55px;
    width: auto;
  }

  .navbar nav {
    display: none;
  }

  .navbar .logo a {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .navbar a {
    padding: 10px 10px;
    margin: 0 3px;
  }

  .flex-items {
    flex-direction: column;
  }

  .flex-columns .row {
    flex-direction: column;
  }
  
  .flex-columns.flex-reverse .row {
    flex-direction: column;
  }
  
  .page-header {
    padding: 140px 0 30px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-content {
    padding-top: 80px;
  }

  .page-content,
  .page-content.services-page,
  .page-content.about-page,
  .page-content.faqs-page,
  .page-content.contact-page {
    padding-top: 60px;
  }

  .home-header {
    padding: 100px 0 40px;
  }

  .menu-icon {
    display: flex;
    align-items: center;
  }

  .contact .row {
    flex-direction: column;
  }

  .contact .column {
    width: 100%;
  }

  /* Target the specific h2 inside column-2 with bg-light class */
  .column-2.bg-light h2 {
    text-align: center;
    width: 100%;
  }

  .contact .company-details,
  .contact .content-wrapper {
    text-align: center;
  }

  .contact .contact-details p {
    justify-content: center;
  }

  /* Mobile menu specific styles */
  .mobile-submenu,
  .mobile-submenu-content {
    display: none;
    padding-left: 1rem;
  }

  .mobile-submenu.active,
  .mobile-submenu-content.active {
    display: block;
  }

  .menu-icon,
  .close-btn {
    display: flex;
    align-items: center;
  }

  .overlay-header {
    height: 80px;
  }

  .overlay-header a {
    height: 70px;
    display: flex;
    align-items: center;
  }

  .overlay-header img {
    height: 55px;
    width: auto;
  }
  
  .welcome-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .welcome-buttons .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 2rem;
  }

  section.page-content.about-page {
    padding-top: 80px !important;
  }

  section.page-content.contact-page {
    padding-top: 80px !important;
  }

  .contact-heading {
    font-size: 2rem;
  }
  
  .contact-subheading {
    font-size: 1.1rem;
  }
  
  .footer-right {
    margin: 20px 10px;
    text-align: center;
  }
  
  /* Center align footer content on mobile */
  .footer-left {
    text-align: center;
  }
  
  .footer-contact-details {
    align-items: center;
  }
  
  .footer-contact-details p {
    justify-content: center;
  }
  
  /* Keep two columns on moderately small screens */
  .two-column-list {
    gap: 4px 18px;
  }
  
  .two-column-list li {
    font-size: 0.95rem;
    margin-bottom: 3px;
  }
}

@media (max-width: 768px) {
  .rates-grid {
    flex-direction: column;
  }
  
  .rate-box {
    flex: 0 0 100%;
    margin-bottom: 20px;
  }

  .headway-button-container {
    margin: 20px 0 40px;
  }

  .btn-headway {
      width: 100%;
      max-width: 300px;
  }

  .contact-section {
      padding-top: 40px;
  }

}

@media (max-width: 576px) {
  /* Convert to single column only on very small screens */
  .two-column-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  
  .two-column-list li {
    margin-bottom: 4px;
  }
  
  .service-icon-container {
    flex: 0 0 160px; /* Even smaller on mobile */
  }
  
  .expertise-item,
  .benefit-item {
    padding: 20px 15px;
  }
  
  .welcome-icon {
    width: 90px;
    height: 90px;
  }
  
  .welcome-heading {
    font-size: 2rem;
  }
  
  .welcome-description {
    font-size: 1.1rem;
  }

  .about-wrapper {
    gap: 10px; /* Even less gap for smallest screens */
  }
  
  .about-image img {
    max-height: 250px; /* Smaller on very small screens */
  }
  
  .footer-right {
    padding: 15px;
  }

  /* Even smaller font for very small screens */
  .two-column-list li,
  .services-list li {
    font-size: 0.95rem;
  }
  
  /* Make service section title even smaller */
  .services-page .section-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .btn-headway {
      font-size: 1rem;
      padding: 12px 25px;
  }

}