.vaccine-checker-page .card {
  border-radius: 16px;
}

.vaccine-checker-page #vaccine-results-anchor {
  scroll-margin-top: 8.25rem;
}

.vaccine-checker-page .form-control,
.vaccine-checker-page .form-select {
  border-radius: 10px;
}

.vaccine-required-row {
  align-items: center !important;
}

.vaccine-required-row .form-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0 !important;
  line-height: 1.2;
}

.vaccine-required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd8e3;
  color: #4f5f73;
  background: #f7f9fc;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

.vaccine-clear-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0.12rem 0.58rem;
  border: 1px solid #d2dae6;
  border-radius: var(--bs-btn-border-radius, 0.375rem);
  background: #f7f9fc;
  color: #5c6f86;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.vaccine-clear-btn:hover {
  color: #334155;
  border-color: #bcc8d9;
  background: #eef3f8;
}

.vaccine-clear-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.16rem rgba(65, 121, 168, 0.2);
}

.vaccine-clear-btn:active {
  border-color: #abb8cd;
  background: #e7edf5;
}

.vaccine-inline-error {
  margin-top: 0.35rem;
  color: #b42318;
  font-size: 0.82rem;
  line-height: 1.45;
}

.vaccine-sex-hint {
  font-size: 0.84rem;
}

.vaccine-conditions-age-hint {
  margin-bottom: 0.55rem;
  color: #5f6f84;
  font-size: 0.82rem;
  line-height: 1.45;
}

.vaccine-sex-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.vaccine-sex-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #d9dee7;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.58rem 0.72rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vaccine-sex-option:hover {
  border-color: #9bb1cb;
  background: #f1f5f9;
}

.vaccine-sex-option input[type="radio"] {
  margin-top: 0;
}

.vaccine-sex-option:has(input:checked) {
  border-color: #1d6f84;
  background: #e6f4f5;
  box-shadow: 0 0 0 2px rgba(29, 111, 132, 0.08);
}

.vaccine-sex-option.is-selected {
  border-color: #1d6f84;
  background: #e6f4f5;
  box-shadow: 0 0 0 2px rgba(29, 111, 132, 0.08);
}

.vaccine-sex-field.is-invalid .vaccine-sex-options {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(180, 35, 24, 0.45);
}

.vaccine-checker-page .btn[disabled] {
  cursor: not-allowed;
  opacity: 0.72;
}

.vaccine-condition-scroll-wrap {
  position: relative;
}

.vaccine-condition-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 20rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.vaccine-condition-scroll-fade {
  position: absolute;
  left: 0.125rem;
  right: 0.375rem;
  bottom: 1.45rem;
  height: 2.5rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.95) 72%, #f8fafc 100%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.vaccine-condition-scroll-hint {
  display: none;
  margin-top: 0.25rem;
  text-align: center;
  color: #74839a;
  font-size: 0.76rem;
  line-height: 1.3;
  user-select: none;
}

.vaccine-condition-scroll-wrap.show-scroll-cue .vaccine-condition-scroll-fade,
.vaccine-condition-scroll-wrap.show-scroll-cue .vaccine-condition-scroll-hint {
  opacity: 1;
  visibility: visible;
}

.vaccine-condition-scroll-wrap.show-scroll-cue .vaccine-condition-scroll-hint {
  display: block;
}

.vaccine-condition-group {
  border: 1px solid #d9dee7;
  border-radius: 12px;
  padding: 0.875rem;
  background: #f8fafc;
}

.vaccine-condition-group-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  color: #3f4c65;
}

.vaccine-condition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.625rem;
}

.vaccine-condition-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
}

.vaccine-condition-option .form-check-input {
  float: none;
  margin-left: 0;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  flex: 0 0 1.15rem;
  margin-top: 0.2rem;
}

.vaccine-condition-option .form-check-label {
  font-size: 0.92rem;
  color: #22314a;
}

.vaccine-condition-option.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.vaccine-condition-option.is-disabled .form-check-label {
  color: #6b7280;
}

.vaccine-results-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

#vaccine-result-summary {
  line-height: 1.55;
}

#vaccine-global-messages:empty {
  display: none;
}

#vaccine-global-messages:not(:empty) {
  margin-bottom: 0.75rem;
}

.vaccine-result-card {
  border: 1px solid #d9dee7;
  border-radius: 12px;
  padding: 1rem;
  background: #ffffff;
}

.vaccine-result-card.is-empty {
  background: #f8fafc;
}

.vaccine-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.vaccine-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.vaccine-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  flex-shrink: 0;
}

.vaccine-level-badge.is-recommended {
  background: #dcfce7;
  color: #166534;
}

.vaccine-level-badge.is-review {
  background: #fef3c7;
  color: #92400e;
}

.vaccine-level-badge.is-consider {
  background: #e0e7ff;
  color: #3730a3;
}

.vaccine-level-badge.is-consider-soft {
  background: #eef2f6;
  color: #586172;
}

.vaccine-policy-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #0f766e;
  color: #0f766e;
  background: #f0fdfa;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  flex-shrink: 0;
}

.vaccine-global-note-card {
  border: 1px solid #f4d27f;
  background: #fff8e1;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
}

.vaccine-global-note-title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #7c2d12;
}

.vaccine-global-note-list {
  margin: 0;
  padding-left: 1.1rem;
}

.vaccine-global-note-list li {
  margin: 0;
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.vaccine-doctor-note {
  padding: 0.625rem 0.75rem;
  border-left: 3px solid #d97706;
  background: #fffbeb;
  color: #7c2d12;
  border-radius: 6px;
  font-size: 0.9rem;
}

.vaccine-disclaimer-link {
  color: #17606f;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vaccine-disclaimer-link:hover {
  color: #0f4d59;
}

.vaccine-inline-source-list {
  margin: 0;
  padding-left: 1.1rem;
}

.vaccine-inline-source-list li {
  font-size: 0.84rem;
}

.vaccine-disclaimer-card {
  background: #f8fafc;
}

.vaccine-qr-card {
  background: #f8fafc;
}

.vaccine-qr-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.vaccine-qr-image {
  width: 176px;
  height: 176px;
  border-radius: 12px;
  border: 1px solid #d9dee7;
  background: #ffffff;
  padding: 0.45rem;
}

.vaccine-qr-link {
  font-family: var(--font-stack-mono);
  font-size: 0.84rem;
  color: #475569;
  word-break: break-all;
}

.vaccine-poster-download-link {
  margin-top: 0.15rem;
}

.vaccine-source-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.vaccine-source-item + .vaccine-source-item {
  margin-top: 0.625rem;
}

.vaccine-source-item:last-child {
  margin-bottom: 0.35rem;
}

.vaccine-source-item a {
  font-weight: 600;
}

.vaccine-source-updated {
  color: #6b7280;
  font-size: 0.86rem;
}

@media (min-width: 768px) {
  .vaccine-sex-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vaccine-sex-option:last-child {
    grid-column: span 2;
  }

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

@media (max-width: 767.98px) {
  .vaccine-checker-page #vaccine-results-anchor {
    scroll-margin-top: 10.5rem;
  }

  .vaccine-required-row {
    align-items: center !important;
  }

  .vaccine-required-row .form-label {
    line-height: 1.15;
  }

  .vaccine-required-badge {
    padding: 0.1rem 0.48rem;
  }

  .vaccine-sex-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vaccine-sex-option:last-child {
    grid-column: span 2;
  }

  .vaccine-result-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .vaccine-badge-wrap {
    width: 100%;
    justify-content: flex-start;
  }

  .vaccine-condition-group {
    padding: 1rem 0.875rem 0.625rem;
  }

  .vaccine-condition-group-title {
    margin-bottom: 0.625rem;
    line-height: 1.35;
  }

  .vaccine-condition-grid {
    gap: 0.55rem;
  }

  .vaccine-condition-scroll-hint {
    font-size: 0.74rem;
  }
}

@media (max-width: 575.98px) {
  .vaccine-qr-block {
    align-items: center;
    text-align: center;
  }
}
