.nhs-annual-leave-shell {
  margin-top: 20px;
  margin-bottom: 32px;
}

.nhs-annual-leave-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.nhs-annual-leave-tab {
  border: 1px solid #c6d8fb;
  background: #fff;
  color: #0b2a59;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nhs-annual-leave-tab.is-active {
  background: linear-gradient(135deg, #0f4c97 0%, #1467c0 100%);
  color: #fff;
  border-color: transparent;
}

.nhs-annual-leave-grid,
.nhs-annual-leave-reference-grid {
  display: grid;
  gap: 20px;
}

.nhs-annual-leave-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  align-items: start;
}

.nhs-annual-leave-reference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.nhs-annual-leave-page .nhs-home-faq-list + .nhs-home-content-copy {
  margin-top: 24px;
}

.nhs-annual-leave-tab-panel {
  display: none;
}

.nhs-annual-leave-tab-panel.is-active {
  display: block;
}

.nhs-annual-leave-card + .nhs-annual-leave-card {
  margin-top: 20px;
}

.nhs-annual-leave-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.nhs-annual-leave-card-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.nhs-annual-leave-region-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #edf4ff;
  color: #0f4c97;
  font-weight: 700;
}

.nhs-annual-leave-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nhs-annual-leave-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.nhs-annual-leave-field > span {
  color: #4a6080;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nhs-annual-leave-field input,
.nhs-annual-leave-field select {
  width: 100%;
  min-height: 54px;
  border: 1px solid #c7d7f7;
  border-radius: 18px;
  background: #fff;
  color: #142848;
  padding: 0 16px;
  font: inherit;
}

.nhs-annual-leave-field select {
  background-position:
    calc(100% - var(--rp-select-chevron-right, 20px)) 50%,
    calc(100% - var(--rp-select-chevron-right-inner, 15px)) 50%;
  padding-right: var(--rp-select-padding-right, 40px);
}

.nhs-annual-leave-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  font-weight: 600;
  color: #17345c;
}

.nhs-annual-leave-check input {
  width: 18px;
  height: 18px;
  accent-color: #0f63bb;
}

.nhs-annual-leave-inline-panel {
  margin-top: 12px;
}

.nhs-annual-leave-alert {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #c6d8fb;
  background: #eef5ff;
  color: #17345c;
}

.nhs-annual-leave-alert--blue {
  background: #edf5ff;
}

.nhs-annual-leave-alert--green {
  background: #ecfdf5;
  border-color: #b8eacb;
}

.nhs-annual-leave-progress {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faff 0%, #f0f5ff 100%);
  border: 1px solid #d9e5fb;
}

.nhs-annual-leave-progress-title,
.nhs-annual-leave-progress-note {
  margin: 0;
}

.nhs-annual-leave-progress-title {
  font-weight: 800;
  color: #17345c;
}

.nhs-annual-leave-progress-bar {
  width: 100%;
  height: 12px;
  background: #dce7fb;
  border-radius: 999px;
  margin: 12px 0;
  overflow: hidden;
}

.nhs-annual-leave-progress-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.nhs-annual-leave-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #536a8c;
  font-size: 0.88rem;
}

.nhs-annual-leave-progress-note {
  margin-top: 12px;
  color: #17345c;
  font-weight: 700;
}

.nhs-annual-leave-results-card {
  position: sticky;
  top: 92px;
  padding: 18px;
}

.nhs-annual-leave-results-top {
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: var(--nhs-blue);
  color: #fff;
  margin-bottom: 18px;
}

.nhs-annual-leave-results-top .nhs-home-results-label {
  color: rgba(255, 255, 255, 0.76);
}

.nhs-annual-leave-results-top .nhs-home-results-value {
  color: #fff;
  margin: 8px 0;
}

.nhs-annual-leave-results-top .nhs-home-results-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nhs-annual-leave-results-top + .nhs-annual-leave-balance-box {
  margin-top: 0;
}

.nhs-annual-leave-balance-box {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  border: 1px solid #dbe7fb;
}

.nhs-annual-leave-balance-title,
.nhs-annual-leave-balance-note {
  margin: 0;
}

.nhs-annual-leave-balance-title {
  color: #49607f;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nhs-annual-leave-balance-value {
  margin: 8px 0 6px;
  color: #0d366b;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.nhs-annual-leave-balance-note,
.nhs-annual-leave-guidance,
.nhs-annual-leave-muted {
  color: #5b6f8e;
}

.nhs-annual-leave-guidance,
.nhs-annual-leave-muted {
  font-size: 0.92rem;
}

.nhs-annual-leave-inline-result {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  border: 1px solid #dbe7fb;
}

.nhs-annual-leave-inline-result strong {
  display: block;
  color: #0d366b;
  font-size: 2rem;
  line-height: 1;
}

.nhs-annual-leave-inline-result span {
  display: block;
  margin-top: 8px;
  color: #536a8c;
}

.nhs-annual-leave-collapsible {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  color: #17345c;
  cursor: pointer;
}

.nhs-annual-leave-collapsible span:last-child {
  transition: transform 0.2s ease;
}

.nhs-annual-leave-collapsible:not(.is-open) span:last-child {
  transform: rotate(-90deg);
}

.nhs-annual-leave-collapsible-content {
  display: none;
}

.nhs-annual-leave-collapsible-content.is-open {
  display: block;
}

.nhs-home-results-row .is-negative {
  color: #d92d20;
}

.nhs-annual-leave-results-card .nhs-home-results-list {
  margin-top: 0;
}

.nhs-annual-leave-results-card .nhs-home-action-cluster {
  margin-top: 16px;
}

@media (max-width: 980px) {
  .nhs-annual-leave-grid,
  .nhs-annual-leave-reference-grid {
    grid-template-columns: 1fr;
  }

  .nhs-annual-leave-results-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .nhs-annual-leave-form-grid {
    grid-template-columns: 1fr;
  }

  .nhs-annual-leave-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .nhs-annual-leave-progress-labels {
    font-size: 0.8rem;
  }
}
