/*-----------------------------------------------------------------------------------
    PACT Professional Services Inc. - brand overrides
    Loaded after style.css so these rules win. Keep theme edits in this file only.
-----------------------------------------------------------------------------------*/

/* Logo sizing (SVG wordmark) */
.header-bottom__logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

.tpoffcanvas__logo img {
  width: 180px;
  max-width: 100%;
  height: auto;
}

/* Current page in the main menu */
.header-bottom__main-menu nav > ul > li.active > a {
  color: var(--tp-theme-1);
}

/* "Book Consultation" is a longer label than the template button it replaced */
.header-bottom__right .tp-btn-sm {
  white-space: nowrap;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .header-bottom__right .tp-btn-sm {
    font-size: 14px;
    padding: 0 18px;
    height: 48px;
    line-height: 48px;
  }
}

/* Header top bar: phone number sits where the social icons used to */
.header-top__phone a {
  color: var(--tp-common-white);
  font-size: 16px;
  font-weight: 600;
  margin-left: 8px;
  white-space: nowrap;
}

.header-top__phone a:hover {
  color: var(--tp-theme-1);
}

.header-top__left-info ul li,
.header-top__left-info ul li a {
  white-space: nowrap;
}

/* Keep the multi-line opening hours on separate lines in the footer */
.footer-col-3 .footer__content p {
  white-space: pre-line;
}

/* Contact page: stack the office hours lines */
.tp-contact-info span {
  display: block;
}

/*----------------------------------------*/
/*  Fee calculator (calculator.php)
/*----------------------------------------*/
.calc__services {
  display: block;
}

.calc__service {
  background: var(--tp-common-white);
  border: 1px solid var(--tp-border-1);
  margin-bottom: 20px;
  transition: 0.3s;
}

.calc__service.is-active {
  border-color: var(--tp-theme-1);
  box-shadow: 0px 16px 35px 0px rgba(16, 76, 186, 0.08);
}

.calc__service-head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 25px;
  cursor: default;
}

.calc__switch {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.calc__switch input {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}

.calc__box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--tp-border-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
  transition: 0.2s;
}

.calc__switch input:checked + .calc__box {
  background: var(--tp-theme-1);
  border-color: var(--tp-theme-1);
  color: var(--tp-common-white);
}

.calc__service-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: var(--tp-grey-1);
  color: var(--tp-theme-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.calc__service.is-active .calc__service-icon {
  background: var(--tp-theme-1);
  color: var(--tp-common-white);
}

.calc__service-title {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.calc__service-title strong {
  font-family: var(--tp-ff-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--tp-common-black);
  line-height: 1.3;
}

.calc__service-title small {
  font-size: 14px;
  color: var(--tp-text-body);
}

.calc__service-amount {
  font-family: var(--tp-ff-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--tp-theme-1);
  white-space: nowrap;
}

.calc__service-body {
  display: none;
  padding: 0 25px 25px 25px;
  border-top: 1px solid var(--tp-border-1);
}

.calc__service.is-active .calc__service-body {
  display: block;
}

.calc__field {
  padding: 14px 0;
  border-bottom: 1px dashed var(--tp-border-1);
}

.calc__field:last-child {
  border-bottom: 0;
}

.calc__field--fixed,
.calc__field--check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.calc__field--check label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: var(--tp-common-black);
}

.calc__field--check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--tp-theme-1);
  cursor: pointer;
}

.calc__label {
  display: block;
  font-family: var(--tp-ff-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--tp-common-black);
  margin-bottom: 8px;
}

.calc__field--fixed .calc__label,
.calc__field--check .calc__label {
  margin-bottom: 0;
}

.calc__fixed-price {
  font-weight: 600;
  color: var(--tp-theme-1);
  white-space: nowrap;
  font-size: 15px;
}

.calc__note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--tp-text-body);
  text-align: right;
}

.calc__field select,
.calc__field input[type="number"] {
  width: 100%;
  height: 50px;
  border: 1px solid var(--tp-border-1);
  background: var(--tp-grey-1);
  padding: 0 15px;
  font-size: 15px;
  color: var(--tp-common-black);
  outline: none;
}

.calc__field select:focus,
.calc__field input[type="number"]:focus {
  border-color: var(--tp-theme-1);
}

.calc__qty-wrap {
  display: flex;
  align-items: center;
  gap: 15px;
}

.calc__qty-wrap input[type="number"] {
  max-width: 120px;
}

.calc__summary {
  background: var(--tp-common-white);
  border: 1px solid var(--tp-border-1);
  padding: 30px;
  position: sticky;
  top: 110px;
}

.calc__summary-title {
  font-family: var(--tp-ff-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--tp-common-black);
  margin-bottom: 20px;
}

.calc__empty {
  font-size: 15px;
  color: var(--tp-text-body);
  margin: 0;
}

.calc__sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--tp-text-body);
}

.calc__sum-row strong {
  color: var(--tp-common-black);
  font-weight: 600;
  white-space: nowrap;
}

.calc__sum-row strong span {
  font-size: 12px;
  font-weight: 400;
  color: var(--tp-text-body);
}

.calc__sum-row--sub {
  padding-top: 0;
  font-size: 13px;
}

.calc__sum-divider {
  height: 1px;
  background: var(--tp-border-1);
  margin: 12px 0;
}

.calc__sum-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 15px;
  border-top: 2px solid var(--tp-theme-1);
  font-family: var(--tp-ff-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--tp-common-black);
}

.calc__sum-total strong {
  font-size: 26px;
  font-weight: 700;
  color: var(--tp-theme-1);
  white-space: nowrap;
}

.calc__actions {
  margin-top: 25px;
}

.calc__actions .tp-btn,
.calc__actions .tp-btn-border {
  display: block;
}

.calc__mini-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 5px;
}

.calc__mini-actions a {
  font-size: 14px;
  color: var(--tp-text-body);
}

.calc__mini-actions a:hover {
  color: var(--tp-theme-1);
}

.calc__disclaimer {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--tp-text-body);
}

.calc__noscript {
  background: var(--tp-common-white);
  border: 1px solid var(--tp-border-1);
  padding: 30px;
}

.calc__help {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.calc__help-item h4 {
  font-family: var(--tp-ff-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--tp-common-black);
  margin-bottom: 12px;
}

.calc__help-item h4 i {
  color: var(--tp-theme-1);
  margin-right: 8px;
}

.calc__help-item p {
  font-size: 15px;
  margin: 0;
}

@media (max-width: 991px) {
  .calc__summary {
    position: static;
    margin-top: 30px;
  }
  .calc__help {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .calc__service-head {
    flex-wrap: wrap;
    padding: 18px;
  }
  .calc__service-amount {
    width: 100%;
    text-align: right;
  }
  .calc__service-body {
    padding: 0 18px 18px 18px;
  }
}

@media print {
  header, footer, .breadcrumb__area, .calc__services, .calc__help, .cta__area,
  .scroll-top, .calc__actions, #preloader {
    display: none !important;
  }
  .calc__summary {
    border: 0;
    padding: 0;
  }
}
