/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000;
}

/* ─── Page = dark brand backdrop, card floats on top ─── */
.dr-demo-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

/* Product screenshot behind the card — blurred and heavily dimmed */
.bg-decoration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
  filter: blur(3px);
  transform: scale(1.03); /* hides the blur's soft edges */
}

/* ─── The card ─── */
.demo-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.45);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 38px;
  row-gap: 34px; /* matches the card's top padding so the right panel sits with equal air above and below */
  padding: 34px 38px 0;
}

/* ponytail: grid items default to min-width:auto, so the max-content logo track
   inflated the column to ~2000px and pushed everything off-screen. */
.demo-card > * {
  min-width: 0;
}

/* ─── Card left: brand + form ─── */
.card-left {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  width: 120px;
  height: 27.2px;
}

.form-container {
  margin-top: 40px;
}

.form-header h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 31px;
  line-height: 1.15;
  color: #0a0d26;
}

.form-header h1 .accent {
  color: #ff3b6a;
}

/* Progress */
.progress-section {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-label {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 20px;
  color: #6b7280;
  text-align: center;
}

/* Numbered circles stay in the DOM for script.js, but the bar tells the story */
.steps-row {
  display: none;
}

.progress-track {
  height: 5px;
  background: #f1f2f6;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ff3b6a;
  border-radius: 9999px;
  width: 33.33%;
  transition: width 0.4s ease;
}

#demo-form {
  position: relative;
  overflow: hidden; /* fallback for browsers without overflow-clip-margin */
  overflow: clip;
  overflow-clip-margin: 14px; /* lets the selected-tile badge + glow paint past the edge */
}

/* ponytail: floor the form area at step 2's height so the card doesn't shrink
   on step 1. Step 3 is taller and grows past it. Two-column layout only. */
@media (min-width: 901px) {
  #demo-form { min-height: 293px; } /* = step 2, so the card height matches on steps 1 and 2 */
}

/* Form Steps */
.form-step {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
  position: relative;
}

.form-step.active {
  display: flex;
}

/* Fields */
.fields-grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end; /* keeps the inputs level when one label wraps to two lines */
}

.fields-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

/* Green tick once the field holds a value (class set in script.js) */
.field-group.filled::after {
  content: '';
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4 10.5l4 4 8-9' stroke='%2322c55e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  pointer-events: none;
}

.field-group.filled input {
  padding-right: 38px;
}

/* a filled select swaps its chevron for the tick, so the mark lands in the
   same spot as it does on text inputs */
.field-group.filled .select-wrapper::after {
  display: none;
}

.field-group.filled select {
  padding-right: 38px;
}

.field-group label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 18px;
  color: #4b5563;
}

.field-group input,
.field-group select {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #d8dbe3;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14.9px;
  line-height: 17.6px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ─── Process tiles (step 2) ─── */
#process-group > label {
  font-size: 16px;
  line-height: 22px;
}


.process-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 8px;
  min-height: 86px;
  text-align: center;
  background: #f7f8fa;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  color: #6b7280;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.tile svg {
  /* icons keep their native aspect ratio inside a square box */
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke-width: 11.2; /* source icons are drawn at ~130px, so strokes stay even */
  transition: transform 0.2s ease;
}

.tile:hover svg {
  transform: translateY(-2px) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .tile:hover svg { transform: none; }
}

.tile span {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.3;
  color: #1f2937;
}

.tile:hover {
  border-color: #e5e7eb;
  background: #f1f2f6;
}

.tile:has(input:checked) {
  background: #fff;
  border-color: #ff3b6a;
  color: #ff3b6a;
  box-shadow: 0 6px 18px -6px rgba(255, 59, 106, 0.45);
}

.tile:has(input:checked) span {
  color: #ff3b6a;
}

.tile:has(input:focus-visible) {
  outline: 2px solid #ff3b6a;
  outline-offset: 2px;
}

/* Selected badge */
/* ponytail: badge sits INSIDE the tile. Hanging it off the corner (-8px) got
   clipped by #demo-form on the right-hand column in Safari, which ignores
   overflow-clip-margin. */
.tile:has(input:checked)::after {
  content: '';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 19px;
  height: 19px;
  border-radius: 9999px;
  background: #ff3b6a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

.field-group .tiles-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
  font-family: 'Poppins', sans-serif;
}

/* ─── Phone field with flags (intl-tel-input) ─── */
.iti {
  width: 100%;
}

.iti__country-list,
.iti__dropdown-content {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 10px;
  border-color: #d8dbe3;
  box-shadow: 0 12px 28px -8px rgba(10, 13, 38, 0.25);
}

.iti__search-input {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border-radius: 10px 10px 0 0;
}

.iti__selected-country {
  border-radius: 8px 0 0 8px;
}

/* The flag button sits inside the input's left padding, so whatever Chrome
   paints on an autofilled field shows through behind it. Give it our own
   background instead. */
.iti__country-container,
.iti__selected-country,
.iti__selected-country-primary {
  background: #fff;
  border-radius: 8px 0 0 8px;
}

/* On WordPress the theme styles every <button>, and ITI's flag picker is a
   button — its :hover paints brand pink over the flag. Theme selectors can
   out-specify ours, hence !important on this handful of properties. */
.iti .iti__selected-country,
.iti .iti__selected-country:hover,
.iti .iti__selected-country:focus,
.iti .iti__selected-country:active {
  background-color: #fff !important;
  background-image: none !important;
  color: inherit !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  min-height: 0 !important;
}

/* keep ITI's own subtle hover affordance */
.iti .iti__country-container:hover .iti__selected-country-primary,
.iti .iti__selected-country-primary:hover {
  background-color: #f3f4f6 !important;
}

/* Kill Chrome's autofill background/text colours on every field (the inset
   shadow trick — background-color itself can't be overridden). */
.field-group input:-webkit-autofill,
.field-group input:-webkit-autofill:hover,
.field-group input:-webkit-autofill:focus,
.field-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #111827;
  caret-color: #111827;
  transition: background-color 9999s ease-out 0s;
}

/* the dropdown's search box is an <input> inside .field-group — don't give it
   the form's heavy pink focus ring */
.field-group .iti__search-input:focus {
  border-color: #d8dbe3;
  box-shadow: none;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 18px;
  color: #374151;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  background: #f9fafb;
  transition: all 0.15s ease;
}

.checkbox-label input[type="checkbox"]:checked {
  background: #ff3b6a;
  border-color: #ff3b6a;
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.field-group input::placeholder {
  color: #9ca3af;
}

.field-group input:focus,
.field-group select:focus {
  border-color: #ff3b6a;
  box-shadow: 0 0 0 3px rgba(255, 59, 106, 0.12);
}

.field-group input.error,
.field-group select.error {
  border-color: #ef4444;
}

.field-error {
  display: block;
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  font-family: 'Poppins', sans-serif;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  color: #4b5563;
  cursor: pointer;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14.4px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: url('assets/chevron-down.png') center/contain no-repeat;
  pointer-events: none;
}

/* Buttons */
.nav-buttons {
  display: flex;
  gap: 14.4px;
  padding-top: 4px;
}

.nav-buttons.two-buttons {
  justify-content: center;
}

/* Customer quote under the step-1 button */
.step-quote {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 28px 0 0;
  padding: 16px 18px;
  background: #fbfcfd;
  border: 1px solid #eef0f4;
  border-radius: 12px;
}

.quote-avatar {
  width: 62px;
  align-self: stretch;
  height: auto;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  object-position: top center;
}

.quote-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.step-quote blockquote {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #1f2937;
}

.step-quote blockquote::before {
  content: '\201C';
  color: #ff3b6a;
}

.step-quote blockquote::after {
  content: '\201D';
  color: #ff3b6a;
}

.step-quote figcaption {
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #8a8f98;
}

.step-quote figcaption strong {
  display: block;
  font-weight: 700;
  color: #0a0d26;
}

p.privacy-note {
  margin: 6px 0 2px;
  font-size: 11.2px;
  line-height: 1.5;
  color: #8a8f98;
  text-align: center;
}

p.privacy-note a {
  color: inherit;
  text-decoration: underline;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7.2px;
  padding: 11px 21.6px;
  background: #ff3b6a;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14.9px;
  line-height: 22.3px;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px #fbcfe8, 0 4px 6px -4px #fbcfe8;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  flex: 1.66;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -3px #fbcfe8, 0 6px 8px -4px #fbcfe8;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
  flex: unset;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7.2px;
  padding: 11px 23.4px;
  background: transparent;
  color: #6b7280;
  border: 2px solid #f3f4f6;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14.9px;
  line-height: 22.3px;
  cursor: pointer;
  flex: 1;
}

button.btn-back:hover {
  background: transparent;
  color: #6b7280;
  border-color: #f3f4f6;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.btn-back svg,
.btn-primary svg {
  flex-shrink: 0;
}

/* ─── Card right: what you'll see ─── */
.card-right {
  background: #0a0d26;
  border-radius: 16px;
  padding: 26px 26px 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  align-self: stretch; /* run from the headline down to the bottom of the buttons */
  /* ...but stop growing on step 3, or space-between pulls the bullets apart */
  max-height: 430px; /* ~step 2 height; step 3 stops here instead of spreading */
  /* line up with the headline: logo height + .form-container top margin */
  margin-top: calc(27.2px + 40px);
}

.card-right::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -25%;
  width: 70%;
  height: 60%;
  background: #db2777;
  opacity: 0.28;
  filter: blur(70px);
  border-radius: 9999px;
  pointer-events: none;
}

.card-right h2 {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 25px;
  line-height: 1.3;
  color: #fff;
}

.checklist {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}

.checklist-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  color: #ff3b6a;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17.5px;
  line-height: 21px;
}

/* one-liners: white, regular weight */
.checklist-item p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: #fff;
}

.card-right-footer {
  position: relative;
  margin-top: auto;
  padding-top: 26px;
  padding-bottom: 26px;
}

.rating-badges {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}

.g2-badge-img {
  height: 68px;
  width: auto;
  object-fit: contain;
}

/* Bright variant — drop the `bright` class from .card-right to go back to dark */
.card-right.bright {
  background: linear-gradient(180deg, #fdf5e7 0%, #fffdf9 55%, #fff 100%);
  border: 1px solid #f2ece0;
}

/* the gradient carries the tint now — the corner blob would double up on it */
.card-right.bright::before {
  display: none;
}

.card-right.bright h2,
.card-right.bright .checklist-item p {
  color: #0a0d26;
}

.card-right.bright .check-icon {
  color: #ff3b6a;
}

/* ─── Card footer: trust + logos ─── */
.card-footer {
  grid-column: 1 / -1;
  border-top: 1px solid #eef0f4;
  padding: 14px 0 16px;
}

.trust-indicator {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 14.9px;
  letter-spacing: 0.2px;
  color: #111827;
  text-align: center;
  padding-bottom: 9px;
}

.logo-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex;
  gap: 28.8px;
  align-items: center;
  width: max-content;
  animation: scroll-logos 25s linear infinite;
}

.logo-item {
  width: 92px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-item img {
  max-width: 81px;
  max-height: 32px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.5;
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Scheduling Loader / Success (replace .form-container) ─── */
.scheduling-loader {
  text-align: center;
  padding: 40px 0;
}

.scheduling-loader .loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: #ff3b6a;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: scheduling-spin 0.8s linear infinite;
}

.scheduling-loader h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: #111827;
  margin-bottom: 8px;
}

.scheduling-loader p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  color: #6b7280;
}

@keyframes scheduling-spin {
  to { transform: rotate(360deg); }
}

.success-message {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  margin-bottom: 20px;
}

.success-message h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #111827;
  margin-bottom: 8px;
}

.success-message p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 24px;
  color: #6b7280;
}

.success-message .success-tour {
  margin-top: 16px;
}

.success-message .success-tour a {
  display: block;
  margin-top: 4px;
  color: #ff3b6a;
  font-weight: 600;
  text-decoration: none;
}

.success-message .success-tour a:hover {
  text-decoration: underline;
}

/* ─── Animations ─── */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-20px); }
}

.form-step.slide-in {
  animation: slideIn 0.3s ease forwards;
}

.form-step.slide-out {
  animation: slideOut 0.3s ease forwards;
  pointer-events: none;
}

/* ─── Responsive ─── */

/* Large desktops — grow the card, not the whitespace */
@media (min-width: 1700px) {
  .demo-card {
    max-width: 1240px;
    padding: 42px 46px 0;
    column-gap: 46px;
    row-gap: 42px;
  }

  .form-header h1 { font-size: 36px; }
  .card-right { padding: 26px 26px 0; }
  .card-right h2 { font-size: 27px; }
  .checklist-item p { font-size: 15px; line-height: 23px; }
  .g2-badge-img { height: 74px; }
}

/* Tablet — stack the two columns */
@media (max-width: 900px) {
  .dr-demo-page {
    padding: 28px 20px;
    align-items: flex-start;
  }

  .demo-card {
    grid-template-columns: 1fr;
    padding: 32px 28px 0;
    row-gap: 0;
    border-radius: 20px;
  }

  .card-right {
    margin-bottom: 0;
    margin-top: 32px;
    padding: 28px 24px 0;
  }

  .form-header h1 { font-size: 34px; }
  .card-right h2 { font-size: 22px; }
  .card-footer { margin-top: 28px; }
}

/* Mobile */
@media (max-width: 640px) {
  .step-quote { display: none; }

  #process-group > label { font-size: 17px; line-height: 23px; }

  .dr-demo-page {
    min-height: 100svh; /* ponytail: svh keeps the mobile URL bar from adding a scroll */
    padding: 12px 10px;
  }

  .demo-card {
    padding: 24px 18px 0;
    border-radius: 16px;
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.4);
  }

  .brand-logo { width: 118px; height: 26.7px; }

  .form-container { margin-top: 24px; }

  .form-header h1 { font-size: 29px; margin-top: 8px; }

  .progress-section { margin-top: 20px; }

  .form-step {
    margin-top: 18px;
    gap: 16px;
  }

  .fields-grid.two-col:not(.two-col-always) {
    grid-template-columns: 1fr;
  }

  .process-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .tile {
    min-height: 96px;
    padding: 14px 8px;
  }

  .field-group input,
  .field-group select {
    font-size: 16px; /* ponytail: 16px stops iOS zoom-on-focus */
    padding: 12px 14px;
  }

  .nav-buttons.two-buttons {
    flex-direction: column-reverse;
  }

  .btn-primary,
  .btn-back {
    flex: unset;
    width: 100%;
    padding: 14px 20px;
  }

  /* ── "What you'll see" panel: tighter under the form ── */
  .card-right {
    margin-top: 24px;
    padding: 24px 20px 0;
  }

  .card-right h2 { font-size: 20px; }

  .checklist {
    gap: 15px;
    margin-top: 20px;
  }

  .check-icon { width: 18px; font-size: 17px; }
  .checklist-item { gap: 11px; }
  .checklist-item p { font-size: 13.5px; line-height: 20px; }

  .card-right-footer {
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .g2-badge-img { height: 58px; }

  .card-footer { margin-top: 24px; padding: 16px 0 18px; }

  .logo-item { width: 85px; height: 32px; }
  .logo-item img { max-width: 70px; max-height: 26px; }
  .logo-track { gap: 20px; }
}

/* Small phones (≤380px) — stop the two-up name row from cramping */
@media (max-width: 380px) {
  .demo-card { padding: 22px 15px 0; }
  .form-header h1 { font-size: 26px; }
  .fields-grid.two-col { grid-template-columns: 1fr; }
  .card-right { padding: 22px 16px 0; }
}
