:root {
  --blue: #0a319d;
  --ink: #11192c;
  --gold: #d3a044;
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f6f3ed;
}

.registration-header {
  position: relative;
  z-index: 2;
  min-height: 80px;
  padding: 14px clamp(18px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 20px rgba(10, 49, 157, .2);
}

.back-link,
.external-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.back-link svg,
.external-link svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.external-link {
  justify-self: end;
}

.registration-header__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.registration-header__title strong {
  font-size: 22px;
  text-transform: uppercase;
}

.registration-header__title span {
  color: #d9e4ff;
  font-size: 15px;
}

.form-shell {
  min-height: 0;
  background: #fff;
}

.form-shell iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #fff;
}

.iframe-fallback {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  max-width: 280px;
  padding: 14px 16px;
  display: none;
  border: 1px solid #e2d5b9;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.iframe-fallback p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.35;
}

.iframe-fallback a {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 680px) {
  .registration-header {
    min-height: 68px;
    grid-template-columns: auto 1fr auto;
    padding: 10px 16px;
  }

  .back-link span,
  .external-link {
    font-size: 0;
  }

  .registration-header__title {
    display: block;
    text-align: center;
  }

  .registration-header__title strong {
    display: block;
    font-size: 17px;
  }

  .registration-header__title span {
    font-size: 12px;
  }
}
