:root {
  --page-bg: #f0f6ff;
  --text: #000000;
  --muted: #919191;
  --body-blue: #63758c;
  --body-lavender: #7f8291;
  --action: #009ee2;
  --new-card: #b0d0f9;
  --new-shadow: #91baee;
  --existing-card: #e0e4ff;
  --existing-shadow: #b4badd;
  --max-screen: 393px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.screen-shell {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  background: var(--page-bg);
}

.support-screen {
  width: min(100vw, var(--max-screen));
  min-height: 100svh;
  position: relative;
  padding: max(70px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clinic-logo {
  width: 157px;
  height: 54px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.rule-row {
  width: 336px;
  max-width: calc(100vw - 56px);
  height: 14px;
  display: grid;
  grid-template-columns: 1fr 4px 1fr;
  align-items: center;
  column-gap: 8px;
  margin-top: 13px;
}

.rule-row span {
  height: 1px;
  background: #e7edf6;
}

.rule-row span:first-child {
  background: #67c4e9;
}

.rule-row i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--action);
}

.intro {
  width: 276px;
  margin-top: 22px;
  text-align: center;
}

.intro h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  text-transform: uppercase;
}

.intro p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.query-actions {
  display: grid;
  gap: 20px;
  margin-top: 38px;
}

.query-card {
  width: 100%;
  min-height: 188px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  padding: 22px 20px 18px 24px;
}

.query-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 255px;
  top: -132px;
  right: -18px;
  border-radius: 46% 42% 48% 45%;
  transform: rotate(28deg);
  opacity: 0.32;
  pointer-events: none;
}

.query-card-new {
  background: var(--new-card);
  box-shadow: -4px 0 0 var(--new-shadow);
}

.query-card-new::before {
  background: #d8e8ff;
}

.query-card-existing {
  background: var(--existing-card);
  box-shadow: 4px 0 0 var(--existing-shadow);
}

.query-card-existing::before {
  background: #f1f0ff;
}

.card-copy {
  position: relative;
  z-index: 2;
  width: 203px;
}

.query-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.query-card p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
}

.query-card-new p {
  color: var(--body-blue);
}

.query-card-existing p {
  width: 190px;
  color: var(--body-lavender);
}

.primary-action {
  width: 146px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  border-radius: 10px;
  background: var(--action);
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 150ms ease, filter 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.primary-action:focus-visible {
  outline: 3px solid rgba(0, 158, 226, 0.35);
  outline-offset: 3px;
}

.primary-action:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

.card-art {
  position: absolute;
  z-index: 1;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.card-art-new {
  width: 92px;
  height: 101px;
  right: 16px;
  bottom: 19px;
}

.card-art-existing {
  width: 118px;
  height: 109px;
  right: 15px;
  bottom: 23px;
}

.support-footer {
  width: 92px;
  margin: 31px 3px 0 auto;
  text-align: left;
}

.support-footer span {
  display: block;
  margin: 0 0 1px 29px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10.154px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.support-footer img {
  width: 91px;
  height: auto;
  display: block;
}

@media (min-width: 560px) {
  .screen-shell {
    align-items: center;
    padding: 32px;
  }

  .support-screen {
    min-height: 800px;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(42, 71, 118, 0.14);
  }
}

@media (max-width: 360px) {
  .support-screen {
    padding-inline: 14px;
  }

  .query-card {
    padding-left: 20px;
  }

  .card-copy {
    width: 184px;
  }

  .query-card p,
  .query-card-existing p {
    width: 178px;
  }

  .card-art-new {
    width: 82px;
    right: 10px;
  }

  .card-art-existing {
    width: 104px;
    right: 8px;
  }
}
