.azp-portal-wrap {
  max-width: 1180px;
  margin: 32px auto;
  font-family: Arial, sans-serif;
  color: #2e3440;
}

.azp-portal-wrap * {
  box-sizing: border-box;
}

.azp-grid,
.azp-top-grid {
  display: grid;
  gap: 22px;
}

.azp-top-grid {
  grid-template-columns: 1.7fr 1fr;
  margin-bottom: 22px;
}

.azp-grid {
  grid-template-columns: 1.7fr 1fr;
}

.azp-card {
  background: #ffffff;
  border: 1px solid #dde5ee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(30, 41, 59, 0.06);
}

.azp-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(246, 241, 249, 0.96), rgba(255, 248, 252, 0.96)),
    linear-gradient(90deg, #8c69a6, #d596b9);
  border-color: #e8ddec;
}

.azp-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.azp-brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #6f4b85;
  background: linear-gradient(180deg, #f4e8f5, #fcecf4);
  border: 1px solid #dbc8e6;
}

.azp-kicker,
.azp-section-label,
.azp-section-caption,
.azp-metric-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.azp-kicker,
.azp-section-label,
.azp-section-caption {
  color: #7b6687;
}

.azp-subcopy,
.azp-plan-note,
.azp-form-disclaimer,
.azp-clinical-list li {
  color: #5a6472;
}

.azp-header-card h2,
.azp-plan-title,
.azp-card h3 {
  margin: 4px 0 8px;
  color: #2a3140;
}

.azp-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.azp-provider-pill,
.azp-status-badge {
  background: #eef4fa;
  color: #35526d;
  border: 1px solid #d5e2ee;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}

.azp-status-badge {
  background: #f3eef7;
  color: #6d4d83;
  border-color: #e2d4eb;
}

.azp-section-heading-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.azp-plan-card {
  background:
    radial-gradient(circle at top right, rgba(220, 200, 234, 0.28), transparent 32%),
    linear-gradient(180deg, #ffffff, #fcfbfd);
}

.azp-plan-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.azp-metric {
  background: #f8fbfe;
  border: 1px solid #e2eaf1;
  border-radius: 14px;
  padding: 14px;
}

.azp-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: #243042;
}

.azp-action-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 16px;
}

.azp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: linear-gradient(135deg, #8d6aac, #c37ca8);
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.azp-button:hover,
.azp-button:focus {
  opacity: 0.94;
  color: #fff;
}

.azp-button-secondary {
  background: #fff;
  color: #5b4a69;
  border: 1px solid #d8dfe8;
}

.azp-button-secondary:hover,
.azp-button-secondary:focus {
  color: #42334f;
}

.azp-clinical-list {
  padding-left: 18px;
  margin: 0;
}

.azp-alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid;
}

.azp-alert-success {
  background: #eff8f1;
  color: #1f5132;
  border-color: #cfe7d5;
}

.azp-alert-error {
  background: #fff3f3;
  color: #8b2d2d;
  border-color: #f0c8c8;
}

.azp-orders-table-wrap {
  overflow-x: auto;
}

.azp-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.azp-orders-table th,
.azp-orders-table td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid #e8edf2;
  vertical-align: top;
}

.azp-orders-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #677384;
  background: #fbfcfe;
}

.azp-form {
  display: grid;
  gap: 14px;
}

.azp-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #313d4f;
}

.azp-form input,
.azp-form textarea,
.azp-form select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #d8e0e8;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: #243042;
}

.azp-form textarea {
  resize: vertical;
}

.azp-form-disclaimer {
  margin-top: 14px;
  font-size: 13px;
}

@media (max-width: 960px) {
  .azp-grid,
  .azp-top-grid {
    grid-template-columns: 1fr;
  }

  .azp-plan-metrics {
    grid-template-columns: 1fr;
  }

  .azp-header-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .azp-header-actions {
    align-items: flex-start;
    width: 100%;
  }
}
