/* Concierge, confirmation, success, upsell and download pages. Builds on mpp-styles / mpp-info / mpp-concierge. */

/* ---- Concierge ---- */
.concierge-new .hero-buttons {
  flex-wrap: wrap;
  gap: 14px;
}
.concierge-hero-scene > img {
  height: 100%;
}
.concierge-benefits article:nth-child(3n + 2) {
  background: #e9ddf2;
}
.concierge-benefits article:nth-child(3n) {
  background: #e3e9d7;
}
#how-it-works {
  scroll-margin-top: 90px;
}
.concierge-level-grid .concierge-checklist {
  flex: 1;
  margin: 18px 0 25px;
}
.concierge-level-grid .concierge-checklist > div {
  font-size: 13px;
  padding: 10px 0;
}
.concierge-level-grid .btn-dark,
.concierge-level-grid .btn-outline {
  width: 100%;
  justify-content: space-between;
}
.concierge-enquire .text-link {
  display: inline-flex;
}
#concierge-consultation-form .button-text {
  display: inline-flex;
  align-items: center;
  gap: 30px;
}
#concierge-consultation-form .loading-spinner,
#concierge-consultation-form button:disabled .button-text {
  display: none;
}
#concierge-consultation-form button:disabled .loading-spinner {
  display: inline;
}
.invalid-feedback {
  display: none;
  font-size: 12px;
  font-weight: 500;
  color: #ad4139;
}
.was-validated :invalid {
  border-color: #e95e52;
}
.was-validated :invalid + .invalid-feedback {
  display: block;
}

/* ---- Shared order pages ---- */
.checkout-page {
  padding-top: 70px;
}
.checkout-page > .commerce-lead {
  margin: 0 6%;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.8;
  color: #554f4d;
}
.checkout-page h2 {
  letter-spacing: -0.04em;
}
.commerce-note {
  font-size: 14px;
  color: #68605c;
  line-height: 1.7;
}
.commerce-subhead {
  font-size: 18px;
  margin: 35px 0 15px;
}
.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}
.checkout-page > .commerce-actions {
  margin: 30px 6% 0;
}
.checkout-summary h2 {
  font-size: 26px;
  margin-bottom: 8px;
}
.checkout-summary > .btn-dark,
.checkout-summary > .btn-outline {
  width: 100%;
  justify-content: space-between;
  margin-bottom: 10px;
}
.commerce-small,
.checkout-summary .commerce-small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 6px;
}
.item-placeholder {
  width: 67px;
  height: 77px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #e9ddf2;
  color: #9b64b4;
  font-size: 28px;
}
.checkout-item > div {
  min-width: 0;
}
.checkout-item span svg {
  vertical-align: -2px;
}
.summary-total > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.download-info {
  margin: 10px 0 20px;
}
.download-info > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid #d6c9c1;
  font-size: 13px;
}
.download-info dt {
  font-weight: 800;
}
.download-info dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.commerce-callout {
  display: flex;
  gap: 12px;
  background: #e9dff1;
  padding: 18px;
  font-size: 12px;
  line-height: 1.6;
}
.commerce-callout svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.commerce-callout p {
  margin: 0;
}
.checkout-item .commerce-ready {
  color: #6a7e4f;
  font-weight: 800;
}
.checkout-page > .eyebrow {
  overflow-wrap: anywhere;
}
.commerce-links {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
  display: grid;
  gap: 12px;
  font-size: 12px;
}
.commerce-links li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.commerce-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 800;
}
.commerce-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.commerce-cards article {
  border: 1px solid #251d28;
  border-radius: 12px;
  padding: 24px;
  background: #f8e5c9;
}
.commerce-cards article:nth-child(2) {
  background: #e9ddf2;
}
.commerce-cards h3 {
  font-size: 22px;
  margin: 18px 0 8px;
}
.commerce-cards p {
  font-size: 13px;
  line-height: 1.7;
}
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 1s ease-out;
}

/* ---- Confirmation (thank-you) pages ---- */
.checkout-done .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.done-steps {
  list-style: none;
  padding: 0;
  margin: 10px auto 40px;
  max-width: 940px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  text-align: left;
}
.done-steps li {
  border: 1px solid #251d28;
  border-radius: 12px;
  padding: 24px;
  background: #f8e5c9;
}
.done-steps li:nth-child(2) {
  background: #e9ddf2;
}
.done-steps li:nth-child(3) {
  background: #e3e9d7;
}
.done-steps li > span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid;
  background: #fffaf4;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}
.done-steps h2 {
  font-size: 22px;
  margin: 18px 0 8px;
}
.checkout-done .done-steps p {
  margin: 0;
  max-width: none;
  font-size: 13px;
}
.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.checkout-done .done-actions .btn-dark {
  margin: 0;
}

/* ---- Upsell ---- */
.products-grid.upsell-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: 25px;
}
.upsell-desc {
  font-size: 12px;
  line-height: 1.6;
  color: #6e6763;
}
.upsell-save {
  font-size: 11px;
  font-weight: 800;
  color: #6a7e4f;
  margin: 8px 0 14px;
}
.upsell-card-actions {
  display: grid;
  gap: 8px;
}
.upsell-card-actions > * {
  padding: 14px;
  gap: 10px;
}
.upsell-bundle {
  margin: 30px 6% 0;
  padding: 45px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  background: #e9ddf0;
  border: 1px solid #251d28;
  border-radius: 12px;
}
.upsell-bundle .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.upsell-bundle h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  margin: 18px 0;
}
.upsell-bundle p {
  font-size: 15px;
  line-height: 1.7;
}
.upsell-bundle-price {
  background: #fffaf4;
  border: 1px solid #251d28;
  box-shadow: 6px 6px 0 #251d28;
  padding: 30px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.upsell-bundle-price > strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 52px;
  letter-spacing: -0.06em;
}
.upsell-bundle-price .btn-dark {
  width: 100%;
  margin-top: 8px;
}
.upsell-bundle-price small {
  font-size: 11px;
  color: #746a63;
}

/* ---- Download ---- */
.download-main,
.download-file {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #d6c9c1;
  padding: 18px 0;
}
.download-main {
  background: #f4e9de;
  border: 0;
  padding: 24px;
  flex-wrap: wrap;
}
.download-main > svg,
.download-file > svg {
  flex-shrink: 0;
  color: #9b64b4;
}
.download-main > div,
.download-file > div {
  flex: 1;
  min-width: 0;
}
.download-main strong,
.download-main span,
.download-main small,
.download-file strong,
.download-file span {
  display: block;
}
.download-main strong {
  font-size: 15px;
}
.download-main span,
.download-file span {
  font-size: 12px;
  color: #7d746e;
  margin-top: 5px;
  line-height: 1.5;
}
.download-main small {
  font-size: 11px;
  margin-top: 8px;
}
.download-file strong {
  font-size: 13px;
}
.download-files {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
}
.download-file .btn-outline {
  padding: 12px;
}
.download-tips {
  margin: 40px 6% 0;
}
.download-tips h2 {
  font-size: 29px;
}
.download-tips > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.download-tips article {
  border: 1px solid #d6c9c1;
  border-radius: 12px;
  padding: 22px;
}
.download-tips article > svg {
  color: #9b64b4;
}
.download-tips h3 {
  font-size: 19px;
  margin: 14px 0 10px;
}
.download-tips ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.download-tips a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .download-tips > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 740px) {
  .checkout-page {
    padding-top: 45px;
  }
  .checkout-page h1 {
    font-size: clamp(38px, 11vw, 51px);
  }
  .done-steps,
  .commerce-cards,
  .download-files,
  .download-tips > div,
  .upsell-bundle {
    grid-template-columns: 1fr;
  }
  .upsell-bundle {
    padding: 26px;
    gap: 26px;
  }
  .download-main .btn-dark {
    width: 100%;
  }
  .checkout-summary {
    padding: 24px;
  }
  .commerce-actions > * {
    flex: 1 1 100%;
  }
}
.checkout-page > .checkout-done {
  padding-top: 20px;
}

/* Checkout form extras (live payment + promo; matches reference layout) */
.checkout-cols .checkout-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.checkout-cols .checkout-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  padding: 0;
  flex-shrink: 0;
  accent-color: #9b64b4;
}
.checkout-cols .checkout-check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.checkout-billing {
  gap: 14px;
  padding: 8px 0 4px;
}
.checkout-billing[hidden] {
  display: none !important;
}
.checkout-billing:not([hidden]) {
  display: grid;
}
.checkout-cols select {
  width: 100%;
  border: 1px solid #d6c7d5;
  background: #fffaf4;
  border-radius: 0;
  padding: 17px;
  outline: 0;
  font-size: 13px;
}
.checkout-cols .is-invalid {
  border-color: #e95e52 !important;
}
.checkout-remove {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #77706c;
}
.checkout-remove:hover {
  color: #e95e52;
}
.summary-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
}
.summary-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #746a63;
}
.checkout-promo {
  display: flex;
  gap: 8px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}
.checkout-promo input {
  flex: 1 1 140px;
  min-width: 0;
  border: 1px solid #d6c9c1;
  background: #fffaf4;
  padding: 12px 14px;
  font-size: 13px;
}
.checkout-promo .btn-outline,
.checkout-promo .btn-dark {
  flex: 0 0 auto;
}
.checkout-cols form .btn-dark {
  width: 100%;
  justify-content: space-between;
  margin-top: 6px;
}
