.planner-link {
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  white-space: nowrap;
}

.planner-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

#next-trip-planner {
  box-sizing: border-box;
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(18px, 4vw, 30px);
  border: 1px solid #526683;
  border-radius: 20px;
  background: #172335;
  color: #f4f6fc;
  font-family: system-ui, sans-serif;
  text-align: left;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

#next-trip-planner::backdrop {
  background: rgba(8, 13, 22, 0.55);
}

#next-trip-planner [hidden] {
  display: none;
}

.planner-heading,
.planner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.planner-heading {
  margin-bottom: 18px;
}

.planner-heading h2,
#planner-results h3 {
  margin: 0;
}

.planner-meta {
  margin: 5px 0 8px;
  color: #c0d0e5;
  font-size: 14px;
}

#planner-progress {
  display: block;
  width: 100%;
  height: 8px;
  margin-bottom: 20px;
  accent-color: #a9cef9;
}

.planner-question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.planner-question legend {
  padding: 0;
  font-size: clamp(19px, 4vw, 24px);
  font-weight: 650;
}

.planner-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
  gap: 9px;
  margin-top: 10px;
}

.planner-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid #526683;
  border-radius: 10px;
  background: #22324a;
  cursor: pointer;
}

.planner-option:has(input:checked) {
  border-color: #add1ff;
  background: #2f4a6b;
}

.planner-option:has(input:disabled) {
  opacity: 0.55;
  cursor: default;
}

.planner-option input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #add1ff;
}

.planner-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 20px;
}

#next-trip-planner .planner-button {
  padding: 8px 15px;
  border: 1px solid #7890ae;
  border-radius: 10px;
  background: #23364f;
  color: #f4f6fc;
  font-size: 14px;
}

#next-trip-planner .planner-button:hover {
  background: #314d70;
}

#next-trip-planner .planner-close {
  padding: 5px 10px;
}

#next-trip-planner .planner-primary {
  background: #c7dffc;
  color: #12253d;
}

#next-trip-planner .planner-primary:hover {
  background: #e3efff;
}

#next-trip-planner .planner-primary:disabled {
  opacity: 0.5;
  cursor: default;
}

#planner-destinations {
  display: grid;
  gap: 9px;
  margin: 15px 0 0;
  padding-left: 26px;
}

#planner-destinations li {
  padding: 10px 12px;
  border: 1px solid #526683;
  border-radius: 10px;
  background: #22324a;
}

#planner-destinations li::marker {
  color: #add1ff;
  font-weight: 650;
}

#planner-destinations h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

#planner-destinations p {
  margin: 4px 0 0;
}

.planner-result-detail {
  color: #c0d0e5;
  font-size: 13px;
}
