/* ================================================
   PBJ Decision Maker — Luxury Theme (Accessible)
   Palette: Espresso, Gold, Champagne, Ivory, Palm
   ================================================= */

/* Color tokens */
:root {
  --pbj-espresso:  #3B2F2F;
  --pbj-gold:      #D4AF37;
  --pbj-gold-2:    #f6d67a; /* gradient helper */
  --pbj-champagne: #F7E7CE;
  --pbj-ivory:     #FAF9F6;
  --pbj-palm:      #8BAA80;

  --pbj-text:      #2a2424;
  --pbj-muted:     #6b6161;

  --pbj-radius:    16px;
  --pbj-radius-pill: 999px;

  --pbj-shadow-sm: 0 6px 18px rgba(0,0,0,.06);
  --pbj-shadow:    0 10px 30px rgba(0,0,0,.08);
  --pbj-ring:      0 0 0 3px rgba(212,175,55,.35); /* gold focus ring */
}

/* Base section */
.pbj-dm {
  background:transparent;
  color: var(--pbj-text);
}

.pbj-dm__wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* Header */
.pbj-dm__title {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  text-align: center;
  color: var(--pbj-espresso);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0 0 8px;
}

.pbj-dm__subtitle {
  text-align: center;
  color: var(--pbj-muted);
  margin: 0 0 22px;
  font-size: 16px;
}

/* Progress */
.pbj-dm__progress {
  width: 100%;
  height: 8px;
  background: #efe9dd;
  border-radius: var(--pbj-radius-pill);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.pbj-dm__progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--pbj-gold), var(--pbj-gold-2));
  transition: width .35s ease;
}

/* Card */
.pbj-dm__card {
  margin-top: 24px;
  background: #ffffff;
  border-radius: var(--pbj-radius);
  box-shadow: var(--pbj-shadow);
  padding: clamp(18px, 3vw, 28px);
  border-top: 6px solid var(--pbj-gold);
}

.pbj-dm__question {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--pbj-espresso);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Choices Grid */
.pbj-dm__choices {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

/* Choice Pill (button) */
.pbj-dm__choice {
  appearance: none;
  border: 1px solid #e8dcc8;
  background: var(--pbj-champagne);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 16px;
  color: var(--pbj-espresso);
  text-align: left;
  cursor: pointer;
  transition:
    transform .06s ease,
    box-shadow .15s ease,
    border-color .15s ease,
    background .15s ease,
    color .15s ease;
}

/* Hover: maintain dark text for contrast */
.pbj-dm__choice:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(212,175,55,.12);
  border-color: var(--pbj-gold);
  background: #f9edd6; /* slightly warmer champagne */
  color: var(--pbj-espresso);
}

/* Selected: strong contrast & subtle glow */
.pbj-dm__choice.is-selected {
  border-color: var(--pbj-gold);
  background: #fff7e6; /* pale gold */
  color: var(--pbj-espresso);
  box-shadow: 0 10px 28px rgba(212,175,55,.16);
  font-weight: 700;
}

/* Keyboard focus for choices */
.pbj-dm__choice:focus-visible {
  outline: none;
  box-shadow: var(--pbj-ring), var(--pbj-shadow-sm);
  border-color: var(--pbj-gold);
}

/* Footer Buttons */
.pbj-dm__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Solid Button (espresso base) */
.pbj-dm__btn {
  border: none;
  background: var(--pbj-espresso);
  color: #fffdf7; /* high-contrast off-white */
  padding: 12px 18px;
  border-radius: var(--pbj-radius-pill);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition:
    transform .06s ease,
    box-shadow .15s ease,
    background .15s ease,
    color .15s ease;
}

/* Hover: flip to gold with espresso text for contrast */
.pbj-dm__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(59,47,47,.18);
  background: var(--pbj-gold);
  color: var(--pbj-espresso);
}

/* Disabled */
.pbj-dm__btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Ghost Button */
.pbj-dm__btn--ghost {
  background: transparent;
  color: var(--pbj-espresso);
  border: 1px solid #ddcdb4;
}
.pbj-dm__btn--ghost:hover {
  background: var(--pbj-champagne);
  color: var(--pbj-espresso);
  border-color: var(--pbj-gold);
}

/* Focus styles for buttons */
.pbj-dm__btn:focus-visible,
.pbj-dm__btn--ghost:focus-visible {
  outline: none;
  box-shadow: var(--pbj-ring), var(--pbj-shadow-sm);
}

/* Results */
.pbj-dm__results { margin-top: 22px; }

.pbj-dm__results-card {
  background: #ffffff;
  border-radius: var(--pbj-radius);
  box-shadow: var(--pbj-shadow);
  padding: 18px 20px;
  border-top: 6px solid var(--pbj-gold);
}

.pbj-dm__results-title {
  margin: 0 0 10px;
  font-size: 20px;
  color: var(--pbj-espresso);
  font-weight: 800;
}

.pbj-dm__results-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}

.pbj-dm__results-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fffaf0; /* soft ivory-gold */
  border: 1px solid #ead9b9;
  border-radius: 12px;
  font-size: 15px;
}
.pbj-dm__results-item strong { color: var(--pbj-espresso); font-weight: 800; }
.pbj-dm__results-item span   { color: var(--pbj-text); }

/* Results actions */
.pbj-dm__results-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Microcopy */
.pbj-dm__microcopy {
  margin-top: 12px;
  color: var(--pbj-muted);
  text-align: center;
  font-size: 13px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pbj-dm__progress-bar,
  .pbj-dm__choice,
  .pbj-dm__btn,
  .pbj-dm__btn--ghost {
    transition: none !important;
  }
}



/* Helper line under the question */
.pbj-dm__helper{
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--pbj-muted);
  font-style: italic;
}

.pbj-dm__qtext  { display:block; }
.pbj-dm__helper { display:block; font-size:.9rem; color:#777; font-style:italic; margin-top:2px; }

/* Optional small add-on */
.pbj-dm__experiences { margin-top: 16px; }
.pbj-dm__experiences .pbj-dm__results-card em { font-style: normal; opacity: .7; margin-left: 8px; }




/* Experience grid as single-column list */
.pbj-dm__exp-grid{
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: stretch;     /* make each card stretch full width */
  gap: 20px;
  margin-top: 16px;
  background: #F7E7CE !important;
}

.pbj-dm__exp-card{
  flex: 1 1 auto;
  max-width: 100%;          /* full row */
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  border-top: 6px solid #D4AF37; /* gold accent */
  padding: 20px;
  text-align: center;
}

.pbj-dm__exp-title{
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #3B2F2F;
}

.pbj-dm__exp-link{
  text-decoration: none;
  display: block;
}

@media (max-width: 900px){
  .pbj-dm__exp-card{ flex-basis: 46%; max-width: 80%; }
}
@media (max-width: 600px){
  .pbj-dm__exp-card{ flex-basis: 100%; max-width: 100%; }
}

/* Two-column card layout */
.pbj-dm__exp-card--two-col{
  display: grid;
  grid-template-columns: 360px 1fr;  /* image left, content right */
  gap: 18px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-top: 6px solid #D4AF37;
}

/* Image column */
.pbj-dm__exp-col--image{
  display: block;
}
.pbj-dm__exp-hero{
  width: 100%;
  height: 100%;
  background: #F7E7CE; /* champagne fallback */
}
.pbj-dm__exp-hero img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content column */
.pbj-dm__exp-col--content{
  padding: 14px 16px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pbj-dm__exp-title{
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 800;
  color: #3B2F2F; /* espresso */
}

.pbj-dm__exp-subtitle{
  margin: 0 0 10px 0;
  font-size: 14px;
  font-style: italic;
  color: #D4AF37; /* gold accent */
}

.pbj-dm__exp-desc{
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #5F6B7A;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pbj-dm__exp-price{
  margin: 0 0 12px 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.pbj-dm__exp-price strong{
  color: #1a1a1a;
  font-weight: 800;
}
.pbj-dm__exp-price span{
  color: #5F6B7A;
  font-size: 13px;
}

.pbj-dm__exp-ctas{
  margin-top: 12px;
  display: flex;
  justify-content: center;  /* center the CTAs horizontally */
  gap: 16px;
  flex-wrap: wrap;
}

.pbj-dm__btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.pbj-dm__btn--gold{
  background: #D4AF37;
  color: #fff;
}

.pbj-dm__exp-secondary{
  color: #5F6B7A;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.pbj-dm__exp-secondary:hover{
  border-bottom-color: #5F6B7A;
}

.pbj-dm__exp-quote{
  margin-top: 10px;
  padding: 10px 12px;
  background: #F7E7CE;
  color: #3B2F2F;
  font-style: italic;
  border-radius: 10px;
}

/* Responsive: stack on smaller screens */
@media (max-width: 900px){
  .pbj-dm__exp-card--two-col{
    grid-template-columns: 1fr;  /* stack */
  }
  .pbj-dm__exp-col--content{
    padding: 14px 16px 16px 16px;
  }
  .pbj-dm__exp-hero{
    aspect-ratio: 16 / 9;       /* maintain nice image box when stacked */
    height: auto;
  }
}

.pbj-dm__exp-price{
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2; /* compact stack */
}

.pbj-dm__exp-price-usd{
  color: #1a1a1a;
  font-weight: 800;
  font-size: 16px;
}

.pbj-dm__exp-price-jmd{
  color: #5F6B7A; /* neutral grey */
  font-size: 14px; /* slightly larger */
  font-weight: 500;
}

.pbj-dm__exp-price{
  margin: 0 0 12px 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

/* Everyday USD price: small, grey, strikethrough */
.pbj-dm__price-everyday{
  color: #5F6B7A;
  font-size: 14px;
  font-weight: 500;
  text-decoration: line-through;  /* <-- add this */
}

/* Limited Time Offer: bold, gold */
.pbj-dm__price-lto{
  color: #D4AF37;
  font-size: 16px;
  font-weight: 800;
  margin-top: 2px;
}

/* JMD approx line: smaller, grey */
.pbj-dm__price-jmd{
  color: #5F6B7A;
  font-size: 13px;
  font-weight: 400;
  margin-top: 1px;
}

/* Ensure the card is a positioning context */
.pbj-dm__exp-card{
  position: relative; /* NEW */
}

/* Badge overlay: top-right, outside normal flow */
.pbj-dm__exp-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 96px;           /* tweak as needed */
  height: auto;
  pointer-events: none;  /* badge doesn’t intercept clicks */
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.18)); /* subtle lift */
}

/* Optional: responsive cap for smaller screens */
@media (max-width: 600px){
  .pbj-dm__exp-badge{ width: 76px; }
}

/* Center single action button */
.pbj-dm__exp-actions{
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}

/* Reuse your button styles + an outline variant */
.pbj-dm__btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
  cursor: pointer;
  border: none;
}

.pbj-dm__btn--gold{
  background: #D4AF37;
  color: #fff;
}

.pbj-dm__btn--ghost{
  background: #f7f7f7;
  color: #3B2F2F;
}

.pbj-dm__btn--outline{
  background: #fff;
  color: #3B2F2F;
  border: 2px solid #D4AF37;
}
.pbj-dm__btn--outline:hover{
  background: #FFF7DF;
}

/* Modal overlay + dialog */
.pbj-dm__modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 9998;
}
.pbj-dm__modal-overlay.is-open{
  opacity: 1;
  pointer-events: auto;
}

.pbj-dm__modal{
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  width: min(520px, 92vw);
  padding: 18px 18px 16px;
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 9999;
}
.pbj-dm__modal.is-open{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.pbj-dm__modal-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #3B2F2F;
  text-align: center;
}

.pbj-dm__modal-close{
  position: absolute;
  top: 8px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #f2f2f2;
  color: #333;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.pbj-dm__modal-form{
  display: grid;
  gap: 12px;
}

.pbj-dm__form-row{
  display: grid;
  gap: 6px;
}
.pbj-dm__form-row label{
  font-size: 13px;
  color: #5F6B7A;
}
.pbj-dm__form-row input{
  width: 100%;
  border: 1px solid #E3E7EB;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}
.pbj-dm__form-row input:focus{
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212,175,55,.18);
}

.pbj-dm__form-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.pbj-dm__modal-helper {
  margin: -4px 0 12px;
  font-size: 13px;
  color: #8B6F33;         /* soft champagne/gold accent */
  text-align: center;
  line-height: 1.4;
}

/* Pricing shortcode — make cards full width across breakpoints */
.pbj-dm--pricing .pbj-dm__exp-grid{
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.pbj-dm--pricing .pbj-dm__exp-card{
  width: 100%;
  max-width: 100%;
  flex-basis: 100%;
}

/* Re-assert full width at responsive breakpoints */
@media (max-width: 900px){
  .pbj-dm--pricing .pbj-dm__exp-card{
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}
@media (max-width: 600px){
  .pbj-dm--pricing .pbj-dm__exp-card{
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* CTA wrapper */
.pbj-cta-wrap { text-align: center; }

/* Microcopy (optional) */
.pbj-cta-micro {
  color: #3B2F2F;
  opacity: 0.9;
  font-weight: 500;
}

/* Button */
.pbj-cta-btn {
  display: inline-block;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  background: #D4AF37;         /* refined gold */
  color: #3B2F2F;              /* dark text */
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  transition: transform .08s ease, box-shadow .18s ease, filter .18s ease;
}

.pbj-cta-btn:hover,
.pbj-cta-btn:focus {
  filter: saturate(1.05) brightness(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
  transform: translateY(-1px);
}

.pbj-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

