@import url("./theme.css");
@import url("./header-footer.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

body h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--color-primary);
}
body p,
ul li {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

#mid {
  background-color: var(--color-primary);
  border-left: 10px solid white;
}
#logo {
  background-color: var(--color-primary);
  color: white;
  font-size: 45px;
}
.para {
  color: var(--color-primary);
  font-size: 50px;
}
.account-section {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
}
.account-header {
  background-color: var(--color-primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
  padding: 0.8rem;
  border-radius: 6px 6px 0 0;
}
.account-links a {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #007a87;
  text-decoration: none;
  margin: 1rem 0;
}
.account-links a:hover {
  text-decoration: underline;
}
.divider {
  border-left: 2px solid #ccc;
}

footer {
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 40px 0 20px;
  font-size: 14px;
}
.footer-logo {
  font-size: 100px;
  color: var(--color-primary); /* Green color like in screenshot */
  font-weight: bold;
}
.footer-links a {
  display: block;
  margin-bottom: 8px;
  color: #000;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid #ddd;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 12px;
  color: #666;
  text-align: center;
}
.dropdown-menu.mega-menu {
  width: 100%;
  left: 0;
  right: 0;
  padding: 2rem;
  border: none;
  border-radius: 0;
}
.mega-menu h6 {
  font-weight: bold;
}
.mega-menu a {
  text-decoration: none;
  display: block;
  margin: 5px 0;
  color: #333;
}
.mega-menu a:hover {
  color: var(--color-primary); /* green hover */
}
/* Responsive fix */
@media (max-width: 768px) {
  .dropdown-menu.mega-menu {
    padding: 1rem;
  }
}
.plan-card {
  border: 1px solid #e5e5e5;
  /* border-radius: 6px; */
  transition: all 0.3s ease-in-out;
  height: 100%;
}
.plan-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.arrow-btn {
  background-color: #007c89;
  color: #fff;
  padding: 8px 12px;
  width: 70px;
  border-radius: 0;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.arrow-btn:hover {
  background-color: #005f63;
}
h2.section-title {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
}
.why-choose {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}
.why-choose h2 {
  color: var(--color-primary);
  font-weight: bold;
  margin-bottom: 20px;
}
.why-choose a {
  text-decoration: none;
  font-weight: 600;
}
.card-custom {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  padding: 20px;
}
/* .card-custom:hover {
      transform: translateY(-10px);
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    } */

.get-started {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}
.get-started h2 {
  color: var(--color-primary);
  /* font-weight: bold; */
  margin-bottom: 40px;
}
.option-box {
  padding: 30px 20px;
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
}

.icon-circle {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 30px;
  color: #333;
  transition: all 0.3s ease; /* smooth animation */
}
.icon-circle:hover {
  border: 5px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4); /* green soft shadow */
}
.btn-custom {
  background-color: #5a1e76;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 10px 20px;
  margin-top: 15px;
}
.accordion-button {
  background-color: #dfdcdc;
}

.accordion-button:hover {
  background-color: var(--color-primary-active); /* green */
  color: #fff; /* white text */
}

/* Change when accordion is open */
/* .accordion-button:not(.collapsed) {
      background-color: #4b8336;   /* darker green */
/* color: #fff; */
/* } */
.hero {
  position: relative;
  background: url("../images/formbg.png") no-repeat center center/cover;
  height: 70vh;
  padding: 2rem 1rem;
  border-radius: 12px;
  display: flex;
  justify-content: center; /* center card */
  align-items: center;
}

.form-overlay {
  background: #fff;
  border-radius: 0px 0px 0px 25px;
  border-top: 5px solid green;
  padding: 2rem;
  width: 100%;
  max-width: 700px; /* fixed size for desktop */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.hero1 {
  position: relative;
  background: url("../images/vision2.png") no-repeat center center/cover;
  height: 70vh;
  padding: 2rem 1rem;
  /* border-radius: 12px ; */
  display: flex;
  justify-content: center; /* center card */
  align-items: center;
}
.hero2 {
  position: relative;
  background: url("../images/medicaid19.png") no-repeat center center/cover;
  height: 70vh;
  padding: 2rem 1rem;
  /* border-radius: 12px; */
  display: flex;
  justify-content: center; /* center card */
  align-items: center;
}
/* Mobile tweaks */
@media (max-width: 576px) {
  .form-overlay {
    padding: 1.2rem;
    width: 100%; /* full width inside hero */
  }
  .form-overlay h1 {
    font-size: 1.4rem;
    line-height: 1.6rem;
  }
  .form-overlay p {
    font-size: 0.9rem;
  }
  .btn-lg {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem;
  }
}

/* serch box */

.search-box {
  display: none;
  transition: all 0.3s ease-in-out;
}

.search-box.active {
  display: inline-block;
}

/* contact button */
.btncontact {
  color: #fff;
  background: linear-gradient(
    to right,
    var(--color-primary-grad-1),
    var(--color-primary-grad-2)
  );
  font-family: "Bree Serif", serif;
  font-size: 20px;
  font-weight: 500;
  width: 130px;
  text-transform: capitalize;
  /* padding: 8px 8px; */
  border-radius: 5;
  border: none;
  position: relative;
  transition: all 0.35s;
  text-decoration: none;
}
.btncontact:hover,
.btncontact:focus {
  color: #fff;
}
.btncontact span {
  letter-spacing: 1px;
  transition: all 0.3s ease-in-out;
}
.btncontact:hover span {
  letter-spacing: 4px;
}
@media only screen and (max-width: 767px) {
  .btncontact {
    margin-bottom: 30px;
  }
}

/* explore section */
.card-custom {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f0f0f0;
}

/* explore all  */
.text-primary-custom {
  color: #0a50a5;
  font-family: "Cambria Math", serif;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
}

.hover-card {
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hover-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0px 8px 20px rgba(10, 80, 165, 0.3);
  background-color: #f8faff;
}

.hover-card svg {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.hover-card:hover svg {
  transform: translateX(6px);
}

.hover-card img {
  transition: transform 0.3s ease;
}

.hover-card:hover img {
  transform: scale(1.1) rotate(3deg);
}

.custom-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background-color: #fff;
  /* default */
}

.custom-card h5,
p {
  cursor: pointer;
}

.custom-card img {
  transition: transform 0.4s ease;
}

.custom-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  background-color: rgb(244, 242, 242);
}

.custom-card:hover img {
  transform: scale(1.05);
}

/* Image CLS mitigations: conservative defaults for images without intrinsic width/height */
.preserve-aspect {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* conservative default; override with specific width/height when known */
  object-fit: cover;
}

.preserve-icon {
  display: inline-block;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 48px;
  max-height: 48px;
}

/* Footer contact tweaks: tighten email spacing and normalize icon size */
.site-footer .contact-info a {
  margin-bottom: 4px; /* was 10px globally */
}
.site-footer .contact-info a:last-child {
  margin-bottom: 0;
}
.site-footer .contact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
}

/* Email icon asset has extra padding; bump size slightly for visual parity */
.site-footer .email-icon {
  width: 24px;
  height: 24px;
}

/* Footer column spacing adjustments (desktop only) */
@media (min-width: 992px) {
  /* Increase space between Contact Info (2nd) and Quick Links (3rd) */
  .site-footer .quick-links-col {
    padding-left: 2.5rem; /* push Quick Links inward from Contact Info side */
    padding-right: 0.25rem; /* keep right tighter so Policies comes closer */
  }
  /* Reduce space between Quick Links (3rd) and Policies (4th) */
  .site-footer .policies-col {
    margin-left: -0.8rem; /* pull Policies towards Quick Links */
    padding-left: 0.25rem; /* retain a tiny breathing room */
  }
}

/* Footer: Sales Agent CTA block */
.site-footer .agent-cta {
  border-top: 1px solid var(--footer-border);
  padding-top: 10px;
}
.site-footer .agent-cta h6 {
  font-weight: 600;
}
.site-footer .agent-cta p {
  margin-bottom: 10px;
}

/* Modal */
#exampleModal .modal-dialog {
  max-width: 520px; /* comfortable desktop width */
  margin: 1.5rem auto;
}

#exampleModal .modal-content {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 80, 165, 0.12);
  border: 0;
  transform-origin: center top;
}

#exampleModal .modal-header {
  /* refreshed gradient: uses brand gradient tokens for a warmer green transition */
  background: linear-gradient(
    45deg,
    var(--color-primary-grad-1) 0%,
    var(--color-primary-grad-2) 100%
  );
  color: var(--color-on-primary, #fff);
  border-bottom: 0;
  padding: 0.75rem 1rem;
  align-items: center;
}

#exampleModal .modal-title {
  font-size: 1.05rem !important;
  font-weight: 600;
  margin: 0;
}

#exampleModal .btn-close {
  filter: invert(1) grayscale(1) opacity(0.95); /* white close icon */
  opacity: 0.95;
}

#exampleModal .modal-body {
  padding: 1rem 1.1rem 1.25rem 1.1rem;
  background: var(--modal-bg, #ffffff);
}

#exampleModal .form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #214a6b;
}

#exampleModal .form-control,
#exampleModal .form-select,
#exampleModal textarea.form-control {
  padding: 0.5rem 0.65rem;
  font-size: 0.96rem;
  border-radius: 8px;
  border: 1px solid rgba(10, 80, 165, 0.12);
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

#exampleModal .form-control:focus,
#exampleModal .form-select:focus,
#exampleModal textarea.form-control:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(10, 80, 165, 0.08);
  border-color: var(--color-primary);
}

/* Tighten row gutters only inside the modal form */
#exampleModal .row.g-3 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.5rem;
}

#exampleModal .modal-footer {
  padding: 0.6rem 1rem 1rem 1rem;
  background: transparent;
  border-top: 0;
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
}

#exampleModal .btn-brand,
#exampleModal .btn-primary {
  padding: 0.55rem 0.9rem;
  font-size: 0.98rem;
  border-radius: 10px;
}

#exampleModal .btn-secondary {
  background: transparent;
  border: 1px solid rgba(10, 80, 165, 0.12);
  color: #0a3b5a;
}

/* Small screens: full-width dialog and stacked footer buttons */
@media (max-width: 575.98px) {
  #exampleModal .modal-dialog {
    max-width: 94%;
    margin: 1rem auto;
  }
  #exampleModal .modal-title {
    font-size: 1rem !important;
  }
  #exampleModal .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  #exampleModal .btn-brand,
  #exampleModal .btn-primary {
    width: 100%;
  }
}

/* subtle entrance for nicer UX */
#exampleModal .modal.fade .modal-dialog {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 160ms ease;
  transform: translateY(-6px) scale(0.995);
}
#exampleModal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

/* ====== CTA Buttons (sitewide) ======
   Matches home page hover behavior and brand colors.
   Default: #003c30, Hover: #5fa00a (from theme.css variables)
*/
.btn-cta-primary {
  background: var(--color-primary, #003c30);
  color: #ffffff;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.25s ease, box-shadow 0.25s ease,
    transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb, 0, 60, 48), 0.3);
}
.btn-cta-primary:hover,
.btn-cta-primary:focus {
  background: var(--color-primary-hover, #5fa00a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb, 0, 60, 48), 0.4);
  color: #ffffff;
}

.hero-split.no-image {
  background: linear-gradient(180deg, #f5fff0 0%, #eef7f5 100%);
}
.hero-split.no-image .hero-title,
.hero-split.no-image .pill-badge,
.hero-split.no-image .trust-bar,
.hero-split.no-image .hero-description {
  text-align: center;
}
.hero-split.no-image .hero-bullets {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}
.hero-split.no-image .btn-group-center,
.hero-split.no-image .hero-actions {
  justify-content: center;
}

/* ========= Quote Pages CTA Section ========= */
.quote-cta-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #e7f5ef 100%);
  position: relative;
  overflow: hidden;
}
.quote-cta-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(95, 160, 10, 0.08) 0%,
    transparent 70%
  );
  top: -160px;
  right: -160px;
  pointer-events: none;
}
.quote-cta-wrapper {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 28px;
  box-shadow: 0 8px 30px rgba(0, 60, 48, 0.08);
  position: relative;
}
.quote-cta-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary-hover) 100%
  );
}
.quote-cta-title {
  color: var(--color-primary);
  font-weight: 800;
}
.quote-cta-text {
  color: #555;
}
.quote-cta-features {
  border-top: 1px solid rgba(0, 60, 48, 0.1);
}
.quote-cta-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .quote-cta-wrapper {
    padding: 32px 22px;
  }
}

.btn-cta-secondary {
  background: transparent;
  color: var(--color-primary, #003c30);
  border: 2px solid var(--color-primary, #003c30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}
.btn-cta-secondary:hover,
.btn-cta-secondary:focus {
  background: var(--color-secondary-hover, #0d6efd);
  color: #ffffff;
  border-color: var(--color-secondary-hover, #0d6efd);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb, 0, 60, 48), 0.25);
}
