/* Shoals PDF Viewer — responsive cards matching IM Residency mock */
.skc-pdf-grid,
.skc-pdf,
.skc-pdf *,
.skc-review,
.skc-review * {
  box-sizing: border-box;
}

.skc-pdf-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}
@media (min-width: 700px) {
  .skc-pdf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .skc-pdf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.skc-pdf {
  background: #fff;
  border-radius: 24px;
  padding: clamp(16px, 2.2vw, 28px);
  border: 1px solid rgba(39, 44, 73, 0.06);
  box-shadow: 0 18px 50px rgba(39, 44, 73, 0.08);
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.skc-pdf__bar,
.skc-pdf__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  margin-bottom: clamp(12px, 2vw, 18px);
}
.skc-pdf__icon {
  width: 28px;
  height: 28px;
  margin-top: 6px;
  border-radius: 7px;
  background: #e53935;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: Poppins, sans-serif;
}
.skc-pdf__title {
  margin: 0;
  min-width: 0;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.85rem);
  font-weight: 800;
  color: #1b2440;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.skc-pdf__dl {
  margin-top: 6px;
  color: #5b6578;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.skc-pdf__dl:hover { color: #009dd8; }

@media (max-width: 420px) {
  .skc-pdf__bar,
  .skc-pdf__head {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .skc-pdf__dl {
    grid-column: 2;
    margin-top: 0;
  }
}

.skc-pdf__device {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #1a1d24;
  flex: 1;
  min-width: 0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.skc-pdf__stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4.15;
  min-height: 220px;
  max-height: min(70vh, 560px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #1a1d24;
}
.skc-pdf__stage canvas {
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  background: #fff;
  visibility: hidden;
}
.skc-pdf.is-ready canvas { visibility: visible; }
.skc-pdf__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #525659;
}
.skc-pdf__msg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  opacity: .8;
  padding: 16px;
  text-align: center;
  margin: 0;
  pointer-events: none;
}

.skc-pdf__tools {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 6px;
  background: rgba(12, 14, 20, 0.94);
  color: #fff;
  border-radius: 999px;
  z-index: 2;
  max-width: calc(100% - 24px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.skc-pdf__nav,
.skc-pdf__zoom {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}
.skc-pdf__nav { flex: 1 1 auto; min-width: 0; }
.skc-pdf__zoom { flex: 0 0 auto; }
.skc-pdf__tools button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  cursor: pointer;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.skc-pdf__tools button:hover {
  background: #009dd8 !important;
}
.skc-pdf__tools button:disabled {
  opacity: .35 !important;
  cursor: default !important;
  background: rgba(255,255,255,.12) !important;
}
.skc-pdf__page {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .skc-pdf { border-radius: 18px; padding: 14px; }
  .skc-pdf__device { border-radius: 20px; }
  .skc-pdf__stage { aspect-ratio: 3 / 4; max-height: 58vh; }
  .skc-pdf__tools { left: 8px; right: 8px; bottom: 8px; gap: 6px; max-width: calc(100% - 16px); }
  .skc-pdf__tools button {
    flex-basis: 32px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    font-size: 16px !important;
  }
  .skc-pdf__page { font-size: 12px; }
}

.skc-review {
  max-width: 760px;
  width: 100%;
}
.skc-review .skc-field { margin-bottom: 20px; }
.skc-review label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #272c49;
  margin-bottom: 8px;
}
.skc-review input[type="text"],
.skc-review input[type="email"],
.skc-review textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(39,44,73,.16);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  color: #333;
  background: #fff;
  outline: none;
}
.skc-review input:focus,
.skc-review textarea:focus {
  border-color: #009dd8;
  box-shadow: 0 0 0 4px rgba(0,157,216,.12);
}
.skc-review textarea { min-height: 120px; resize: vertical; }
.skc-stars { display: flex; gap: 4px; margin-bottom: 18px; }
.skc-stars button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: #d9dde3;
  font-size: 28px;
  line-height: 1;
}
.skc-stars button.is-on { color: #f5b301; }
.skc-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 22px;
  font-size: 14px;
  color: #5c6670;
  position: relative;
  font-weight: 400 !important;
}
.skc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.skc-toggle span.track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cfd5dc;
  position: relative;
  flex-shrink: 0;
  transition: background .2s ease;
  margin-top: 2px;
}
.skc-toggle span.track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}
.skc-toggle input:checked + span.track { background: #009dd8; }
.skc-toggle input:checked + span.track::after { transform: translateX(20px); }
.skc-review .btn-primary {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0 22px;
  height: 44px;
  font-weight: 700;
  background: #009dd8;
  color: #fff;
  font-size: 14px;
}
.skc-review .btn-primary:hover { background: #272c49; }
.skc-review .btn-primary:disabled { opacity: .6; cursor: default; }
.skc-review-ok {
  display: none;
  border-radius: 16px;
  background: #eef8fc;
  color: #272c49;
  padding: 18px 20px;
  font-weight: 600;
}
.skc-review.is-done form { display: none; }
.skc-review.is-done .skc-review-ok { display: block; }
