/*
 * Patient instructions — isolated ultra-premium resource list.
 * Scoped to this page so the shared procedure and referral views remain unchanged.
 */

body.clinic-instructions .insurance-wrapper > .main-content-area {
  max-width: 960px;
  padding: clamp(22px, 3vw, 34px);
  border-color: rgba(0, 159, 192, 0.17);
  background:
    radial-gradient(circle at 100% 0, rgba(85, 203, 218, 0.09), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #fbfeff 100%);
  box-shadow: 0 24px 60px rgba(19, 55, 75, 0.09);
}

body.clinic-instructions .clinic-instruction-list {
  display: grid;
  gap: 14px;
}

body.clinic-instructions .clinic-instruction-card.box-patient-instruction {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 18px;
  min-height: 108px;
  height: auto;
  margin: 0;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 159, 192, 0.17);
  border-radius: 22px;
  color: #0b3045;
  background:
    radial-gradient(circle at 92% 8%, rgba(81, 199, 215, 0.1), transparent 30%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(16, 56, 78, 0.07);
  text-decoration: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

body.clinic-instructions .clinic-instruction-card.box-patient-instruction::before {
  position: absolute;
  inset: 18px auto 18px 0;
  width: 4px;
  border-radius: 0 99px 99px 0;
  background: linear-gradient(180deg, #1cc0d1, #008aaa);
  content: "";
}

body.clinic-instructions .clinic-instruction-card.box-patient-instruction::after {
  display: none;
}

body.clinic-instructions .clinic-instruction-card:hover,
body.clinic-instructions .clinic-instruction-card:focus-visible {
  border-color: rgba(0, 159, 192, 0.38);
  background-color: #fcfeff;
  box-shadow: 0 18px 38px rgba(16, 56, 78, 0.12);
}

body.clinic-instructions .clinic-instruction-card:focus-visible {
  outline: 3px solid rgba(0, 159, 192, 0.22);
  outline-offset: 3px;
}

body.clinic-instructions .clinic-instruction-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(0, 159, 192, 0.2);
  border-radius: 18px;
  color: #008fae;
  background: linear-gradient(145deg, #f2fcfe, #e7f8fb);
  box-shadow: inset 0 1px 0 #ffffff, 0 8px 18px rgba(0, 138, 170, 0.09);
}

body.clinic-instructions .clinic-instruction-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body.clinic-instructions .clinic-instruction-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.clinic-instructions .clinic-instruction-copy strong {
  color: #0a3045;
  font-size: clamp(16px, 1.65vw, 19px);
  font-weight: 750;
  line-height: 1.3;
}

body.clinic-instructions .clinic-instruction-copy > span:last-child {
  color: #526f7e;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.45;
}

body.clinic-instructions .clinic-instruction-meta {
  width: max-content;
  margin-bottom: 1px;
  padding: 4px 8px;
  border: 1px solid rgba(0, 143, 174, 0.16);
  border-radius: 999px;
  color: #007e9a;
  background: #eefafd;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.clinic-instructions .clinic-instruction-meta-pre {
  border-color: rgba(42, 96, 141, 0.14);
  color: #2d607e;
  background: #f1f7fb;
}

body.clinic-instructions .clinic-instruction-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(0, 159, 192, 0.2);
  border-radius: 50%;
  color: #008eac;
  background: #f4fcfd;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

body.clinic-instructions .clinic-instruction-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body.clinic-instructions .clinic-instruction-card:hover .clinic-instruction-arrow,
body.clinic-instructions .clinic-instruction-card:focus-visible .clinic-instruction-arrow {
  border-color: #009fbe;
  color: #ffffff;
  background: #009fbe;
}

@media (max-width: 640px) {
  body.clinic-instructions .insurance-wrapper > .main-content-area {
    padding: 16px;
    border-radius: 22px;
  }

  body.clinic-instructions .clinic-instruction-list {
    gap: 11px;
  }

  body.clinic-instructions .clinic-instruction-card.box-patient-instruction {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
    gap: 12px;
    min-height: 94px;
    padding: 14px 12px;
    border-radius: 18px;
  }

  body.clinic-instructions .clinic-instruction-card.box-patient-instruction::before {
    inset-block: 14px;
    width: 3px;
  }

  body.clinic-instructions .clinic-instruction-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  body.clinic-instructions .clinic-instruction-icon svg {
    width: 23px;
    height: 23px;
  }

  body.clinic-instructions .clinic-instruction-copy strong {
    font-size: 15px;
  }

  body.clinic-instructions .clinic-instruction-copy > span:last-child {
    font-size: 12.5px;
  }

  body.clinic-instructions .clinic-instruction-meta {
    padding: 3px 7px;
    font-size: 9px;
  }

  body.clinic-instructions .clinic-instruction-arrow {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.clinic-instructions .clinic-instruction-card,
  body.clinic-instructions .clinic-instruction-arrow {
    transition: none;
  }
}
