/* Copyright (c) 2024-2026 SuperStore Seven Technology Solutions LLP. All rights reserved.
 *
 * Per-type landing pages (/instagram-qr-code-generator …): the hero holds the
 * server-rendered static wizard (<!-- @partial:static-wizard type=… -->) in
 * place of the old sign-up button. Hero columns are 700–900px; the wizard needs
 * room for form + preview, so it breaks out to 1100px centred on the column.
 * Margins, not transform — a transformed ancestor breaks position:fixed modals.
 */
.qr-type-wizard {
  --qr-type-wizard-w: min(1100px, calc(100vw - 48px));
  width: var(--qr-type-wizard-w);
  margin-left: calc((100% - var(--qr-type-wizard-w)) / 2);
  margin-top: 8px;
  margin-bottom: 24px;
  text-align: left;
  scroll-margin-top: 88px;
}

@media (max-width: 640px) {
  .qr-type-wizard { --qr-type-wizard-w: calc(100vw - 24px); }
}

/* Rich-type forms (vCard, Menu, Event…) — only on their dedicated pages. */
.qr-type-wizard .ds-wizard-repeat { display: flex; flex-direction: column; gap: 10px; }
.qr-type-wizard .ds-wizard-repeat-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px 40px 12px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
}
.qr-type-wizard .ds-wizard-repeat-row .ds-wizard-field { margin: 0; }
.qr-type-wizard .ds-wizard-repeat-remove {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid #e5e7eb; background: #fff; color: #525252;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.qr-type-wizard .ds-wizard-repeat-remove:hover { color: #b91c1c; border-color: #fca5a5; }
.qr-type-wizard .ds-wizard-repeat-add {
  margin-top: 10px; padding: 8px 14px; border-radius: 10px;
  border: 1px dashed #059669; background: #fff; color: #047857;
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.qr-type-wizard .ds-wizard-repeat-add:hover { background: #ecfdf5; }
.qr-type-wizard input[type="file"].ds-wizard-input { padding: 8px; background: #fff; cursor: pointer; }
.qr-type-wizard .ds-wizard-upload-status { margin-top: 6px; font-size: 13px; color: #047857; min-height: 1em; }
.qr-type-wizard .ds-wizard-upload-status.is-error { color: #b91c1c; }
.qr-type-wizard .ds-wizard-repeat-remove:focus-visible,
.qr-type-wizard .ds-wizard-repeat-add:focus-visible { outline: 2px solid #059669; outline-offset: 2px; }

@media (max-width: 640px) {
  .qr-type-wizard .ds-wizard-repeat-row { grid-template-columns: 1fr; }
}
