.kyg-request-section,
.kyg-request-section * {
  box-sizing: border-box;
}

.kyg-request-section {
  --kyg-navy: #1f1738;
  --kyg-ink: #292340;
  --kyg-muted: #69637a;
  --kyg-orange: #f26722;
  --kyg-orange-dark: #d84d0a;
  --kyg-peach: #ffad82;
  --kyg-gold: #f8d86f;
  --kyg-border: #ded9e4;
  --kyg-surface: #ffffff;
  --kyg-soft: #fff9f4;
  --kyg-success: #228b4e;
  --kyg-danger: #b42318;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow: hidden;
  overflow: clip;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: clamp(54px, 7vw, 110px) 24px;
  background:
    radial-gradient(circle at 95% 8%, rgba(255, 154, 111, 0.52), transparent 34%),
    radial-gradient(circle at 88% 88%, rgba(248, 216, 111, 0.72), transparent 36%),
    #fffdfa;
  color: var(--kyg-ink);
  font-family: inherit;
}


.kyg-request-shell > *,
.kyg-request-card,
.kyg-request-app,
.kyg-stage-content,
.kyg-location-panel,
.kyg-item-card,
.kyg-review-section {
  min-width: 0;
}

.kyg-request-section img,
.kyg-request-section svg,
.kyg-request-section canvas {
  max-width: 100%;
}

.kyg-request-section p,
.kyg-request-section dd,
.kyg-request-section small,
.kyg-request-section strong {
  overflow-wrap: anywhere;
}

.kyg-request-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -14%;
  right: -8%;
  width: min(58vw, 980px);
  height: 118%;
  border-radius: 42% 0 0 58% / 22% 0 0 78%;
  background: linear-gradient(155deg, rgba(255, 157, 111, 0.92), rgba(248, 216, 111, 0.88));
  filter: saturate(0.95);
}

.kyg-request-shell {
  width: min(1540px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(650px, 1.32fr);
  gap: clamp(38px, 5vw, 92px);
  align-items: start;
}

.kyg-request-copy {
  padding-top: clamp(14px, 2.7vw, 48px);
}

.kyg-request-eyebrow,
.kyg-stage-heading span {
  color: var(--kyg-orange);
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.kyg-request-eyebrow {
  font-size: clamp(14px, 1.1vw, 18px);
  margin-bottom: 18px;
}

.kyg-request-copy h2 {
  max-width: 800px;
  margin: 0;
  color: var(--kyg-navy);
  font-size: clamp(50px, 5.3vw, 92px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-weight: 900;
}

.kyg-request-copy > p {
  max-width: 710px;
  margin: 26px 0 34px;
  color: var(--kyg-ink);
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.55;
}

.kyg-request-benefits {
  display: grid;
  gap: 22px;
}

.kyg-request-benefits > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 17px;
  align-items: center;
}

.kyg-request-benefits > div > span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(242, 103, 34, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--kyg-orange);
  font-size: 28px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(32, 25, 54, 0.08);
}

.kyg-request-benefits p {
  margin: 0;
}

.kyg-request-benefits strong {
  display: block;
  margin-bottom: 3px;
  color: var(--kyg-navy);
  font-size: clamp(16px, 1.15vw, 20px);
}

.kyg-request-benefits small {
  display: block;
  color: var(--kyg-ink);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.45;
}

.kyg-request-card {
  min-width: 0;
  padding: clamp(24px, 2.8vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.965);
  box-shadow: 0 25px 65px rgba(47, 25, 17, 0.16);
  backdrop-filter: blur(8px);
}

.kyg-request-app {
  min-height: 460px;
}

.kyg-request-config-error,
.kyg-request-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #f7c7bc;
  border-radius: 12px;
  background: #fff0ec;
  color: var(--kyg-danger);
  font-weight: 650;
  line-height: 1.45;
}

.kyg-stage-heading {
  margin-bottom: 16px;
}

.kyg-stage-heading span {
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.kyg-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.kyg-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  color: #817b8e;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
}

.kyg-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: #ddd9e2;
}

.kyg-step.completed:not(:last-child)::after,
.kyg-step.active:not(:last-child)::after {
  background: var(--kyg-orange);
}

.kyg-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid #d8d4dd;
  border-radius: 50%;
  background: #efedf1;
  color: #504b5a;
  font-weight: 800;
}

.kyg-step.active > span,
.kyg-step.completed > span {
  border-color: var(--kyg-orange);
  background: var(--kyg-orange);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(242, 103, 34, 0.12);
}

.kyg-step.active {
  color: var(--kyg-navy);
}

.kyg-stage-content h3,
.kyg-success h3 {
  margin: 0 0 6px;
  color: var(--kyg-navy);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.2;
  text-transform: uppercase;
}

.kyg-stage-content > p,
.kyg-success > p {
  margin: 0 0 22px;
  color: var(--kyg-muted);
  line-height: 1.5;
}

.kyg-stage-content label,
.kyg-location-panel label,
.kyg-item-card label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--kyg-navy);
  font-size: 13px;
  font-weight: 700;
}

.kyg-stage-content label b,
.kyg-location-panel label b,
.kyg-item-card label b {
  color: #dc3424;
}

.kyg-request-section input,
.kyg-request-section select,
.kyg-request-section textarea,
.kyg-request-section button {
  font: inherit;
}

.kyg-request-section input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.kyg-request-section select,
.kyg-request-section textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--kyg-border);
  border-radius: 10px;
  background: #fff;
  color: var(--kyg-ink);
  outline: none;
  transition: border-color 0.17s ease, box-shadow 0.17s ease;
}

.kyg-request-section textarea {
  min-height: 90px;
  resize: vertical;
}

.kyg-request-section input:focus,
.kyg-request-section select:focus,
.kyg-request-section textarea:focus,
.kyg-request-section button:focus-visible,
.kyg-request-section a:focus-visible {
  border-color: var(--kyg-orange);
  box-shadow: 0 0 0 3px rgba(242, 103, 34, 0.18);
  outline: none;
}

.kyg-form-grid {
  display: grid;
  gap: 16px;
  margin: 0 0 17px;
}

.kyg-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kyg-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kyg-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.kyg-choice {
  position: relative;
  display: grid;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--kyg-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.kyg-choice:hover {
  transform: translateY(-1px);
  border-color: #f8a278;
}

.kyg-choice:has(input:checked) {
  border-color: var(--kyg-orange);
  background: #fff7f1;
}

.kyg-choice input {
  position: absolute;
  top: 12px;
  left: 12px;
  accent-color: var(--kyg-orange);
}

.kyg-choice span {
  padding-left: 22px;
  color: var(--kyg-navy);
  font-weight: 800;
}

.kyg-choice small {
  padding: 4px 0 0 22px;
  color: var(--kyg-muted);
  font-weight: 500;
}

.kyg-delivery-stage {
  display: grid;
  gap: 26px;
}

.kyg-location-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #e8e2dc;
  border-radius: 16px;
  background: #fffdfb;
}

.kyg-location-panel > h3 {
  margin: 0;
  color: var(--kyg-navy);
  font-size: 17px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kyg-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kyg-location-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #ddd7e1;
  border-radius: 9px;
  background: #fff;
  color: var(--kyg-navy);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.kyg-location-button:hover {
  border-color: var(--kyg-orange);
  color: var(--kyg-orange-dark);
}

.kyg-map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.kyg-map {
  min-height: 230px;
  overflow: hidden;
  border: 1px solid #e0dce4;
  border-radius: 13px;
  background: linear-gradient(135deg, #f5f2ed, #e9eee8);
}

.kyg-coordinate-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e0dce4;
  border-radius: 13px;
  background: #fff;
  color: var(--kyg-muted);
  font-size: 13px;
  line-height: 1.45;
}

.kyg-coordinate-card strong {
  color: var(--kyg-navy);
  font-size: 14px;
}

.kyg-coordinate-card code {
  display: block;
  word-break: break-all;
  color: var(--kyg-orange-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.kyg-item-card {
  margin: 0 0 18px;
  padding: 19px;
  border: 1px solid #e2dce5;
  border-radius: 15px;
  background: #fff;
}

.kyg-item-heading,
.kyg-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.kyg-item-heading h4,
.kyg-section-heading h3 {
  margin: 0;
  color: var(--kyg-navy);
}

.kyg-section-heading p {
  margin: 3px 0 0;
  color: var(--kyg-muted);
  font-size: 13px;
}

.kyg-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 4px 0 17px;
}

.kyg-toggle-row label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kyg-toggle-row input,
.kyg-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--kyg-orange);
}

.kyg-photo-upload {
  margin-top: 15px;
  padding: 16px;
  border: 1.5px dashed #cfc7d3;
  border-radius: 12px;
  background: #fdfbfe;
}

.kyg-photo-upload input {
  width: 100%;
}

.kyg-photo-upload small {
  color: var(--kyg-muted);
  font-weight: 500;
}

.kyg-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kyg-photo-grid > div {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #eee;
}

.kyg-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kyg-photo-grid button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 23, 56, 0.88);
  color: #fff;
  cursor: pointer;
}

.kyg-location-confirmation {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid #f1b9ae;
  border-radius: 11px;
  background: #fff2ef;
  color: #7b3329;
  font-size: 13px;
}

.kyg-location-confirmation.confirmed {
  border-color: #9fc47d;
  background: #f5fbef;
  color: #2f6334;
}

.kyg-review-section {
  margin: 16px 0;
  padding: 17px;
  border: 1px solid #e2dde5;
  border-radius: 13px;
  background: #fff;
}

.kyg-review-section > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--kyg-navy);
  text-transform: uppercase;
}

.kyg-review-section > div:first-child button {
  border: 0;
  background: none;
  color: var(--kyg-orange-dark);
  cursor: pointer;
  font-weight: 750;
}

.kyg-review-section dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.kyg-review-section dt {
  margin-bottom: 4px;
  color: var(--kyg-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.kyg-review-section dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--kyg-ink);
  font-size: 13px;
}

.kyg-review-section ul {
  margin: 0;
  padding-left: 20px;
  color: var(--kyg-ink);
}

.kyg-consent {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  margin: 18px 0;
  font-weight: 550 !important;
  line-height: 1.45;
}

.kyg-consent a {
  color: var(--kyg-orange-dark);
}

.kyg-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.kyg-turnstile {
  min-height: 67px;
  margin: 16px 0;
}

.kyg-review-notice {
  padding: 13px 15px;
  border: 1px solid #cbd9f5;
  border-radius: 10px;
  background: #f1f6ff;
  color: #334c7b;
  font-size: 13px;
  line-height: 1.45;
}

.kyg-stage-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #ebe6ed;
}

.kyg-btn {
  min-height: 46px;
  padding: 10px 21px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.035em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.kyg-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.kyg-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.kyg-btn.primary {
  border: 1px solid var(--kyg-orange);
  background: linear-gradient(135deg, #ff7a38, #ef5a0c);
  color: #fff;
  box-shadow: 0 10px 24px rgba(223, 83, 18, 0.2);
}

.kyg-btn.ghost {
  border: 1px solid #f08049;
  background: #fff;
  color: var(--kyg-orange-dark);
}

.kyg-btn.small {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}

.kyg-secure-note {
  margin: 12px 0 0;
  color: var(--kyg-muted);
  text-align: center;
  font-size: 12px;
}

.kyg-success {
  padding: clamp(8px, 2vw, 24px);
  text-align: center;
}

.kyg-success-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dff3d8;
  color: var(--kyg-success);
  font-size: 40px;
  font-weight: 900;
}

.kyg-success h3 {
  font-size: clamp(28px, 3vw, 44px);
}

.kyg-request-number {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  max-width: 520px;
  margin: 22px auto;
  padding: 15px;
  border: 1px solid #b8d59e;
  border-radius: 12px;
  background: #f1f8e9;
}

.kyg-request-number small {
  grid-column: 1 / -1;
  color: #4d7442;
}

.kyg-request-number strong {
  color: var(--kyg-navy);
  font-size: clamp(20px, 2.2vw, 30px);
  overflow-wrap: anywhere;
}

.kyg-request-number button {
  border: 0;
  background: none;
  color: var(--kyg-orange-dark);
  cursor: pointer;
  font-weight: 750;
}

.kyg-success-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid #e1dde4;
  border-radius: 13px;
  background: #e1dde4;
  text-align: left;
}

.kyg-success-summary > div {
  display: grid;
  gap: 5px;
  padding: 17px;
  background: #fff;
}

.kyg-success-summary small {
  color: var(--kyg-muted);
  text-transform: uppercase;
}

.kyg-success-summary strong {
  color: var(--kyg-navy);
  overflow-wrap: anywhere;
}

.kyg-success-summary span {
  color: var(--kyg-success);
  font-size: 12px;
}

.kyg-success h4 {
  color: var(--kyg-navy);
  text-transform: uppercase;
}

.kyg-success ol {
  max-width: 560px;
  margin: 0 auto;
  padding-left: 24px;
  color: var(--kyg-ink);
  text-align: left;
  line-height: 1.8;
}


/* Responsive layout uses both viewport and container queries so the shortcode
   adapts when Kubio places it inside a constrained block or column. */
@media (max-width: 1180px) {
  .kyg-request-shell {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(26px, 3.5vw, 48px);
  }

  .kyg-request-copy h2 {
    font-size: clamp(44px, 5.2vw, 68px);
  }

  .kyg-request-benefits > div {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .kyg-request-benefits > div > span {
    width: 46px;
    height: 46px;
    font-size: 23px;
  }
}

@media (max-width: 980px) {
  .kyg-request-section::before {
    top: 28%;
    right: -30%;
    width: 130%;
    height: 84%;
  }

  .kyg-request-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .kyg-request-copy {
    max-width: 780px;
    padding-top: 0;
  }

  .kyg-request-copy h2 br {
    display: none;
  }

  .kyg-request-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kyg-request-card {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .kyg-request-section {
    padding: 42px 14px;
  }

  .kyg-request-section::before {
    top: 34%;
    right: -52%;
    width: 180%;
    height: 78%;
  }

  .kyg-request-copy h2 {
    font-size: clamp(40px, 12.5vw, 62px);
    line-height: 0.98;
  }

  .kyg-request-copy > p {
    margin-block: 20px 28px;
    font-size: 16px;
  }

  .kyg-request-benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .kyg-request-card {
    padding: 20px 15px;
    border-radius: 20px;
  }

  .kyg-stepper {
    margin-bottom: 24px;
  }

  .kyg-step {
    gap: 6px;
    font-size: 10px;
    line-height: 1.15;
  }

  .kyg-step > span {
    width: 28px;
    height: 28px;
  }

  .kyg-step:not(:last-child)::after {
    top: 13px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
  }

  .kyg-form-grid.two,
  .kyg-form-grid.three,
  .kyg-choice-grid,
  .kyg-map-wrap,
  .kyg-review-section dl,
  .kyg-success-summary,
  .kyg-location-confirmation {
    grid-template-columns: minmax(0, 1fr);
  }

  .kyg-choice-grid {
    gap: 9px;
  }

  .kyg-choice {
    min-height: 72px;
  }

  .kyg-location-panel {
    padding: 15px;
  }

  .kyg-location-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kyg-location-button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
    white-space: normal;
  }

  .kyg-map {
    min-height: 240px;
  }

  .kyg-photo-grid {
    grid-template-columns: repeat(2, minmax(80px, 1fr));
  }

  .kyg-item-heading,
  .kyg-section-heading {
    align-items: flex-start;
  }

  .kyg-stage-actions {
    position: sticky;
    z-index: 20;
    bottom: 0;
    margin-inline: -15px;
    padding: 14px 15px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.975);
    box-shadow: 0 -10px 28px rgba(31, 23, 56, 0.09);
    backdrop-filter: blur(10px);
  }

  .kyg-stage-actions .kyg-btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
  }
}

@media (max-width: 520px) {
  .kyg-request-section {
    padding: 34px 10px;
  }

  .kyg-request-eyebrow {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .kyg-request-copy h2 {
    font-size: clamp(36px, 13.5vw, 52px);
  }

  .kyg-request-benefits > div {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .kyg-request-benefits > div > span {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .kyg-request-card {
    padding: 17px 12px;
    border-radius: 17px;
  }

  .kyg-stage-heading span {
    font-size: 16px;
  }

  .kyg-stepper {
    column-gap: 0;
  }

  .kyg-step {
    font-size: 9px;
    overflow-wrap: anywhere;
  }

  .kyg-step > span {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }

  .kyg-step:not(:last-child)::after {
    top: 11.5px;
    left: calc(50% + 15px);
    width: calc(100% - 30px);
  }

  .kyg-location-panel,
  .kyg-item-card,
  .kyg-review-section {
    padding: 13px;
    border-radius: 12px;
  }

  .kyg-location-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .kyg-location-button {
    min-height: 42px;
    font-size: 13px;
  }

  .kyg-map {
    min-height: 210px;
  }

  .kyg-coordinate-card {
    padding: 13px;
  }

  .kyg-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kyg-item-heading,
  .kyg-section-heading,
  .kyg-review-section > div:first-child {
    flex-direction: column;
    align-items: stretch;
  }

  .kyg-section-heading .kyg-btn,
  .kyg-item-heading .kyg-btn {
    width: 100%;
  }

  .kyg-toggle-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .kyg-stage-actions {
    gap: 8px;
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .kyg-btn {
    min-height: 48px;
    font-size: 13px;
  }

  .kyg-success {
    padding-inline: 0;
  }

  .kyg-request-number {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .kyg-request-number button {
    justify-self: start;
  }

  .kyg-turnstile {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 360px) {
  .kyg-request-section {
    padding-inline: 6px;
  }

  .kyg-request-card {
    padding-inline: 9px;
  }

  .kyg-step {
    font-size: 8px;
  }

  .kyg-step > span {
    width: 23px;
    height: 23px;
  }

  .kyg-step:not(:last-child)::after {
    top: 10.5px;
    left: calc(50% + 14px);
    width: calc(100% - 28px);
  }

  .kyg-stage-actions {
    flex-direction: column-reverse;
    margin-inline: -9px;
    padding-inline: 9px;
  }

  .kyg-stage-actions .kyg-btn {
    width: 100%;
  }

  .kyg-turnstile > div {
    transform: scale(0.88);
    transform-origin: left top;
  }
}

/* Container-query equivalents protect the layout when the Kubio block is
   narrower than the browser viewport. */
@container (max-width: 980px) {
  .kyg-request-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .kyg-request-copy h2 br {
    display: none;
  }

  .kyg-request-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 720px) {
  .kyg-request-benefits,
  .kyg-form-grid.two,
  .kyg-form-grid.three,
  .kyg-choice-grid,
  .kyg-map-wrap,
  .kyg-review-section dl,
  .kyg-success-summary,
  .kyg-location-confirmation {
    grid-template-columns: minmax(0, 1fr);
  }

  .kyg-location-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kyg-stage-actions {
    position: sticky;
    z-index: 20;
    bottom: 0;
  }
}

@container (max-width: 500px) {
  .kyg-location-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .kyg-item-heading,
  .kyg-section-heading,
  .kyg-review-section > div:first-child {
    flex-direction: column;
    align-items: stretch;
  }

  .kyg-stage-actions {
    gap: 8px;
  }
}

@container (max-width: 350px) {
  .kyg-stage-actions {
    flex-direction: column-reverse;
  }

  .kyg-stage-actions .kyg-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kyg-request-section *,
  .kyg-request-section *::before,
  .kyg-request-section *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.kyg-request-section fieldset {
  min-width: 0;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.kyg-request-section legend {
  margin-bottom: 6px;
  color: var(--kyg-navy);
  font-size: 13px;
  font-weight: 750;
}

.kyg-location-panel h4 {
  margin: 0;
  font-size: 17px;
  text-transform: uppercase;
}

.pac-container {
  z-index: 2147483000 !important;
  max-width: calc(100vw - 16px) !important;
  border: 1px solid #e0d9e4;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(31, 23, 56, 0.18);
  font-family: inherit;
}

/* Required Kygistix heading typography. Important declarations prevent the
   active Kubio theme from overriding the embedded component. */
.kyg-request-section :is(h1, h2, h3, h4, h5, h6) {
  font-family: Barlow Condensed, Helvetica, Arial, Sans-Serif, serif !important;
  letter-spacing: 1px !important;
  color: #1b1836 !important;
}

#kyg-request-title {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  text-align: left !important;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5) !important;
}
