/* Additive rules for the standalone BrainON calculator.
 * Load after main.css and inner-pages.css. The original .calc visual rules stay
 * authoritative; these rules only contain the standalone section and safety
 * fixes that the legacy bundle did not provide. */

.inner-price-section {
  overflow: hidden;
  padding-bottom: 55px;
}

.calc-page-title .calc-title-main,
.calc-page-title .calc-title-subtitle {
  display: block;
}

.calc-page-title .calc-title-subtitle {
  margin-top: .28em;
  font-family: PlayfairIta, Georgia, serif;
  font-size: .48em;
  font-weight: 400;
  line-height: 1.35;
}

.inner-price-section .calcdescription,
.inner-price-section .calc-scope,
.inner-price-section .calc-section-intro,
.inner-price-section .calc-estimate-note,
.inner-price-section .calc-final-cta {
  max-width: 940px;
  margin-right: auto;
  margin-left: auto;
}

.inner-price-section .calcdescription,
.inner-price-section .calc-scope {
  color: #6b6b6b;
  font-size: 1em;
}

.inner-price-section .calcdescription {
  padding-bottom: 4px;
}

.inner-price-section .calc-scope {
  margin-bottom: 22px;
  padding: 0 0 12px;
  text-align: center;
}

.inner-price-section .calc::before,
.inner-price-section .calc::after {
  display: table;
  content: " ";
}

.inner-price-section .calc::after {
  clear: both;
}

.inner-price-section .calc input[type="checkbox"],
.inner-price-section .calc input[type="radio"] {
  accent-color: #cb3340;
}

.inner-price-section .calc input:focus,
.inner-price-section .calc select:focus,
.inner-price-section .calc button:focus,
.inner-price-section [data-calculator-order]:focus {
  outline: 2px solid #cb3340;
  outline-offset: 2px;
}

.inner-price-section .calc [aria-disabled="true"] {
  cursor: not-allowed;
}

.inner-price-section [data-calculator-order][aria-disabled="true"] {
  pointer-events: none;
}

.inner-price-section .calcsectiontotal {
  padding-bottom: 10px;
}

.inner-price-section .calc-total-notice {
  display: block;
  clear: both;
  width: 100%;
  max-width: 820px;
  margin: 6px auto 0;
  padding: 0;
  color: #cb3340;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.inner-price-section .calc-currency-row {
  clear: both;
  float: none;
}

.inner-price-section .calc-currency {
  margin: 0 auto 18px;
  padding: 0;
  border: 0;
  text-align: center;
}

.inner-price-section .calc-currency legend {
  width: auto;
  margin: 0 auto 8px;
  padding: 0;
  border: 0;
  color: #222;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: .95em;
  font-weight: 400;
  line-height: 1.4;
}

.inner-price-section .calc-currency-options {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #cb3340;
  border-radius: 3px;
  background: #fff;
}

.inner-price-section .calc-currency-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.inner-price-section .calc-currency-options label {
  min-width: 84px;
  margin: 0;
  padding: 8px 20px;
  color: #333;
  background: #fff;
  cursor: pointer;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: .85em;
  line-height: 1.25;
  text-align: center;
  transition: color .2s ease, background-color .2s ease;
}

.inner-price-section .calc-currency-options input:checked + label {
  color: #fff;
  background: #cb3340;
}

.inner-price-section .calc-currency-options input:focus-visible + label {
  outline: 2px solid #cb3340;
  outline-offset: -5px;
}

.inner-price-section .calc-currency-options input:checked:focus-visible + label {
  outline-color: #fff;
}

.inner-price-section .calc-currency-note {
  margin: 8px auto 0;
  padding: 0;
  color: #555;
  font-size: .72em;
  line-height: 1.5;
}

.inner-price-section .totaldata {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
}

.inner-price-section .calc-total-symbol {
  margin-left: .35em;
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.85;
}

.inner-price-section .calc-total-code {
  margin-left: .1em;
  font-family: AvenirMed, Arial, sans-serif;
  font-size: .95em;
  font-weight: 700;
}

.inner-price-section .calc-example-status {
  min-height: 1.5em;
  margin: -5px 0 10px;
  padding: 0;
  color: #555;
  font-size: .8em;
}

.inner-price-section .calc-seo-section {
  clear: both;
  float: none;
}

.inner-price-section .calc-seo-section h2 {
  margin: 55px 0 20px;
  padding-bottom: 14px;
  background: url("/img/small_rect_red.png") no-repeat left bottom;
  font-size: 2.15em;
  line-height: 1.25;
  text-align: left;
}

.inner-price-section .calc-section-intro,
.inner-price-section .calc-estimate-note {
  padding: 0 0 18px;
  text-align: center;
}

.inner-price-section .calc-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 12px 0 18px;
}

.inner-price-section .calc-example-card {
  display: flex;
  min-width: 0;
  padding: 28px 26px 24px;
  border-bottom: 3px solid #cb3340;
  background: #fff;
  box-shadow: 0 0 9px 1px rgba(0, 0, 0, .16);
  flex-direction: column;
}

.inner-price-section .calc-example-card h3 {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 1.6em;
  line-height: 1.25;
  text-align: left;
}

.inner-price-section .calc-example-card p {
  padding: 0;
}

.inner-price-section .calc-example-meta {
  min-height: 3.3em;
  margin: 10px 0 0;
  color: #666;
  font-size: .9em;
  line-height: 1.45;
}

.inner-price-section .calc-example-price {
  margin: 18px 0 10px;
  color: #cb3340;
  font-family: PlayfairSmBold, Georgia, serif;
  font-size: 1.8em;
  line-height: 1.2;
}

.inner-price-section .calc-example-card ul,
.inner-price-section .calc-cost-factors ul {
  margin: 8px 0 18px;
  padding-left: 1.2em;
  list-style: disc outside;
}

.inner-price-section .calc-example-card ul {
  flex: 1 1 auto;
}

.inner-price-section .calc-example-card li,
.inner-price-section .calc-cost-factors li {
  margin: 0 0 7px;
  padding-left: .15em;
}

.inner-price-section .calc-example-button {
  width: 100%;
  margin: 8px 0 0;
}

.inner-price-section .calc-estimate-note {
  color: #555;
  font-size: .9em;
}

.inner-price-section .calc-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  margin-top: 5px;
}

.inner-price-section .calc-info-grid h2 {
  margin-top: 42px;
  font-size: 1.8em;
}

.inner-price-section .calc-info-grid p {
  padding: 0 0 12px;
}

.inner-price-section .calc-faq details {
  margin: 0 0 10px;
  border: 1px solid #ddd;
  background: #fff;
}

.inner-price-section .calc-faq summary {
  position: relative;
  padding: 13px 38px 13px 15px;
  color: #222;
  cursor: pointer;
  font-family: AvenirMed, Arial, sans-serif;
  line-height: 1.35;
}

.inner-price-section .calc-faq summary::marker {
  color: #cb3340;
}

.inner-price-section .calc-faq details p {
  margin: 0;
  padding: 0 15px 15px;
  color: #747474;
}

.inner-price-section .calc-final-cta {
  margin-top: 38px;
  padding: 22px 24px;
  border-left: 3px solid #cb3340;
  background: #fff;
  text-align: center;
}

#book-design-calculator {
  scroll-margin-top: 115px;
}

@media (max-width: 767px) {
  .calc-page-title .calc-title-subtitle {
    font-size: .52em;
  }

  .inner-price-section .calc {
    font-size: 1em;
  }

  .inner-price-section .calc .calcsectiontotal .btn5 {
    display: block;
    float: none;
    width: 100%;
    margin-top: 10px;
  }

  .inner-price-section .calc .mainopt {
    float: none;
  }

  .inner-price-section .calc-example-grid,
  .inner-price-section .calc-info-grid {
    grid-template-columns: 1fr;
  }

  .inner-price-section .calc-example-grid {
    gap: 18px;
  }

  .inner-price-section .calc-example-meta {
    min-height: 0;
  }

  .inner-price-section .calc-seo-section h2,
  .inner-price-section .calc-info-grid h2 {
    margin-top: 42px;
    font-size: 1.75em;
  }

  .inner-price-section .calc-info-grid {
    gap: 0;
  }

  .inner-price-section .calcsectiontotal {
    text-align: center;
  }

  .inner-price-section .totaldata {
    justify-content: center;
  }

  .inner-price-section .calc-example-status {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .inner-price-section .calc-example-card {
    padding: 24px 20px 20px;
  }

  .inner-price-section .calc-currency-options {
    width: 100%;
  }

  .inner-price-section .calc-currency-options label {
    width: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-price-section .calc-currency-options label {
    transition: none;
  }
}
