:root {
  --dpc-primary: #2563eb;
  --dpc-primary-dark: #1d4ed8;
  --dpc-secondary: #16a34a;
  --dpc-secondary-dark: #15803d;
  --dpc-radius: 10px;
  --dpc-font-size: 15px;
  --dpc-bg: #f8fafc;
  --dpc-border: #e2e8f0;
  --dpc-text: #1e293b;
  --dpc-muted: #64748b;
  --dpc-shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --dpc-shadow-lg: 0 12px 36px rgba(15,23,42,.12);
}

.dpc-dashboard, .dpc-auth-form, .dpc-price-search-wrap, .dpc-clinic-public-page, .dpc-page-section {
  font-size: var(--dpc-font-size);
  color: var(--dpc-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.dpc-dashboard { max-width: 100%; width: 100%; }

/* ---------- Auth forms (Register / Login) rendered as a centered card ---------- */
.dpc-auth-form {
  max-width: 440px; margin: 30px auto;
  background: #fff; border: 1px solid var(--dpc-border); border-radius: calc(var(--dpc-radius) + 4px);
  box-shadow: var(--dpc-shadow); padding: 36px 34px;
}
.dpc-auth-form label, .dpc-dashboard label {
  display:block; font-weight:600; margin: 16px 0 7px; color: var(--dpc-text); font-size: 0.93em; letter-spacing: 0.01em;
}
.dpc-auth-form input,
.dpc-dashboard input[type=text], .dpc-dashboard input[type=email], .dpc-dashboard input[type=number],
.dpc-dashboard input[type=password], .dpc-dashboard textarea, .dpc-dashboard select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--dpc-border); border-radius: var(--dpc-radius);
  font-size: var(--dpc-font-size); box-sizing: border-box; background: #fff; color: var(--dpc-text);
  transition: border-color .15s ease, box-shadow .15s ease; font-family: inherit;
}
.dpc-auth-form input:focus,
.dpc-dashboard input:focus, .dpc-dashboard textarea:focus, .dpc-dashboard select:focus {
  outline: none; border-color: var(--dpc-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dpc-primary) 18%, transparent);
}

.dpc-role-toggle { display:flex; gap:10px; margin-bottom:4px; }
.dpc-role-toggle label {
  font-weight: 500; display:flex; align-items:center; gap:7px; flex:1; justify-content:center;
  padding: 11px 14px; border: 1.5px solid var(--dpc-border); border-radius: var(--dpc-radius);
  cursor: pointer; transition: border-color .15s ease, background .15s ease; margin:0;
}
.dpc-role-toggle label:has(input:checked) { border-color: var(--dpc-primary); background: color-mix(in srgb, var(--dpc-primary) 8%, white); }
.dpc-auth-switch-link { text-align: center; font-size: 0.9em; color: var(--dpc-muted); margin-top: 18px; }
.dpc-auth-switch-link a { color: var(--dpc-primary); font-weight: 600; text-decoration: none; }
.dpc-auth-switch-link a:hover { text-decoration: underline; }

/* ---------- Buttons — !important on the essentials to beat theme/Elementor global button styles ---------- */
.dpc-btn {
  background: var(--dpc-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 22px !important;
  border-radius: var(--dpc-radius) !important;
  font-size: var(--dpc-font-size) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  cursor: pointer;
  margin-top: 16px;
  display: inline-block;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
  letter-spacing: 0.01em;
}
.dpc-btn:hover { background: var(--dpc-primary-dark) !important; color:#fff !important; box-shadow: 0 4px 10px rgba(15,23,42,.14); }
.dpc-btn:active { transform: translateY(1px); }
.dpc-btn:disabled { opacity: .6; cursor: not-allowed; transform:none; }
.dpc-btn-secondary {
  background: #fff !important; color: var(--dpc-primary) !important; border: 1.5px solid var(--dpc-primary) !important;
  box-shadow: none;
}
.dpc-btn-secondary:hover { background: color-mix(in srgb, var(--dpc-primary) 6%, white) !important; color: var(--dpc-primary-dark) !important; }
.dpc-btn-accent { background: var(--dpc-secondary) !important; color: #fff !important; }
.dpc-btn-accent:hover { background: var(--dpc-secondary-dark) !important; color: #fff !important; }

.dpc-error { color: #dc2626; font-weight:600; font-size: 0.93em; }
.dpc-success { color: #15803d; font-weight:600; font-size: 0.93em; }

.dpc-tabs { display:flex; gap:4px; border-bottom: 1.5px solid var(--dpc-border); margin-bottom: 24px; flex-wrap: wrap; }
.dpc-tab-btn {
  background:none; border:none; padding: 11px 18px; cursor:pointer;
  font-size: var(--dpc-font-size); font-weight:600; color: var(--dpc-muted);
  border-bottom: 2.5px solid transparent; margin-bottom:-1.5px; border-radius: 6px 6px 0 0;
  transition: color .15s ease, background .15s ease;
}
.dpc-tab-btn:hover { color: var(--dpc-text); background: var(--dpc-bg); }
.dpc-tab-btn.active { color: var(--dpc-primary); border-bottom-color: var(--dpc-primary); }

.dpc-grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .dpc-grid-2 { grid-template-columns: 1fr; } }

.dpc-checkbox-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap:8px; margin: 6px 0 16px; }
.dpc-checkbox-grid label, .dpc-checkbox-inline { font-weight:400; display:flex; align-items:center; gap:6px; margin:0; }

.dpc-hint { color: var(--dpc-muted); font-size: 0.88em; margin: -6px 0 12px; }
.dpc-listing-list { display:flex; flex-direction:column; gap:8px; }
.dpc-listing-row {
  display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px;
  border:1px solid var(--dpc-border); border-radius: var(--dpc-radius); background:#fff;
}
.dpc-listing-row .price { font-weight:600; color: var(--dpc-primary); white-space:nowrap; }

.dpc-photo-uploader { display:flex; align-items:center; gap:18px; margin-bottom: 14px; }
.dpc-photo-uploader img { width:84px; height:84px; border-radius:50%; object-fit:cover; border:2px solid #fff; box-shadow: 0 0 0 1.5px var(--dpc-border); background:#eee; }

.dpc-card {
  background:#fff; border:1px solid var(--dpc-border); border-radius: calc(var(--dpc-radius) + 2px);
  padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--dpc-shadow);
}
.dpc-request-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.dpc-request-head strong { font-size: 1.02em; }
.dpc-status { font-size: 0.78em; font-weight:600; padding: 4px 12px; border-radius: 999px; background:#f1f5f9; color: var(--dpc-muted); text-transform:capitalize; }
.dpc-status-unlocked { background:#dcfce7; color:#15803d; }
.dpc-status-pending { background:#fef9c3; color:#a16207; }

.dpc-search-bar { display:flex; gap:10px; margin-bottom: 18px; flex-wrap: wrap; }
.dpc-search-bar > * { flex: 1; min-width: 140px; }
.dpc-search-bar button { flex: 0 0 auto; margin-top:0 !important; }

.dpc-results-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.dpc-clinic-card, .dpc-patient-card {
  border:1px solid var(--dpc-border); border-radius: calc(var(--dpc-radius) + 2px); padding: 16px; background:#fff;
  box-shadow: var(--dpc-shadow); transition: box-shadow .15s ease, transform .15s ease;
}
.dpc-clinic-card:hover, .dpc-patient-card:hover { box-shadow: var(--dpc-shadow-lg); transform: translateY(-2px); }
.dpc-clinic-card img { width:64px; height:64px; border-radius:50%; object-fit:cover; margin-bottom:10px; }
.dpc-clinic-card h4 { margin:4px 0; font-size: 1.05em; }
.dpc-clinic-card .dpc-tag { display:inline-block; background:var(--dpc-bg); color:var(--dpc-muted); font-size:0.76em; font-weight:500; padding:3px 10px; border-radius:999px; margin:2px 4px 0 0; }

.dpc-chat { border-top:1px solid var(--dpc-border); margin-top:14px; padding-top:14px; }
.dpc-chat-messages { max-height: 220px; overflow-y:auto; display:flex; flex-direction:column; gap:7px; margin-bottom:10px; }
.dpc-msg { padding:9px 14px; border-radius: calc(var(--dpc-radius) + 4px); max-width:75%; font-size: 0.94em; }
.dpc-msg-mine { align-self:flex-end; background: var(--dpc-primary); color:#fff; }
.dpc-msg-theirs { align-self:flex-start; background: var(--dpc-bg); color: var(--dpc-text); }
.dpc-chat-input { display:flex; gap:8px; }
.dpc-chat-input input { flex:1; }
.dpc-chat-input button { margin-top:0 !important; }

.dpc-modal-overlay { position:fixed; inset:0; background:rgba(15,23,42,.55); display:flex; align-items:center; justify-content:center; z-index:9999; padding: 20px; }
.dpc-modal { background:#fff; border-radius: calc(var(--dpc-radius) + 4px); padding:28px; max-width:420px; width:100%; box-shadow: var(--dpc-shadow-lg); }
.dpc-modal h3 { margin: 0 0 6px; font-size: 1.15em; }
.dpc-payment-modal { box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.dpc-card-element { border:1.5px solid var(--dpc-border); border-radius: var(--dpc-radius); padding:14px 12px; background:#fff; margin-top:12px; }

/* ---------- Public price-comparison search widget ---------- */
.dpc-price-search-wrap { max-width: 1000px; margin: 0 auto; }
.dpc-price-search-card {
  background:#fff; border-radius: calc(var(--dpc-radius) + 4px); padding: 24px 26px; border:1px solid var(--dpc-border);
  display:flex; align-items:flex-end; gap:14px; flex-wrap:wrap; box-shadow: var(--dpc-shadow);
}
.dpc-price-search-field { flex:1; min-width:150px; }
.dpc-price-search-field label { font-weight:600; margin: 0 0 7px; display:block; font-size: 0.9em; }
.dpc-price-search-field select, .dpc-price-search-field input {
  width:100%; padding:12px 14px !important; border:1.5px solid var(--dpc-border); border-radius: var(--dpc-radius);
  background: var(--dpc-bg); font-size: var(--dpc-font-size); transition: border-color .15s ease;
}
.dpc-price-search-field select:focus, .dpc-price-search-field input:focus { outline:none; border-color: var(--dpc-primary); background:#fff; }
.dpc-price-search-card .dpc-btn { margin-top:0 !important; padding:12px 26px !important; flex: 0 0 auto; }
.dpc-price-search-status { text-align:center; margin: 24px 0 6px; font-size: 1.05em; font-weight: 600; }
.dpc-price-search-note { text-align:center; color: var(--dpc-muted); font-size:0.88em; margin-bottom: 24px; }
.dpc-price-not-found { text-align:center; background:#fff; border:1px solid var(--dpc-border); border-radius: calc(var(--dpc-radius) + 4px); padding: 40px 24px; box-shadow: var(--dpc-shadow); }
.dpc-price-not-found p:first-child { font-size:1.2em; margin-top:0; }

.dpc-price-results { display:flex; flex-direction:column; gap:14px; }
.dpc-price-row {
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap: wrap;
  background:#fff; border:1px solid var(--dpc-border); border-radius: calc(var(--dpc-radius) + 4px); padding: 24px 28px;
  box-shadow: var(--dpc-shadow); transition: box-shadow .15s ease, transform .15s ease;
}
.dpc-price-row:hover { box-shadow: var(--dpc-shadow-lg); transform: translateY(-1px); }
.dpc-price-row-info { display:flex; align-items:center; gap:20px; }
.dpc-price-row-info img { width:96px; height:96px; border-radius: calc(var(--dpc-radius) + 2px); object-fit:cover; flex-shrink:0; }
.dpc-price-row-name { font-weight:600; font-size:1.15em; }
.dpc-price-row-sub { color: var(--dpc-muted); font-size:0.95em; margin-top:4px; }
.dpc-price-row-amount { font-weight:700; color: var(--dpc-primary); font-size:1.35em; white-space:nowrap; }
.dpc-price-row-cta { display:flex; align-items:center; gap:18px; }
@media (max-width: 560px) {
  .dpc-price-row-info img { width:64px; height:64px; }
  .dpc-price-row { padding: 18px 20px; }
}

/* Professional card-grid layout for price search results, matching treatmentcostcompare.co.uk */
.dpc-price-card-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:18px; }
.dpc-price-card {
  background:#fff; border:1px solid var(--dpc-border); border-radius: 14px; padding: 20px;
  box-shadow: var(--dpc-shadow); transition: box-shadow .15s ease, transform .15s ease; display:flex; flex-direction:column;
}
.dpc-price-card:hover { box-shadow: var(--dpc-shadow-lg); transform: translateY(-2px); }
.dpc-price-card-top { display:flex; align-items:flex-start; gap:12px; margin-bottom:10px; }
.dpc-price-card-icon {
  width:44px; height:44px; border-radius:10px; background: color-mix(in srgb, var(--dpc-primary) 10%, white);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.dpc-price-card-icon svg { width:24px; height:24px; }
.dpc-price-card-name { font-weight:700; font-size:1.02em; margin:0 0 2px; line-height:1.3; }
.dpc-price-card-city { color: var(--dpc-muted); font-size:0.85em; margin:0; }
.dpc-price-card-amount { font-weight:700; font-size:1.25em; margin: 6px 0 2px; }
.dpc-price-card-note { color: var(--dpc-muted); font-size:0.82em; margin:0 0 16px; }
.dpc-price-card .dpc-btn { margin-top:auto !important; align-self:flex-start; }

/* ---------- Clinic public profile page ---------- */
.dpc-clinic-public-page { max-width: 800px; margin: 0 auto; }
.dpc-clinic-public-header {
  display:flex; gap:22px; align-items:center; margin-bottom: 24px; padding: 22px 24px;
  background:#fff; border:1px solid var(--dpc-border); border-radius: calc(var(--dpc-radius) + 4px); box-shadow: var(--dpc-shadow);
}
.dpc-clinic-public-header img { width:100px; height:100px; border-radius:50%; object-fit:cover; border:2px solid #fff; box-shadow: 0 0 0 1.5px var(--dpc-border); }
.dpc-clinic-public-header h2 { margin:0 0 5px; font-size: 1.4em; }
.dpc-clinic-public-header p { margin:2px 0; color: var(--dpc-muted); }
.dpc-clinic-public-services { display:flex; flex-direction:column; gap:9px; margin: 20px 0; }
.dpc-clinic-public-service-row {
  display:flex; justify-content:space-between; align-items:center; padding:14px 18px;
  border:1px solid var(--dpc-border); border-radius: var(--dpc-radius); background:#fff; box-shadow: var(--dpc-shadow);
}
.dpc-clinic-public-service-row .price { font-weight:700; color: var(--dpc-primary); }
.dpc-auth-inline { display:flex; flex-direction:column; gap:10px; margin-top:16px; }
.dpc-auth-inline input { width:100%; padding:11px 14px !important; border:1.5px solid var(--dpc-border); border-radius: var(--dpc-radius); }
.dpc-auth-switch { font-size:0.9em; text-align:center; color: var(--dpc-muted); cursor:pointer; margin-top: 6px; }
.dpc-auth-switch:hover { color: var(--dpc-primary); }

/* ---------- Auto-created page wrapper — heading + subtitle above the shortcode content ---------- */
.dpc-page-section { padding: 60px 20px 76px; max-width: 1000px; margin: 0 auto; }
.dpc-page-header { text-align: center; margin-bottom: 36px; }
.dpc-page-header h1 { font-size: 2em; margin: 0 0 10px; color: var(--dpc-text); font-weight: 700; letter-spacing: -0.01em; }
.dpc-page-header p { color: var(--dpc-muted); margin: 0; font-size: 1.05em; max-width: 560px; margin-left:auto; margin-right:auto; }

/* All Procedures browse page */
.dpc-procedures-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 16px; max-width:1000px; margin:0 auto; }
.dpc-procedure-card {
  display:flex; flex-direction:column; gap:10px; background:#fff; border:1px solid var(--dpc-border);
  border-radius: calc(var(--dpc-radius) + 2px); padding: 22px 20px; box-shadow: var(--dpc-shadow);
  text-decoration:none; transition: box-shadow .15s ease, transform .15s ease;
}
.dpc-procedure-card:hover { box-shadow: var(--dpc-shadow-lg); transform: translateY(-2px); }
.dpc-procedure-card-name { font-weight:700; font-size:1.1em; color: var(--dpc-text); }
.dpc-procedure-card-cta { color: var(--dpc-primary); font-weight:600; font-size:0.9em; }

/* Sidebar dashboard layout */
.dpc-dashboard-sidebar-layout {
  display:flex; align-items:stretch; border:1px solid var(--dpc-border); border-radius: calc(var(--dpc-radius) + 4px);
  overflow:hidden; box-shadow: var(--dpc-shadow); background:#fff; width:100%;
}
.dpc-sidebar {
  width:200px; flex-shrink:0; background: var(--dpc-bg); border-right:1px solid var(--dpc-border);
  padding:20px 14px; display:flex; flex-direction:column; gap:4px;
}
.dpc-sidebar-brand { font-size:13px; font-weight:700; color: var(--dpc-muted); margin:0 0 14px; padding:0 10px; }
.dpc-sidebar .dpc-tab-btn {
  text-align:left; width:100%; background:none; border:none; padding:10px 12px; border-radius:8px;
  font-size:14px; font-weight:500; color: var(--dpc-text); cursor:pointer; margin:0;
  display:flex; justify-content:space-between; align-items:center;
}
.dpc-sidebar .dpc-tab-btn.active { background: var(--dpc-primary); color:#fff; }
.dpc-sidebar .dpc-tab-btn:hover:not(.active) { background:#fff; }
.dpc-badge { background:#fee2e2; color:#991b1b; font-size:11px; font-weight:700; padding:1px 7px; border-radius:999px; }
.dpc-sidebar-logout {
  margin-top:auto; padding-top:14px; margin-top:14px; border-top:1px solid var(--dpc-border);
  font-size:14px; color: var(--dpc-muted); text-decoration:none; display:block; padding:12px 12px 0;
}
.dpc-sidebar-logout:hover { color:#dc2626; }
.dpc-dashboard-main { flex:1; padding:22px 24px; min-width:0; }
.dpc-stats-row { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:20px; }
.dpc-stat-card { background: var(--dpc-bg); border-radius:10px; padding:12px 14px; }
.dpc-stat-card .num { font-size:20px; font-weight:700; margin:0; }
.dpc-stat-card .label { font-size:11px; color: var(--dpc-muted); margin:4px 0 0; }
@media (max-width: 720px) {
  .dpc-dashboard-sidebar-layout { flex-direction:column; }
  .dpc-sidebar { width:100%; flex-direction:row; overflow-x:auto; border-right:none; border-bottom:1px solid var(--dpc-border); align-items:center; }
  .dpc-sidebar-brand { display:none; }
  .dpc-sidebar-logout { margin-top:0; border-top:none; padding:10px 12px; }
  .dpc-stats-row { grid-template-columns:repeat(2,1fr); }
}

/* Listing image uploader + paused state */
.dpc-listing-image-uploader { display:flex; flex-direction:column; align-items:center; gap:6px; }
.dpc-listing-image-uploader img { width:48px; height:48px; border-radius:8px; object-fit:cover; border:1px solid var(--dpc-border); background:#eee; }
.dpc-listing-paused { opacity:0.6; }

/* ---------- Custom photo upload popup (replaces the default WP media modal) ---------- */
.dpc-upload-modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100000; padding: 20px; box-sizing: border-box;
}
.dpc-upload-modal-overlay[hidden] { display: none; }
.dpc-upload-modal {
  background: #fff; border-radius: calc(var(--dpc-radius) + 4px);
  box-shadow: var(--dpc-shadow-lg); padding: 28px; width: 100%; max-width: 420px;
  position: relative; box-sizing: border-box;
}
.dpc-upload-modal h3 { margin: 0 0 4px; font-size: 1.15em; }
.dpc-upload-modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 22px; line-height: 1; color: var(--dpc-muted); cursor: pointer; padding: 4px;
}
.dpc-upload-modal-close:hover { color: var(--dpc-text); }
.dpc-upload-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; margin-top: 16px; padding: 28px 16px; min-height: 140px;
  border: 2px dashed var(--dpc-border); border-radius: var(--dpc-radius);
  background: var(--dpc-bg); cursor: pointer; text-align: center;
  color: var(--dpc-muted); font-size: 0.92em; transition: border-color .15s, background .15s;
  box-sizing: border-box;
}
.dpc-upload-dropzone:hover, .dpc-upload-dropzone.dpc-dragover {
  border-color: var(--dpc-primary); background: color-mix(in srgb, var(--dpc-primary) 6%, var(--dpc-bg));
}
.dpc-upload-dropzone img {
  max-width: 100%; max-height: 160px; border-radius: calc(var(--dpc-radius) - 2px); object-fit: cover;
}
.dpc-upload-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dpc-upload-modal-actions .dpc-btn { margin-top: 0; }

/* ---------- Blurred paywall (logged-out visitors on price results & clinic profile) ---------- */
.dpc-locked-wrap { position: relative; min-height: 160px; }
.dpc-blurred { filter: blur(7px); pointer-events: none; user-select: none; }
.dpc-lock-overlay {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.4); border-radius: calc(var(--dpc-radius) + 4px);
}
.dpc-lock-card {
  background: #fff; border: 1px solid var(--dpc-border); border-radius: calc(var(--dpc-radius) + 4px);
  box-shadow: var(--dpc-shadow-lg); padding: 28px 30px; max-width: 380px; width: 90%; text-align: center;
}

/* ---------- Clinic dashboard: Billing tab ---------- */
.dpc-billing-balance-card {
  background: var(--dpc-bg); border-radius: calc(var(--dpc-radius) + 4px); padding: 24px 26px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px;
}
.dpc-billing-balance-amount { font-size: 1.8em; font-weight: 700; color: var(--dpc-text); }
.dpc-billing-balance-label { color: var(--dpc-muted); font-size: 0.9em; margin-top: 2px; }
.dpc-billing-rate-note { color: var(--dpc-muted); font-size: 0.88em; margin-top: -8px; margin-bottom: 20px; }

.dpc-simple-table { width: 100%; border-collapse: collapse; font-size: 0.92em; }
.dpc-simple-table th, .dpc-simple-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--dpc-border); }
.dpc-simple-table th { color: var(--dpc-muted); font-weight: 600; font-size: 0.85em; text-transform: uppercase; letter-spacing: .02em; }
.dpc-simple-table tbody tr:last-child td { border-bottom: none; }
