/* =========================================================
   Temple Website Styles
   Extends: index.css (Temple Design System)
   Scope: Public Website (Donation, Campaigns, Info Pages)
   Filename: website.css
   ========================================================= */
/* =========================================================
   Brand CSS Variables (Runtime)
   ========================================================= */

:root {
  --color-primary: #F97316;
  --color-primary-dark: #EA580C;
  --color-primary-light: #FED7AA;

  --color-secondary: #1F2937; /* black/dark */
}

/* ---------- Page Background ---------- */
body {
  background: radial-gradient(
    circle at 20% 20%,
    #fff7df 0%,
    #fff4cc 35%,
    #ffe9a8 100%
  );
}

/* body {
  overflow: hidden;
} */


/* ---------- Page Layout ---------- */
.page.layout {
  /* display: grid; */
  /* grid-template-columns: 50% 50%; */
  min-height: 100vh;
  align-items: stretch;
}

/* ---------- Columns ---------- */
.layout-left,
.layout-right {
  padding: 3rem;
  display: flex;
}

.layout-left {
  justify-content: center;
}

.layout-right {
  justify-content: center;
  align-items: center;
}

/* Ensure content fills column */
.layout-left .panel {
  width: 100%;
  max-width: 700px;
}

.left-stack p + p {
  margin-top: 0.75rem;
}
/* ---------- Panels & Cards ---------- */
.panel {
  width: 100%;
}
.card {
  @apply bg-card;
}

.muted {
  @apply text-muted;
  font-size: var(--text-sm);
}

.card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-gray-lighter);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.panel__header {
  margin-bottom: 2rem; /* creates clear separation */
}
/* ---------- Hero Section ---------- */
.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--color-gray-light);
}

.hero-title {
  @apply font-serif;
}

.hero-subtitle {
  @apply font-sans;
}

/* Temple name – dominant */
.hero-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

/* Campaign name – secondary */
.hero-subtitle {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

/* ---------- Forms ---------- */
label {
  font-weight: 600;
  font-size: var(--text-sm);

  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

input,
select,
textarea {
  height: 42px;
  padding: 0 0.75rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-gray-lighter);
  background: var(--color-surface-white);

  font-weight: 400;
  font-size: var(--text-sm);
  /* color: #4b5563; */
  color: #9ca3af;
}

::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* ---------- Product Options ---------- */

.product-option {
  border: 1px solid var(--color-gray-lighter);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  background: var(--color-surface-white);
}

.product-option:has(input[type="radio"]:checked) {
  border-color: var(--color-primary);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.15);
}
.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.product-radio {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;

  height: 40px;                 /* 🔑 match input height */
  padding: 0 14px;              /* reduced vertical padding */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;

  cursor: pointer;
  white-space: nowrap;
  transition: border 0.2s, background 0.2s;

  min-width: 140px;
  justify-content: center;
}
.product-radio span {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.product-radio input[type="radio"] {
  margin: 0;
  accent-color: #f97316;
}
.product-radio:hover {
  border-color: #f97316;
}

.product-radio:has(input[type="radio"]:checked) {
  border-color: #f97316;
  background: #fff7ed;
}

/* ---------- Instalment Frequency Options ---------- */

.installmentFrequency-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.installmentFrequency-radio {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;

  height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;

  cursor: pointer;
  white-space: nowrap;
  transition: border 0.2s, background 0.2s;

  min-width: 120px;
  justify-content: center;
}

.installmentFrequency-radio span {
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.installmentFrequency-radio input[type="radio"] {
  margin: 0;
  accent-color: #f97316;
  width: 16px;
  height: 16px;
}

.installmentFrequency-radio:hover {
  border-color: #f97316;
}

.installmentFrequency-radio:has(input[type="radio"]:checked) {
  border-color: #f97316;
  background: #fff7ed;
}


/* ---------- Grids ---------- */
.grid.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ---------- Section Titles ---------- */
.section-title {
  margin: 2rem 0 1.25rem;
  font-size: 1rem;
  /* font-size: 1.1rem; */
  font-weight: 700;
  color: var(--color-gray-dark);
  border-bottom: 1px solid var(--color-gray-lighter);
  /* padding-bottom: 0.5rem; */
}


/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.05s ease, box-shadow 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary,
.btn.danger {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.25);
}

.btn.primary:hover,
.btn.danger:hover {
  background: var(--color-primary-dark);
}

.inline-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

button.primary,
button.secondary {
  height: 40px;
  padding: 0 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 999px;
}
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 9999px; /* pill shape */
  min-height: 40px;
}
/* Bigger, clearer CTA */
.check-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 9999px; /* pill shape */
  min-height: 40px;
}


/* ---------- Brochure Image ---------- */
.brochure-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.brochure-image {
  position: sticky;
  top: 3rem;
}

/* ---------- Animations ---------- */
#formSection {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .page.layout {
    grid-template-columns: 1fr;
  }

  .layout-right {
    order: -1;
  }

  .layout-right {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* ✅ top align brochure */
    padding: 3rem;
  }


  .layout-left {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
  }
}

/* ---------- Disabled Inputs (Global) ---------- */
input:disabled,
select:disabled,
textarea:disabled {
  background-color: #f3f4f6;        /* light grey */
  color: #9ca3af;                   /* muted text */
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 1;                       /* prevent browser default fade */
}

/* ---------- Misc ---------- */
.hint {
  font-size: 0.8125rem; /* ~13px */
  color: var(--color-gray-light);
  line-height: 1.4;
}
.blessing {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500; 
}
.hidden {
  display: none !important;
}

/* ---------- Wrappers Form/Screen ---------- */


#lookupScreen {
  display: grid;
  min-height: 100vh;
  align-items: start;
}

@media (min-width: 901px) {
  #lookupScreen {
    display: grid;
    grid-template-columns: 50% 50%;
  }
}

/* ---------- Temporary - for the Launch ---------- */
#campaignSelect {
  display: none;
}

#campaignSelect + * {
  display: none;
}

/* ---------- Screens ---------- */

/* Full-width second screen */
.form-screen {

  display: flex;
  justify-content: center;
  padding: 3rem 2rem;     /* space top/bottom/left/right */
  height: 100vh;          /* lock viewport height */
  box-sizing: border-box;

  /* grid-column: 1 / -1;
  display: none;       */
  max-width: 800px;
  /* margin: 0 auto; */
  /* padding: 3rem 2rem; */
}

/* Screens are grid rows */
.screen {
  display: contents;
}

/* When visible, form spans full width */
.screen-form > .panel {
  grid-column: 1 / -1;
  max-width: 1100px;
  margin: 0 auto;
}


/* Form sections */
.form-section {
  /* margin-bottom: 2.5rem; */
  /* padding-bottom: 2rem; */
  border-bottom: 1px solid var(--color-gray-lighter);
}

/* .form-section:last-of-type {
  border-bottom: none;
} */

/* Section titles */
.form-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--color-gray-dark);
}

/* Grid breathing room */
.grid.two {
  gap: 1.25rem 2rem;
}

.pay-now-text {
  font-size: 0.95rem;
  color: var(--color-gray-dark);
  align-self: center;
  background: #fff;
  border: 1px solid var(--color-gray-lighter);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ---------- Form  ---------- */


#formWrapper {
  display: flex;
  justify-content: center;
  padding: 24px;
}

/* Temple logo */
.form-logo {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

/* Temple name */
.form-temple-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-gray-dark);
}

/* Keep the temple heading font consistent across sections */
.hero-title,
.form-temple-name {
  font-family: var(--font-serif);
}

.form-intro {
  flex-shrink: 0;
  max-width: 720px;
  margin: 0 auto 1.25rem;   
  text-align: center;
}

.form-intro::after {
  content: "";
  display: block;
  /* background: #f97316;  */
  border-bottom: 1px solid var(--color-primary-dark);
  /* background: var(--color-secondary); */
  width: 240px;
  height: 1px;
  margin: 0.5rem auto 0;

}

/* ---------- Form Container ---------- */
.form-screen .panel {
  width: 100%;
  /* max-width: 1100px;       */
  background: var(--color-surface-white);
  border-radius: 16px;
  border: 1px solid var(--color-gray-lighter);
  padding: 3rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);

  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6rem);
}

/* Scrollable form content */
.form-body {
  overflow-y: auto;
  padding-right: 0.5rem; /* avoids scrollbar overlap */
  flex: 1 1 auto;
  min-height: 0;             /* allow scrolling inside flex */
  padding: 0 32px 32px;
}


/* Footer layout */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 12px 32px;
  /* flex-shrink: 0;   */
  flex-wrap: nowrap;   /* ⬅ CRITICAL */
}

.form-footer .buttons {
  flex: 0 0 auto; 
  width: auto;        /* override any width:100% */
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  border: none;
}

/* ---------- Payment Timing (Pay Now / Pay Later) ---------- */
.payment-timing {
  flex: 0 0 auto;
}

/* ---------- Footer Divider (matches intro orange line) ---------- */

.form-footer {
  position: relative; /* 🔑 anchor for ::before */
}

.form-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: 240px;
  height: 1px;
  background: var(--color-primary-dark);

  pointer-events: none; /* safety */
}
/* 
.form-footer {
  padding-top: 20px;
} */

/* .form-footer::before { */
  /* content: ""; */
  /* display: block; */
  /* border-top: 1px solid var(--color-primary-dark); */
  /* width: 240px; */
  /* margin: 0 auto 12px auto;  */
  /* space below line */
/* } */

/* ---------- Summary ---------- */
.summary-box {
  flex: 0 0 240px;     /* ⬅ fixed column */
  max-width: 240px;
  margin-top: 0;              /* ⬅ remove vertical stacking */
  margin-left: auto;          /* ⬅ push it to the right */
  padding: 12px 16px;
  /* background: #f8f8f8; */
  /* border-radius: 6px; */
  font-size: 0.8rem;
  /* min-width: 260px;           ⬅ keeps it readable */

  background: rgba(255, 255, 255, 0.7);   /* ✅ same as consent */
  border: 1px dashed var(--color-gray-lighter); /* ✅ same border language */
  border-radius: 12px;                   /* match consent softness */
}

.summary-box p {
  margin: 4px 0;
  line-height: 1.3;
}

/* --- Gift Aid hard reset --- */
#giftAidSection {
  text-align: left !important;
}

/* Neutralize parent grid/flex */
.gift-aid-wrapper {
  display: block;
  margin-top: 12px;
}

/* Checkbox + text in ONE ROW */
.gift-aid-row {
  display: flex !important;
  flex-direction: row;
  align-items: center !important;
  gap: 14px;
  width: fit-content;
  padding: 10px 14px;
  background: #fff;
  font-size: 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
}

/* Checkbox sizing */
.gift-aid-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #f97316;
  cursor: pointer;
}

/* Text styling */
.gift-aid-row span {
  display: block;
  font-size: 0.9rem;
  font-size: inherit;  
  font-weight: 500;
  line-height: 1.4;
  color: #1f2937;
}

.consent-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 6px 10px;
  font-size: 0.85rem;
  color: var(--color-gray);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--color-gray-lighter);
  border-radius: 10px;
  width: fit-content;
}

.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f97316;
  cursor: not-allowed;
}

/* Hover */
.gift-aid-row:hover {
  border-color: #f97316;
  background: #fff7ed;
}


/* =========================================================
   Payment Status Page (Public Website)
   ========================================================= */

.payment-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.payment-card {
  max-width: 600px;
  width: 100%;
  padding: 32px 28px;
  background: var(--color-surface-white);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.payment-logo {
  width: 90px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.payment-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-gray-dark);
}

.payment-message {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-gray);
}

/* Action buttons */
.payment-actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center; /* ✅ THIS is the key */
  flex-wrap: wrap;
}
/* ---------- Payment Return Buttons ---------- */
.payment-page .btn {
  min-height: 48px;
  padding: 0.75rem 1.75rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;              /* 🔑 stops baseline drift */
  border-radius: 9999px;
  border: none;
  outline: none;
  box-sizing: border-box;
}

/* Primary – Orange */
.payment-page .btn.primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.25);
}

.payment-page .btn.primary:hover {
  background: var(--color-primary-dark);
}

/* ✅ Secondary – Dark Grey (POS style) */
.payment-page .btn.secondary {
  background: var(--color-secondary);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.payment-page .btn.secondary:hover {
  background: #374151;
}

/* FORCED BEHAVIOUR - CAN BE CHANGED LATER */


/* Lock background scroll; only the form should scroll */
html, body {
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}
/* Form wrapper must not behave like a horizontal flex row */
#formWrapper {
  display: block !important;   /* strongest: removes flex behavior */
  padding: 24px;
}

/* Ensure the form itself stacks sections vertically */
#userForm {
  max-width: 820px;
  height: 90vh;              
  margin: 24px auto;
  background: #fffbe6;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);


  display: flex;
  flex-direction: column !important;
  width: 100%;

  overflow: hidden;

  /* height: calc(100vh - 4rem);  */
  /* display: none;            */
  /* max-height: 85vh;         */
  /* overflow-y: auto;         */
  /* scroll-behavior: smooth; */
}

/* Ensure the CTA button is visible when form fields are disabled */
#userForm .btn {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

/* Give the submit CTA a visible button style */
#submitBtn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.25);
}

#submitBtn:hover {
  background: var(--color-primary-dark);
}

#userForm::-webkit-scrollbar {
  width: 8px;
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto !important;
    height: auto !important;
  }

  #userForm {
    height: auto;
    max-height: none;
  }
}

tinput[type="text"],
input[type="contact"],
input[type="number"],
input[type="email"],
input[type="phone"],
input[type="date"],
input[type="password"],
select,
textarea {
  padding: 6px 10px;
  height: auto;
  line-height: 1.2;
}


/* =========================
   MOBILE FIX (CRITICAL)
   ========================= */
@media (max-width: 900px) {

  /* Allow the page to grow and scroll */
  html, body {
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  /* Kill desktop grid on mobile */
  #lookupScreen {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }

  /* Stack sections vertically */
  .layout-left,
  .layout-right {
    width: 100%;
    padding: 1.5rem;
  }

  /* Remove sticky behavior on mobile */
  .brochure-image {
    position: static !important;
    max-height: none !important;
    width: 100%;
  }

  /* Prevent vh lock issues */
  .page.layout {
    min-height: auto !important;
  }
}


/* =========================
   MOBILE FIRST HERO FIX
   ========================= */
@media (max-width: 900px) {

  /* Kill desktop grid completely */
  #lookupScreen {
    display: block !important;
  }

  /* Move image to the top visually */
  .layout-right {
    order: -1;
    width: 100%;
    padding: 1.25rem;
  }

  .layout-left {
    width: 100%;
    padding: 1.25rem;
  }

  /* Full-width, sacred image */
  .brochure-image {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 1rem;
    position: static !important;
  }

  /* Improve text readability */
  .hero-title {
    white-space: normal;
    text-align: center;
  }

  .hero-subtitle,
  .muted {
    text-align: center;
  }
}

/* =========================
   iOS SAFARI SCROLL FIX
   ========================= */
@supports (-webkit-touch-callout: none) {

  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* Kill vh-based locks */
  #lookupScreen,
  .page.layout {
    min-height: auto !important;
    height: auto !important;
  }
}

/* =========================
   MOBILE FORM FIX (SCREEN 2)
   ========================= */
@media (max-width: 768px) {

  /* Force all grids to single column */
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr !important;
  }

  /* Ensure inputs span full width */
  .grid.two > *,
  .grid.three > * {
    width: 100%;
  }

  /* Reduce side padding for small screens */
  .form-body {
    padding: 0 16px 24px !important;
  }

  /* Prevent form container squeezing */
  #userForm {
    margin: 0 auto !important;
    width: 100%;
    max-width: 100%;
  }

  /* Product & installment options stack nicely */
  .product-options,
  .installmentFrequency-options {
    flex-direction: column;
  }

  .product-radio,
  .installmentFrequency-radio {
    width: 100%;
    justify-content: flex-start;
  }
}


/* =========================
   FINAL MOBILE PRODUCT FIX
   (GRID-BASED – SAFARI SAFE)
   ========================= */
@media (max-width: 768px) {

  /* Stack products vertically */
  #productOptions {
    display: block !important;
  }

  /* Each product row */
  #productOptions > * {
    display: grid !important;
    grid-template-columns: auto 1fr; /* radio | text */
    align-items: center;
    column-gap: 12px;

    width: 100% !important;
    box-sizing: border-box;
  }

  /* Radio button */
  #productOptions input[type="radio"] {
    grid-column: 1;
  }

  /* Product text (whatever element it is) */
  #productOptions span,
  #productOptions label,
  #productOptions p,
  #productOptions div {
    grid-column: 2;
    white-space: normal !important;
    word-break: break-word;
    text-align: left;
  }
}


/* =========================
   FORCE SCREEN 1 HIDE ON MOBILE
   ========================= */
@media (max-width: 768px) {

  /* hidden must override ALL mobile layout rules */
  .hidden {
    display: none !important;
  }

  /* specifically ensure lookup screen can be hidden */
  #lookupScreen.hidden {
    display: none !important;
  }
}

/* Force summary + button into one row */
.form-footer .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

/* Summary on the left, constrained width */
.form-footer .summary-box {
  flex: 0 0 240px;
  max-width: 240px;
  margin: 0; /* important */
}

/* Button on the right, do not stretch */
.form-footer .buttons {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Mobile: stack */
@media (max-width: 768px) {
  .form-footer .footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-footer .summary-box {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .form-footer .buttons {
    justify-content: center;
  }
}

/* 🔒 FORCE compact summary typography */
.form-footer .summary-box,
.form-footer .summary-box p,
.form-footer .summary-box span,
.form-footer .summary-box strong {
  font-size: 0.8rem;
  line-height: 1.3;
}