/* =========================================================================
   2026 Pay Offer Calculator
   Scoped under .offer-v2 so the rest of the site is unaffected.
   Built on AdminLTE + Bootstrap, aligned to the Doctors Paycheck brand.
   ========================================================================= */

.offer-v2 {
  --offer-indigo: #211D47;
  --offer-indigo-soft: #2f2a63;
  --offer-teal: #3CB6B5;
  --offer-amber: #FFAF17;
  --offer-red: #e8455f;
  --offer-ink: #2a2a3c;
  --offer-muted: #6b7280;
  --offer-line: #e7e9f0;
  --offer-radius: 16px;
  --offer-shadow: 0 18px 40px -22px rgba(33, 29, 71, 0.45);
  --offer-shadow-sm: 0 10px 24px -16px rgba(33, 29, 71, 0.4);

  padding-bottom: 1.5rem;
  color: var(--offer-ink);
}

.offer-v2 #uplift-card {
  margin-top: 0.5rem;
}

/* Remove the legacy nested-card chrome look; we lay sections out directly. */
.offer-stack > * + * {
  margin-top: 1.75rem;
}

.offer-v2 p {
  line-height: 1.65;
}

.offer-v2 a {
  color: var(--offer-teal);
}

.offer-v2 a:hover {
  color: var(--offer-indigo);
}

/* -------------------------------------------------------------------------
   Breadcrumb
   ------------------------------------------------------------------------- */
.offer-breadcrumb {
  margin: -0.35rem 0 -0.5rem;
}

.offer-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--offer-muted);
  font-size: 0.95rem;
}

.offer-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.45rem;
  color: #a0a6b2;
}

.offer-breadcrumb a {
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.offer-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--offer-radius) + 6px);
  box-shadow: var(--offer-shadow);
  color: #fff;
  margin-bottom: 1.75rem;
}

.offer-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 88% -10%, rgba(60, 182, 181, 0.55) 0%, rgba(60, 182, 181, 0) 55%),
    radial-gradient(90% 120% at 0% 120%, rgba(255, 175, 23, 0.35) 0%, rgba(255, 175, 23, 0) 55%),
    linear-gradient(135deg, #1b1838 0%, var(--offer-indigo) 45%, var(--offer-indigo-soft) 100%);
}

.offer-hero-bg::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}

.offer-hero-inner {
  position: relative;
  padding: 2.75rem 2.5rem 3rem;
}

.offer-hero-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.offer-hero-logo img {
  height: 42px;
  width: auto;
}

.offer-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.offer-hero-eyebrow i {
  color: var(--offer-amber);
}

.offer-hero-title {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 1rem 0 0.5rem;
  color: #fff;
}

.offer-hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

/* -------------------------------------------------------------------------
   Notes / callouts (disclaimer, info, caveats)
   ------------------------------------------------------------------------- */
.offer-note {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--offer-line);
  border-left: 5px solid var(--offer-teal);
  border-radius: var(--offer-radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--offer-shadow-sm);
}

.offer-note-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  background: var(--offer-teal);
}

.offer-note-body h5 {
  color: var(--offer-indigo);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.offer-note-body p {
  margin-bottom: 0;
}

.offer-note-body p + p {
  margin-top: 0.6rem;
}

.offer-note--warning {
  border-left-color: var(--offer-amber);
}

.offer-note--warning .offer-note-icon {
  background: var(--offer-amber);
}

.offer-note--info {
  border-left-color: var(--offer-teal);
}

.offer-note--info .offer-note-icon {
  background: var(--offer-teal);
}

/* -------------------------------------------------------------------------
   Promo blocks (referendum intro + bottom CTA)
   ------------------------------------------------------------------------- */
.offer-promo {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, rgba(60, 182, 181, 0.10) 0%, rgba(60, 182, 181, 0.04) 100%);
  border: 1px solid rgba(60, 182, 181, 0.28);
  border-radius: var(--offer-radius);
  padding: 2rem 1.75rem;
}

.offer-promo-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.offer-promo-logo img {
  width: 150px;
  height: auto;
}

.offer-promo h4 {
  color: var(--offer-indigo);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.offer-promo p {
  max-width: 60ch;
  margin: 0 auto 0.75rem;
}

.offer-promo p:last-of-type {
  margin-bottom: 0;
}

.offer-promo--cta .btn {
  margin-top: 1.25rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* -------------------------------------------------------------------------
   Sections + headings
   ------------------------------------------------------------------------- */
.offer-section {
  background: #fff;
  border: 1px solid var(--offer-line);
  border-radius: var(--offer-radius);
  padding: 1.75rem 1.9rem;
  box-shadow: var(--offer-shadow-sm);
}

.offer-section-title {
  position: relative;
  color: var(--offer-indigo);
  font-weight: 800;
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
}

.offer-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 3px;
  background: var(--offer-amber);
}

/* Brand-aligned heading colour to match site-wide h4/h5 */
.offer-v2 h2,
.offer-v2 h3,
.offer-v2 h4,
.offer-v2 h5 {
  color: var(--offer-indigo);
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Quick answer
   ------------------------------------------------------------------------- */
.offer-quick-answer {
  background: linear-gradient(160deg, #ffffff 0%, #f4fbfb 100%);
  border: 1px solid rgba(60, 182, 181, 0.26);
  border-radius: var(--offer-radius);
  padding: 1.6rem 1.75rem;
  box-shadow: var(--offer-shadow-sm);
}

.offer-quick-answer-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.offer-quick-answer-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--offer-teal);
}

.offer-quick-answer h2 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0;
}

.offer-jump-to-calc-wrap {
  margin: -0.35rem 0 1.2rem;
}

.offer-jump-to-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 12px;
  background: var(--offer-indigo);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 14px 28px -14px rgba(33, 29, 71, 0.85);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.offer-jump-to-calc i {
  color: var(--offer-amber);
}

.offer-jump-to-calc:hover,
.offer-jump-to-calc:focus {
  background: var(--offer-indigo-soft);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 32px -14px rgba(33, 29, 71, 0.9);
  outline: none;
}

.offer-jump-to-calc:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--offer-teal),
    0 18px 32px -14px rgba(33, 29, 71, 0.9);
}

#offer-calculator {
  scroll-margin-top: 1rem;
}

.offer-quick-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.offer-at-a-glance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin: 0 0 1.2rem;
  padding: 1rem 1.2rem 1rem 2.2rem;
  background: rgba(60, 182, 181, 0.08);
  border: 1px solid rgba(60, 182, 181, 0.18);
  border-radius: 12px;
}

.offer-at-a-glance li {
  line-height: 1.35;
}

.offer-quick-answer-grid > div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--offer-line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.offer-quick-answer-grid h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.offer-quick-answer-grid p {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .offer-at-a-glance,
  .offer-quick-answer-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   Summary highlight tiles
   ------------------------------------------------------------------------- */
.offer-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.offer-highlight {
  background: linear-gradient(160deg, #fbfbfe 0%, #f3f5fb 100%);
  border: 1px solid var(--offer-line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.offer-highlight-value {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--offer-teal);
}

.offer-highlight:nth-child(2) .offer-highlight-value {
  color: var(--offer-indigo);
}

.offer-highlight:nth-child(3) .offer-highlight-value {
  color: var(--offer-amber);
}

.offer-highlight-label {
  font-size: 0.95rem;
  color: var(--offer-muted);
  line-height: 1.35;
}

.offer-table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--offer-line);
  border-radius: 12px;
  background: #fff;
}

.offer-simple-table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
  color: var(--offer-ink);
}

.offer-simple-table th,
.offer-simple-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--offer-line);
  vertical-align: top;
}

.offer-simple-table th {
  background: #f7f8fc;
  color: var(--offer-indigo);
  font-weight: 800;
}

.offer-simple-table tr:last-child td {
  border-bottom: 0;
}

.offer-simple-table td:last-child,
.offer-simple-table th:last-child {
  padding-right: 1rem;
}

.offer-payscale-table td:nth-child(3),
.offer-payscale-table td:nth-child(4),
.offer-payscale-table td:nth-child(5) {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .offer-highlights {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   "Full offer details" accordion
   ------------------------------------------------------------------------- */
.offer-accordion {
  margin-top: 1.5rem;
}

.offer-accordion .card {
  border: 1px solid var(--offer-line);
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}

.offer-accordion a.offer-details-toggle {
  color: var(--offer-indigo);
}

.offer-accordion a.offer-details-toggle:hover {
  text-decoration: none;
}

.offer-accordion a.offer-details-toggle .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f8fc;
  border: 0;
  padding: 1.1rem 1.4rem;
  transition: background-color 0.2s ease;
}

.offer-accordion a.offer-details-toggle:hover .card-header {
  background: #eef0f8;
}

.offer-accordion a.offer-details-toggle .card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.offer-details-chevron {
  color: var(--offer-teal);
  transition: transform 0.25s ease;
}

.offer-accordion a.offer-details-toggle:not(.collapsed) .offer-details-chevron {
  transform: rotate(180deg);
}

.offer-accordion .card-body {
  padding: 1.4rem 1.5rem;
}

.offer-accordion .card-body h5 {
  color: var(--offer-indigo);
  font-weight: 700;
  margin-top: 1rem;
}

.offer-accordion .card-body h5:first-child {
  margin-top: 0;
}

.offer-accordion .card-body a {
  color: var(--offer-teal);
}

.offer-accordion .card-body a:hover {
  color: var(--offer-indigo);
  text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Calculator form
   ------------------------------------------------------------------------- */
.offer-form-card {
  background: #fbfbfe;
  border: 1px solid var(--offer-line);
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.4rem;
  margin-top: 1.25rem;
}

.offer-form-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.offer-form-card-head h5 {
  color: var(--offer-indigo);
  font-weight: 700;
}

.offer-form-step {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--offer-indigo);
  box-shadow: 0 0 0 4px rgba(33, 29, 71, 0.08);
}

.offer-form-card .form-group {
  align-items: center;
}

.offer-v2 .fixed-prepend-group {
  width: 40px;
  justify-content: center;
}

.offer-form-card .input-group-text {
  background: #fff;
  border-color: #ced4da;
  color: var(--offer-muted);
}

.offer-form-card .form-control:focus {
  border-color: var(--offer-teal);
  box-shadow: 0 0 0 0.2rem rgba(60, 182, 181, 0.2);
}

.offer-input-divider {
  margin: 1.5rem 0 1.25rem;
  border-top: 1px solid var(--offer-line);
}

/* Total row emphasised */
.offer-total-row .col-form-label {
  font-weight: 700;
  color: var(--offer-indigo);
}

#offer-totalpay-input {
  background-color: #eef0f8;
  font-weight: 700;
  color: var(--offer-indigo);
  cursor: default;
}

.dark-mode #offer-totalpay-input {
  background-color: #454d55;
  color: #fff;
}

.offer-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.offer-calc-btn {
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  border-radius: 10px;
  background: var(--offer-teal);
  border-color: var(--offer-teal);
  box-shadow: 0 10px 22px -12px rgba(60, 182, 181, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.offer-calc-btn:hover,
.offer-calc-btn:focus {
  background: #2fa19f;
  border-color: #2fa19f;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(60, 182, 181, 0.95);
}

@media (max-width: 575.98px) {
  .offer-form-actions {
    justify-content: stretch;
  }

  .offer-calc-btn {
    width: 100%;
  }
}

/* Validation state (used by uplift_offer.js) */
.offer-v2 .select2-selection.is-invalid {
  border-color: #dc3545 !important;
}

/* -------------------------------------------------------------------------
   Results
   ------------------------------------------------------------------------- */
.offer-results {
  margin-top: 0.5rem;
}

.offer-results-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.offer-results-row .uplift-result-box {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  display: flex;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}

.offer-results-row .uplift-result-box .small-box {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  box-shadow: var(--offer-shadow-sm);
  overflow: hidden;
  margin-bottom: 0;
  min-height: 190px;
}

.offer-results-row .uplift-result-box .small-box .inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.35rem 1.2rem;
}

.offer-result-copy {
  position: relative;
  z-index: 1;
}

.offer-result-copy h3 {
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1.05;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.offer-result-copy p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  max-width: 18rem;
}

.offer-results-row .small-box.bg-success h3,
.offer-results-row .small-box.bg-success p,
.offer-results-row .small-box.bg-success .offer-result-subtext,
.offer-results-row .small-box.bg-info h3,
.offer-results-row .small-box.bg-info p,
.offer-results-row .small-box.bg-info .offer-result-subtext {
  color: #fff;
}

.offer-results-row .small-box.bg-warning h3,
.offer-results-row .small-box.bg-warning p,
.offer-results-row .small-box.bg-warning .offer-result-subtext {
  color: var(--offer-indigo);
}

.offer-result-line {
  display: block;
  margin-top: auto;
  padding-top: 1.35rem;
  position: relative;
  z-index: 1;
}

.offer-result-line h3 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.offer-result-subtext {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
  opacity: 0.92;
}

.offer-results-note {
  border-radius: 14px;
  margin-top: 0.5rem;
  box-shadow: var(--offer-shadow-sm);
}

.offer-results-note h5 {
  color: var(--offer-indigo);
}

/* -------------------------------------------------------------------------
   FAQs
   ------------------------------------------------------------------------- */
.offer-faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.offer-faq-item {
  background: #fbfbfe;
  border: 1px solid var(--offer-line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
}

.offer-faq-item h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.offer-faq-item p {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .offer-faq-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .offer-results-row .uplift-result-box {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .offer-results-row .uplift-result-box .small-box .inner {
    align-items: center;
    text-align: center;
  }

  .offer-result-copy p {
    max-width: none;
  }

  .offer-result-line {
    width: 100%;
    text-align: center;
  }

  .offer-result-subtext {
    text-align: center;
  }
}

/* -------------------------------------------------------------------------
   Dark mode corrections
   ------------------------------------------------------------------------- */
.dark-mode .offer-note,
.dark-mode .offer-quick-answer,
.dark-mode .offer-section,
.dark-mode .offer-form-card {
  background-color: #3a4047;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .offer-quick-answer-grid > div,
.dark-mode .offer-faq-item,
.dark-mode .offer-highlight {
  background: #454d55;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .offer-at-a-glance {
  background: rgba(60, 182, 181, 0.12);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .offer-table-scroll {
  background: #3a4047;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .offer-simple-table {
  color: #fff;
}

.dark-mode .offer-simple-table th {
  background: #454d55;
  color: #fff;
}

.dark-mode .offer-simple-table th,
.dark-mode .offer-simple-table td {
  border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .offer-section-title,
.dark-mode .offer-note-body h5,
.dark-mode .offer-form-card-head h5,
.dark-mode .offer-v2 h2,
.dark-mode .offer-v2 h3,
.dark-mode .offer-v2 h4,
.dark-mode .offer-v2 h5 {
  color: #fff;
}

.dark-mode .offer-accordion .card,
.dark-mode .offer-accordion a.offer-details-toggle .card-header {
  background-color: #3a4047;
  border-color: rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------------------------------
   Responsive padding
   ------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .offer-hero-inner {
    padding: 2rem 1.5rem 2.25rem;
  }

  .offer-section {
    padding: 1.4rem 1.25rem;
  }

  .offer-form-card {
    padding: 1.25rem 1.1rem;
  }
}
