/* MA plan filter toolbar — independent of Bootstrap 3 .form-control */

.cda-ma-plans__toolbar {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: end;
  max-width: 720px;
  margin-bottom: 20px;
}

.cda-ma-plans[data-cda-ma-carrier-filter] .cda-ma-plans__toolbar {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 960px;
}

.cda-ma-plans__filter {
  min-width: 0;
  margin: 0;
}

.cda-ma-plans__toolbar .cda-ma-plans__select {
  display: block;
  width: 100%;
  height: 44px;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.25;
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  color: #212529;
  margin: 0;
}

/* Zip-based MA quote request (Texas demo) */
[data-cda-ma-quote] .cda-ma-quote__intro {
  max-width: none;
  margin-bottom: 1.5rem;
}

body.cda-ma-quote-page .cda-hero__content.cda-hero__content--center {
  max-width: none;
  width: 100%;
}

.cda-ma-quote__intro h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.cda-ma-quote__form-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(10.5rem, max-content);
  gap: 1rem;
  align-items: end;
  max-width: 36rem;
  margin-bottom: 0.75rem;
}

[data-cda-ma-quote] .cda-ma-quote__form-action .cda-btn {
  min-width: 10.5rem;
  white-space: nowrap;
  width: 100%;
  background: var(--cda-bg-muted, #f1f5f9);
  color: var(--cda-heading, #0f172a);
  border: 2px solid var(--cda-border, #e2e8f0);
}

[data-cda-ma-quote] .cda-ma-quote__form-action .cda-btn:hover,
[data-cda-ma-quote] .cda-ma-quote__form-action .cda-btn:focus {
  background: var(--cda-primary, #1a5f8a);
  border-color: var(--cda-primary, #1a5f8a);
  color: #fff !important;
}

.cda-ma-quote__form-row label {
  display: block;
  margin-bottom: 0.35rem;
}

.cda-ma-quote__message {
  margin: 0 0 1rem;
  font-weight: 600;
}

.cda-ma-quote__message--error {
  color: #a94442;
}

.cda-ma-quote__location {
  font-weight: 600;
  margin: 0 0 1rem;
}

.cda-ma-quote__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: start;
}

[data-cda-ma-quote] .cda-ma-plans__filter:has(#cda-ma-county-select) {
  display: none;
}

[data-cda-ma-quote] .cda-ma-plans[data-cda-ma-carrier-filter] .cda-ma-plans__toolbar {
  grid-template-columns: minmax(200px, 280px) minmax(200px, 280px);
  max-width: none;
  width: 100%;
}

[data-cda-ma-quote] .cda-ma-plans__result-count {
  max-width: none;
}

[data-cda-ma-quote] .cda-ma-quote__message,
[data-cda-ma-quote] .cda-ma-quote__location {
  max-width: none;
}

@media (max-width: 991px) {
  .cda-ma-quote__layout {
    grid-template-columns: 1fr;
  }

  .cda-ma-quote__form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  body.cda-ma-page .cda-page-main > .cda-section > .cda-container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }

  /* Full-bleed breakout — ~90vw cards, matches hero text */
  body.cda-ma-page .cda-ma-plans {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 5vw;
    padding-right: 5vw;
    box-sizing: border-box;
  }

  body.cda-ma-page .cda-ma-plans__toolbar,
  body.cda-ma-page .cda-ma-plans[data-cda-ma-carrier-filter] .cda-ma-plans__toolbar {
    grid-template-columns: 1fr !important;
    max-width: none;
    width: 100%;
  }

  body.cda-ma-page .cda-ma-plans,
  body.cda-ma-page .cda-ma-plans__layout,
  body.cda-ma-page .cda-ma-plans__shell,
  body.cda-ma-page .cda-ma-plans__main,
  body.cda-ma-page .cda-ma-plan-cards,
  body.cda-ma-page .cda-ma-plan-card {
    max-width: none;
  }

  body.cda-ma-page .cda-ma-plans__layout,
  body.cda-ma-page .cda-ma-plans__shell,
  body.cda-ma-page .cda-ma-plans__main,
  body.cda-ma-page .cda-ma-plan-cards,
  body.cda-ma-page .cda-ma-plan-card {
    width: 100%;
  }

  body.cda-ma-page .cda-ma-plans__layout,
  body.cda-ma-page .cda-ma-plans__shell {
    grid-template-columns: 1fr !important;
  }
}

.cda-ma-plans__no-ma-county {
  margin-top: 1.25rem;
  padding: 1.5rem;
  max-width: none;
}

.cda-ma-plans__no-ma-county .cda-ma-plans__no-ma-title {
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.cda-ma-plans__no-ma-county .cda-ma-plans__no-ma-subhead {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
}

.cda-ma-plans__no-ma-medigap-list {
  margin: 0.5rem 0 1rem 1.25rem;
}

.cda-ma-plans__no-ma-contact {
  margin-top: 1rem;
  margin-bottom: 0;
}
