/* Patient profile completion modal (OTP onboarding) — shared across public pages */

.patient-profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.patient-profile-card {
  width: 100%;
  max-width: 430px;
  max-height: min(92vh, 760px);
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 24px;
  position: relative;
}

.patient-profile-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.patient-profile-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.patient-profile-header h3 {
  font-size: 18px;
  color: #28328c;
  margin-bottom: 6px;
}

.patient-profile-sub {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

.patient-profile-status {
  font-size: 13px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.patient-profile-card .form-row {
  margin-bottom: 14px;
}

.patient-profile-card label {
  display: block;
  font-size: 13px;
  color: #334155;
  margin-bottom: 6px;
}

.patient-profile-card input,
.patient-profile-card select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.patient-profile-card input[readonly] {
  background: #f8fafc;
  color: #475569;
}

.patient-profile-card .optional-hint {
  font-weight: 400;
  font-size: 12px;
  color: #94a3b8;
}

.patient-profile-email-row label {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.patient-profile-card .actions {
  margin-top: 14px;
}

.patient-profile-card .actions button {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #28328c;
  color: #fff;
}

.patient-profile-card .actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.patient-profile-delete-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 20px 0 16px;
}

.patient-profile-delete h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #991b1b;
}

.patient-profile-delete p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.patient-profile-delete-contact a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

.patient-profile-delete-contact a:hover {
  text-decoration: underline;
}

.patient-profile-delete-btn {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #dc2626;
  color: #fff;
}

.patient-profile-delete-btn:hover {
  background: #b91c1c;
}

.patient-profile-delete-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.patient-profile-delete-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.patient-profile-delete-status.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
