:root {
  --primary: #602b2c;
  --primary-dark: #CC1939;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --text: #111827;
  --muted: #6b7280;
}

.phr-refill {
  padding: 20px;
  margin: 40px 0;
  /* background: var(--bg); */
}

.phr-card {
  max-width: 820px;
  margin: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  overflow: hidden;
}

.phr-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.phr-header h2 {
  margin: 0;
  font-size: 24px;
}

.phr-header p {
  margin-top: 6px;
  color: var(--muted);
}

.phr-steps {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.phr-step-indicator {
  flex: 1;
  text-align: center;
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
}

.phr-step-indicator span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  margin-bottom: 6px;
}

.phr-step-indicator.active {
  color: var(--primary);
  font-weight: 600;
}

.phr-step-indicator.active span {
  background: var(--primary);
  color: #fff;
}

.phr-step-content {
  display: none;
  padding: 24px;
}

.phr-step-content.active {
  display: block;
}

.phr-muted {
  color: var(--muted);
  font-size: 14px;
}

.phr-rx-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.phr-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.phr-field input,
.phr-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.phr-field input:focus,
.phr-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.phr-remove {
  background: none;
  border: none;
  color: #dc2626;
  /* font-size: 18px; */
  cursor: pointer;
}

.phr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.phr-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.phr-footer.split {
  justify-content: space-between;
}

.phr-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
}

.phr-btn.primary {
  background: var(--primary);
  color: #fff;
}

.phr-btn.primary:hover {
  background: var(--primary-dark);
}

.phr-btn.outline {
  border-color: var(--border);
  background: #fff;
}

.phr-btn.ghost {
  background: none;
  color: var(--muted);
}

@media (max-width: 640px) {
  .phr-grid,
  .phr-rx-row {
    grid-template-columns: 1fr;
  }
}
