.wsdh-calc {
  max-width: 1240px;
  margin: 0 auto;
}

.wsdh-calc__hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.wsdh-calc__kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: #5c6ac4;
  margin: 0 0 10px;
}

.wsdh-calc__hero h2 {
  font-size: 2.4rem;
  line-height: 1.02;
  margin: 0 0 10px;
  color: #1c2230;
}

.wsdh-calc__hero p {
  margin: 0;
  color: #667085;
  max-width: 760px;
}

.wsdh-calc__ghost-btn {
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  color: #1c2230;
  cursor: pointer;
}

.wsdh-calc__ghost-btn:hover {
  background: #f8fafc;
}

.wsdh-calc__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
}

.wsdh-calc__main {
  display: grid;
  gap: 20px;
}

.wsdh-calc__panel,
.wsdh-calc__summary {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 35px rgba(16, 24, 40, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 22px;
}

.wsdh-calc__panel-head {
  margin-bottom: 16px;
}

.wsdh-calc__panel-head h3,
.wsdh-calc__summary-head h3 {
  margin: 0 0 8px;
  color: #1c2230;
  font-size: 1.18rem;
}

.wsdh-calc__panel-head p,
.wsdh-calc__summary-head p {
  margin: 0;
  color: #667085;
  font-size: 0.96rem;
  line-height: 1.5;
}

.wsdh-calc__panel-head--small {
  margin-bottom: 12px;
}

.wsdh-calc__panel-head--small h4 {
  margin: 0 0 6px;
  color: #1c2230;
  font-size: 1rem;
}

.wsdh-calc__panel-head--small p {
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
  line-height: 1.45;
}

.wsdh-calc__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wsdh-calc__field span {
  font-size: 13px;
  font-weight: 700;
  color: #4a5565;
}

.wsdh-calc__field input,
.wsdh-calc__field select {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 14px;
  background: #fff;
  color: #1c2230;
}

.wsdh-calc__field input:focus,
.wsdh-calc__field select:focus {
  outline: none;
  border-color: #5c6ac4;
  box-shadow: 0 0 0 4px rgba(92, 106, 196, 0.12);
}

.wsdh-calc__fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wsdh-calc__area-note {
  font-size: 0.95rem;
  color: #667085;
  margin-top: 10px;
  line-height: 1.5;
}

.wsdh-calc__universities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.wsdh-calc__uni-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #eef4ff;
  color: #3954c6;
  font-size: 12px;
  font-weight: 700;
}

.wsdh-calc__switches {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.wsdh-calc__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fbfcfe;
  font-weight: 600;
  color: #1c2230;
}

.wsdh-calc__toggle input {
  margin: 0;
}

.wsdh-calc__subpanel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fcfdff;
}

.wsdh-calc__help {
  margin: 10px 0 0;
  color: #667085;
  font-size: 0.9rem;
}

.wsdh-calc__subscription-list,
.wsdh-calc__comparison-selector {
  display: grid;
  gap: 10px;
}

.wsdh-calc__check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #fff;
}

.wsdh-calc__check--compact {
  justify-content: flex-start;
}

.wsdh-calc__check-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1c2230;
  font-weight: 600;
}

.wsdh-calc__check input {
  margin: 0;
}

.wsdh-calc__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f6;
  color: #475467;
}

.wsdh-calc__summary-row strong {
  color: #1c2230;
}

.wsdh-calc__summary-row--total strong {
  font-size: 1.15rem;
}

.wsdh-calc__summary-tip {
  font-size: 0.92rem;
  color: #667085;
  margin-top: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 14px;
  line-height: 1.5;
}

.wsdh-calc__good {
  color: #067647 !important;
}

.wsdh-calc__bad {
  color: #b42318 !important;
}

.wsdh-calc__comparison-table-wrap {
  overflow: auto;
  margin-top: 16px;
}

.wsdh-calc__comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.wsdh-calc__comparison-table th,
.wsdh-calc__comparison-table td {
  padding: 12px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  white-space: nowrap;
}

.wsdh-calc__comparison-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #667085;
  background: #fbfcfe;
  position: sticky;
  top: 0;
}

.wsdh-calc__comparison-table td {
  color: #1c2230;
}

.wsdh-calc__sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}

@media (max-width: 1024px) {
  .wsdh-calc__layout {
    grid-template-columns: 1fr;
  }

  .wsdh-calc__sidebar {
    position: static;
  }

  .wsdh-calc__fields-grid {
    grid-template-columns: 1fr;
  }

  .wsdh-calc__hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .wsdh-calc__hero h2 {
    font-size: 2rem;
  }
}