/* .site-header {
  z-index: 20;
} */

/* Basic Modal Styles */
.nu-modal[hidden] {
  display: none;
}

.nu-modal {
  /* position: absolute; */
  color: #000;
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*   z-index: 1000; */
  /*  Move one above Podium text us	 */
  z-index: 2147482998;
  align-items: center;
  justify-content: center;
}

.nu-modal__dialog {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 900px;
  width: 90%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: column;
}

.nu-modal__close {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.nu-modal__form__close {
  position: absolute;
  top: 30px;
  right: 30px;

  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color-menu);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Repair/Replace Modal */
/* TODO: replace colors with vars from theme */
.repair-replace-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147482998;
  /*   z-index: 10000; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.repair-replace-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.repair-replace-modal-content {
  position: relative;
  background: var(--wp--preset--color--white);
  border-radius: 12px;
  max-width: 900px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); */
  padding: 10px;
  /* margin-top: 100px; */
}

.repair-replace-graph-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.repair-replace-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  position: relative;
}

.repair-replace-modal-logo {
  max-height: 60px;
  margin-bottom: 1rem;
}

.repair-replace-modal-close {
  position: absolute;
  z-index: 1000;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color-menu);
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.repair-replace-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--wp--preset--color--black);
}

/* Override site header colors and sizes - force all headers to black */
.repair-replace-modal h1 {
  color: var(--wp--preset--color--pricing-header);
  /* color: var(--wp--preset--color--black) !important; */
  text-align: center !important;
  font-size: 24px !important;
}

.repair-replace-modal h2 {
  color: var(--wp--preset--color--pricing-header);
  /* color: var(--wp--preset--color--black) !important; */
  text-align: center !important;
  font-size: 20px !important;
}

.repair-replace-modal h3 {
  color: var(--wp--preset--color--pricing-header);
  /* color: var(--wp--preset--color--black) !important; */
  text-align: center !important;
  font-size: 16px !important;
}

.repair-replace-modal h4 {
  color: var(--wp--preset--color--pricing-header);
  /* color: var(--wp--preset--color--black) !important; */
  text-align: center !important;
  /* font-size: 12px !important; */
}

.repair-replace-modal h5 {
  color: var(--wp--preset--color--pricing-header);
  /* color: var(--wp--preset--color--black) !important; */
  text-align: center !important;
  font-size: 8px !important;
}

.repair-replace-modal h6 {
  color: var(--wp--preset--color--pricing-header);
  /* color: var(--wp--preset--color--black) !important; */
  text-align: center !important;
  font-size: 8px !important;
}

/* .repair-replace-modal p {
        font-size: 16px !important;
    } */

#risk-subtitle {
  margin: 0.5rem 0 !important;
}

.repair-replace-modal-body {
  padding: 0rem;
}

.repair-replace-modal-subtitle {
  color: #51607f;
  /* margin-bottom: 1.5rem; */
  padding: 10px 0;
}

.repair-replace-age-selector {
  background: var(--wp--preset--color--white);
  padding: 1rem;
  margin-bottom: 1rem;
}

.repair-replace-age-label {
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.repair-replace-age-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    #b21f26 0%,
    #b21f26 0%,
    #e0e6ef 0%,
    #e0e6ef 100%
  );
  outline: none;
  margin-bottom: 0.5rem;
}

.repair-replace-age-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #b21f26;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.repair-replace-age-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #b21f26;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.repair-replace-age-marks {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #51607f;
}

.repair-replace-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.repair-replace-comparison-card {
  background: var(--wp--preset--color--white);
  border: 1px solid #e0e6ef;
  border-radius: 12px;
  padding: 0.2rem;
}

.repair-replace-comparison-card h3 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.repair-replace-cost-comparison-container {
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.repair-replace-cost-section {
  margin-bottom: 1rem;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 1rem;
}

.repair-replace-cost-section:last-child {
  margin-bottom: 0;
}

.repair-replace-cost-section h4,
.repair-replace-cost-section h1,
.repair-replace-cost-section h2,
.repair-replace-cost-section h3,
.repair-replace-cost-section h5,
.repair-replace-cost-section h6 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-align: left !important;
}

.repair-replace-savings-analysis {
  padding: 1rem;
  margin: 1rem 0 0;
  text-align: center;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.repair-replace-savings-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
}

.repair-replace-savings-label {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.repair-replace-savings-value {
  font-weight: 700;
  color: var(--wp--preset--color--black);
  display: flex;
  align-items: center;
  margin: 0 0 0.5rem;
}

.repair-replace-savings-analysis p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem !important;
}

.repair-replace-savings-note {
  font-size: 0.75rem !important;
  color: var(--text-color-menu);
  font-style: italic;
}

.repair-replace-risk-assessment {
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}

.repair-replace-risk-list {
  margin: 0.75rem auto;
  padding-left: 1.25rem;
  max-width: 500px;
  text-align: left;
}

.repair-replace-risk-list li {
  line-height: 1.4;
  color: var(--wp--preset--color--black);
  margin-bottom: 0.35rem;
}

.repair-replace-risk-assessment.low {
  border: 1px solid #7af2a8;
  background: #effdf4;
}

.repair-replace-risk-assessment.medium {
  border: 1px solid #ffe020;
  background: #fefce8;
}

.repair-replace-risk-assessment.high {
  border: 1px solid #ffa2a3;
  background: #fef3f2;
}

.repair-replace-risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.repair-replace-risk-badge.low {
  border: 1px solid #b9f8cf;
  background: #dcfce7;
}

.repair-replace-risk-badge.medium {
  border: 1px solid #ffe020;
  background: #fef9c2;
}

.repair-replace-risk-badge.high {
  border: 1px solid #ffa2a3;
  background: #ffe2e1;
}

.repair-replace-risk-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.repair-replace-title-with-icon {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: left !important;
}

.repair-replace-title-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.repair-replace-title-icon svg {
  /* vertical-align: middle; */
  display: block;
}

.repair-replace-risk-callout {
  margin: 0;
  font-size: 1rem !important;
  font-weight: 700;
  color: var(--wp--preset--color--black);
}

.repair-replace-savings-callout {
  margin: 0.5rem 0 0;
  font-size: 1rem !important;
  font-weight: 700;
  color: var(--wp--preset--color--black);
}

.repair-replace-recommendations-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.repair-replace-recommendation-card {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.repair-replace-recommendation-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-align: left !important;
}

.repair-replace-recommendation-card ul {
  margin: 0;
  padding-left: 1.125rem;
  list-style: disc;
  text-align: left;
}

.repair-replace-image-section {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .repair-replace-cost-comparison-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .repair-replace-cost-comparison-container .repair-replace-cost-section {
    margin-bottom: 0;
  }

  #cost-comparison-title {
    grid-column: 1 / -1;
  }

  .repair-replace-modal-content {
    padding: 32px;
  }
  .repair-replace-comparison-card {
    padding: 1rem;
  }
  .repair-replace-modal-body {
    padding: 0.5rem;
  }
}

.repair-replace-modal ul li {
  list-style-type: disc;
  color: var(--wp--preset--color--gray-dark);
  line-height: 1 !important;
}

.repair-replace-modal ul li::before {
  display: none !important;
}

.repair-replace-modal .yellow-checkboxes li::before {
  display: none !important;
}

.repair-replace-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.repair-replace-cost-label {
  color: #51607f;
}

.repair-replace-cost-value {
  font-weight: 800;
}

.repair-replace-cost-header-with-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.repair-replace-cost-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px !important;
  font-weight: 600;
  border: 1px solid #c0a470;
  background: #fff6d6;
  color: var(--wp--preset--color--black);
}

.repair-replace-cost-badge--green {
  border-color: #7af2a8;
  background: #effdf4;
  color: #06603b;
}

.repair-replace-cost-badge--yellow {
  border-color: #ffe020;
  background: #fef9c2;
  color: #7a6510;
}

.repair-replace-cost-footnote {
  font-size: 12px !important;
  color: var(--wp--preset--color--gray-dark);
  font-style: italic;
  margin-top: 8px;
  padding-top: 8px;
}
