.client-portal {
  font-family: 'DM Sans', system-ui, sans-serif;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 3vw, 32px);
  padding: 20px max(5%, calc((100vw - 1100px) / 2));
  border-bottom: 1px solid var(--line);
}

.portal-header img {
  width: min(100%, 320px);
  height: auto;
}

.portal-header .button {
  flex-shrink: 0;
  text-align: center;
}

.portal-main {
  width: min(90%, 760px);
  margin-inline: auto;
  padding: clamp(36px, 7vw, 80px) 0;
}

.portal-main h1,
.portal-main h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}

.portal-main h1 {
  margin-bottom: 20px;
  font-size: clamp(42px, 8vw, 68px);
  line-height: 1.08;
}

.portal-main h2 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.portal-copy {
  color: #fff;
}

.portal-copy:empty {
  display: none;
}

.portal-panel {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  margin: 0 0 24px;
}

.portal-panel label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.portal-panel input {
  display: block;
  width: min(100%, 410px);
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #000;
  color: var(--ink);
  font-size: 16px;
}

.portal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 16px;
}

.portal-text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 28px;
}

.portal-actions,
.appointment-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.portal-actions {
  margin-bottom: 20px;
}

.portal-actions p,
.portal-panel p:last-child {
  margin-bottom: 0;
}

.appointment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.appointment-list li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.appointment-list li:last-child {
  padding-bottom: 0;
}

.appointment-list time {
  display: block;
  color: #fff;
}

.appointment-list strong {
  display: block;
  font-size: 16px;
}

.appointment-status {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.portal-help a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 540px) {
  .portal-header .button {
    padding: 10px 9px;
    max-width: 47%;
  }

  .portal-main form .button {
    width: 100%;
  }
}
