@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* LPC Official Branding Palette */
  --primary: #c59b4c;             /* LPC Gold / Ochre */
  --primary-hover: #b3883a;
  --primary-light: #fef9ed;
  --primary-focus: rgba(197, 155, 76, 0.25);
  
  --secondary: #1b7e3c;           /* LPC Forest / Emerald Green */
  --secondary-hover: #156630;
  --secondary-light: #e8f5e9;

  --accent-gold: #caa055;
  --accent-green: #1b7e3c;
  
  /* Light Theme Backgrounds */
  --bg-gradient: #f8fafc;
  --body-bg: #f8fafc;
  --header-bg: #ffffff;
  --panel-bg: #ffffff;
  --panel-bg-alt: #f1f5f9;
  --filter-bar-bg: #e9ecef;
  --filter-bar-border: #d0d7de;
  --panel-border: #e2e8f0;
  --border-light: #cbd5e1;

  /* Typography */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-gold: #c59b4c;
  --text-green: #1b7e3c;

  /* Status Colors */
  --error: #dc2626;
  --error-light: #fee2e2;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #d97706;
  --warning-light: #fef3c7;

  --border-radius-sm: 6px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--body-bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header & Navigation */
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--panel-border);
  padding: 14px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(197, 155, 76, 0.35);
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.logo-text span {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

nav a.active {
  color: var(--primary);
  background: var(--primary-light);
  border-color: rgba(197, 155, 76, 0.3);
  font-weight: 700;
}

/* Page Titles */
h1, .page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

h2 {
  color: var(--text-primary);
  font-weight: 700;
}

/* Page Containers */
main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 20px 60px 20px;
  display: flex;
  flex-direction: column;
}

/* Card Panel for Forms & Wizards */
.card-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  transition: var(--transition);
}

/* Progress Tracker */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 35px;
  position: relative;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.progress-bar {
  position: absolute;
  top: 15px;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 1;
  transition: var(--transition);
}

.step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 2;
  transition: var(--transition);
}

.step.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-focus);
}

.step.completed {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #ffffff;
}

/* Wizard Steps Content */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

input::placeholder {
  color: #94a3b8;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
}

/* Buttons */
.btn-group {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  padding: 10px 22px;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 4px rgba(197, 155, 76, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(197, 155, 76, 0.35);
}

.btn-primary:disabled {
  background: #cbd5e1;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: var(--accent-gold);
  color: #ffffff;
  border: none;
}

.btn-secondary:hover {
  background: #b3883a;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: #f8fafc;
  color: var(--text-primary);
  border-color: #94a3b8;
}

.btn-green {
  background: var(--secondary);
  color: #ffffff;
}

.btn-green:hover {
  background: var(--secondary-hover);
}

/* Alerts */
.alert {
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
  animation: slideIn 0.25s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  display: block;
}

.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
}

/* OTP Code Input Group */
.otp-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
}

.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-focus);
  outline: none;
}

/* Webcam Capture UI */
.camera-box {
  width: 100%;
  aspect-ratio: 4/3;
  background: #0f172a;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--panel-border);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
  margin-bottom: 20px;
}

#webcam, #photo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#photo-preview {
  display: none;
}

.camera-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crop-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 3px dashed var(--primary);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  transition: var(--transition);
}

.crop-circle.success {
  border-color: var(--secondary);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
}

/* =========================================================
   2-COLUMN DIRECTORY LAYOUT (SIDEBAR FILTER + RESULTS LIST)
   ========================================================= */
.directory-container {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 30px;
  align-items: start;
}

.search-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.search-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 10px;
  color: var(--secondary);
}

.results-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-stats {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.list-view-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-list-row {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.member-list-row:hover {
  border-color: var(--primary);
  background: #fffdf9;
  box-shadow: 0 4px 14px rgba(197, 155, 76, 0.16);
  transform: translateY(-1px);
}

/* Status Indicator Dot (Practising = Green, Not Practising = Red) */
.status-indicator-dot {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  pointer-events: auto;
  z-index: 2;
  transition: transform 0.2s ease;
}

.member-list-row:hover .status-indicator-dot,
.member-card:hover .status-indicator-dot {
  transform: scale(1.15);
}

.status-indicator-dot.dot-active {
  background-color: #16a34a;
  box-shadow: 0 0 0 2.5px rgba(22, 163, 74, 0.22);
}

.status-indicator-dot.dot-inactive {
  background-color: #dc2626;
  box-shadow: 0 0 0 2.5px rgba(220, 38, 38, 0.22);
}

.member-list-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.member-list-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-list-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.member-list-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

.member-list-sub .desig-tag {
  color: var(--primary);
  font-weight: 600;
}

.member-list-right {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 140px;
}

.member-list-firm {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.member-list-location {
  font-size: 12px;
  color: var(--text-muted);
}

/* Tile Grid View (Cards) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.member-card, .firm-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 18px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.member-card:hover, .firm-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: #fffdf9;
  box-shadow: var(--shadow-md);
}

.card-header {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.card-subtitle {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.card-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.card-body p {
  margin-bottom: 4px;
}

.card-body strong {
  color: var(--text-primary);
}

/* =========================================================
   MODALS (LIGHT THEME)
   ========================================================= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.modal-content {
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 35px;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--text-primary);
}

.modal-header {
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.modal-subtitle {
  color: var(--secondary);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* Practitioner Modal & List Avatars / Facepics */
.practitioner-modal-avatar, .member-list-avatar, .member-card-avatar, .avatar-thumb-item {
  object-fit: cover;
  object-position: center center;
}

.practitioner-modal-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 24px rgba(197, 155, 76, 0.35);
  flex-shrink: 0;
  object-fit: cover;
  object-position: center center;
}

.member-list-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.member-card-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.practitioner-modal-avatar-fallback {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 3px solid var(--primary);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(197, 155, 76, 0.35);
  flex-shrink: 0;
}

/* Detail List Grid */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge-primary {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-secondary {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-warning {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Firm Association Card in Practitioner Detail */
.firm-assoc-card {
  background: #f8fafc;
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 16px 20px;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 8px;
}

.firm-assoc-card:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.firm-assoc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.firm-assoc-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.firm-assoc-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(197, 155, 76, 0.4);
  transition: var(--transition);
  white-space: nowrap;
}

.firm-assoc-card:hover .firm-assoc-action {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Firm Member Table/List */
.firm-members-list {
  background: #ffffff;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--panel-border);
  overflow-x: auto;
}

.firm-member-row {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.6fr 1fr;
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  align-items: center;
  min-width: 500px;
}

.firm-member-row.header {
  font-weight: 700;
  color: var(--secondary);
  background: #f8fafc;
  font-size: 12px;
  border-bottom: 2px solid var(--secondary);
}

.firm-member-row:not(.header) {
  cursor: pointer;
  transition: background 0.15s ease;
}

.firm-member-row:not(.header):hover {
  background: #fef9ed;
}

.firm-member-row:last-child {
  border-bottom: none;
}

.role-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 600;
}

.role-pill.partner {
  background: #dcfce7;
  color: #15803d;
  border-color: #bbf7d0;
}

.role-pill.assistant {
  background: #f3e8ff;
  color: #7e22ce;
  border-color: #e9d5ff;
}

.role-pill.consultant {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* Success Card */
.success-header {
  text-align: center;
  margin-bottom: 25px;
}

.success-icon {
  font-size: 56px;
  color: var(--secondary);
  margin-bottom: 12px;
}

.pass-card {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--border-radius-lg);
  padding: 25px;
  margin: 20px auto;
  box-shadow: var(--shadow-md);
  max-width: 380px;
  text-align: center;
}

.pass-card h3 {
  font-size: 18px;
  color: #15803d;
  margin-bottom: 8px;
}

.pass-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 16px;
}

.qr-code-img {
  background: white;
  padding: 10px;
  border-radius: 8px;
  width: 170px;
  height: 170px;
  margin: 0 auto 16px auto;
  box-shadow: var(--shadow-sm);
}

/* Footer styling */
footer {
  background: #ffffff;
  border-top: 1px solid var(--panel-border);
  padding: 24px 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: auto;
}

.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Comprehensive Responsive & Mobile-friendly adjustments */
@media (max-width: 900px) {
  .directory-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .search-panel {
    margin-bottom: 0;
  }
}

@media (max-width: 680px) {
  main {
    padding: 15px 12px;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .nav-container {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .nav-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 6px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .member-list-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .member-list-right {
    text-align: left;
    width: 100%;
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
  }

  .modal-content {
    padding: 20px 16px;
    max-width: 95vw;
    margin: 10px auto;
  }

  .modal-header {
    padding-right: 32px;
    gap: 10px;
  }

  .modal-title {
    font-size: 18px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .firm-assoc-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .firm-assoc-action {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .pagination-container {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
}

/* ==========================================================================
   Apple Glassmorphism UI Theme & Modern LPC Homepage Design System
   ========================================================================== */

/* Glass Design Tokens & Official LPC Color Palette */
:root {
  --gold-primary: #ccaf6d;          /* Official LPC Gold */
  --gold-hover: #b89a57;
  --gold-glow: rgba(204, 175, 109, 0.35);
  --navy-dark: #002b49;           /* Official LPC Deep Navy */
  --navy-royal: #0c426e;
  --red-accent: #731806;          /* Official LPC Deep Crimson */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-bg-dark: rgba(0, 43, 73, 0.90);
  --glass-bg-subtle: rgba(248, 250, 252, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.65);
  --glass-border-gold: 1px solid rgba(204, 175, 109, 0.45);
  --glass-border-subtle: 1px solid rgba(226, 232, 240, 0.7);
  --glass-blur: blur(22px) saturate(190%);
  --glass-shadow: 0 20px 45px rgba(0, 43, 73, 0.09), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  --glass-shadow-hover: 0 30px 60px rgba(0, 43, 73, 0.16), inset 0 1px 2px rgba(255, 255, 255, 0.95);
}

/* Brand Logo Image Styling */
.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
  transition: transform 0.25s ease;
}

.brand-group:hover .brand-logo-img {
  transform: scale(1.03);
}

/* Top Utility Header Line */
.top-utility-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.2px;
}

.utility-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.utility-item:hover {
  color: var(--gold-primary);
}

.utility-item i {
  color: var(--gold-primary);
  font-size: 13px;
}

/* Main Translucent Glass Navbar */
header.apple-glass-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  padding: 12px 0;
  transition: background 0.3s ease, padding 0.3s ease;
}

.glass-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, #a67c33 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 6px 18px var(--gold-glow), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 19px;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-primary);
}

/* Multi-level Glass Navigation Menu */
.glass-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: var(--navy-royal);
  background: rgba(197, 155, 76, 0.12);
}

.nav-link i.arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.nav-item:hover .nav-link i.arrow {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

/* Glass Dropdown Lists */
.glass-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: var(--glass-border-gold);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
  margin-top: 6px;
}

.nav-item:hover .glass-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  color: var(--navy-dark);
  background: rgba(197, 155, 76, 0.14);
  transform: translateX(4px);
  font-weight: 600;
}

/* Quick Action Glass Buttons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-glass-gold {
  background: linear-gradient(135deg, rgba(197, 155, 76, 0.9) 0%, rgba(166, 124, 51, 0.95) 100%);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--gold-glow);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-glass-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 155, 76, 0.45);
}

.btn-glass-navy {
  background: rgba(10, 25, 47, 0.9);
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-glass-navy:hover {
  background: var(--navy-royal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 25, 47, 0.25);
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--navy-dark);
  cursor: pointer;
  padding: 6px;
}

/* Hero Apple Glass Container */
.apple-glass-hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(197, 155, 76, 0.22) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(30, 58, 138, 0.25) 0%, transparent 50%),
              linear-gradient(135deg, #0a192f 0%, #0d2247 60%, #1e3a8a 100%);
  padding: 70px 24px 80px 24px;
  color: #ffffff;
  overflow: hidden;
  border-bottom: var(--glass-border-gold);
}

.apple-glass-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fef08a;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 780px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

/* Glass Hero Search Bar & Tabs */
.hero-search-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 26px;
  padding: 24px;
  max-width: 860px;
  margin: 0 auto 45px auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px;
  border-radius: 16px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.search-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-tab.active, .search-tab:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input-group {
  display: flex;
  gap: 12px;
}

.glass-input-wrapper {
  flex: 1;
  position: relative;
}

.glass-input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b !important;
  font-size: 16px;
  z-index: 5;
  pointer-events: none;
}

.hero-search-input {
  width: 100%;
  padding: 16px 20px 16px 50px !important;
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  color: #1e293b !important;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.hero-search-input::placeholder {
  color: #94a3b8 !important;
  font-weight: 400;
}

.hero-search-input:focus {
  background: #ffffff !important;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 155, 76, 0.35);
  color: #1e293b !important;
}

.btn-hero-search {
  background: linear-gradient(135deg, var(--gold-primary) 0%, #b3883a 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px var(--gold-glow);
}

.btn-hero-search:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(197, 155, 76, 0.45);
}

/* Glass Stat Badges Bar */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 18px 22px;
  border-radius: 20px;
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #fef08a;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.4px;
}

/* Main Section Containers & Glass Cards */
.homepage-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-primary);
  background: rgba(197, 155, 76, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(197, 155, 76, 0.25);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.6px;
}

/* Statutory Services Glass Grid */
.services-glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--glass-shadow);
  transition: all 0.35 cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), var(--navy-royal));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 155, 76, 0.4);
  box-shadow: var(--glass-shadow-hover);
}

.glass-card:hover::before {
  opacity: 1;
}

.card-icon-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(197, 155, 76, 0.15) 0%, rgba(30, 58, 138, 0.1) 100%);
  border: 1px solid rgba(197, 155, 76, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

.card-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-royal);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-link-btn:hover {
  color: var(--gold-primary);
  gap: 12px;
}

/* Embedded Digital ID Wizard Container override */
#wizard-card.glass-card-wizard {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border-gold);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(10, 25, 47, 0.1);
  max-width: 760px;
  margin: 0 auto 60px auto;
}

/* Notice & Results Section */
.notices-glass-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

.notice-list-glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--glass-shadow);
}

.notice-item {
  padding: 18px 0;
  border-bottom: 1px dashed rgba(203, 213, 225, 0.8);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-primary);
}

.notice-title-link {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.notice-title-link:hover {
  color: var(--navy-royal);
}

.notice-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Sidebar Quick Downloads Card */
.sidebar-glass-card {
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(30, 58, 138, 0.95) 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-glass-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fef08a;
}

.download-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-glass-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.download-glass-btn:hover {
  background: rgba(197, 155, 76, 0.3);
  border-color: var(--gold-primary);
  transform: translateX(4px);
}

.download-glass-btn i {
  color: #fef08a;
  font-size: 16px;
}

/* Provincial Offices Section */
.provincial-glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.prov-office-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 18px;
  padding: 20px;
  transition: all 0.2s ease;
}

.prov-office-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.prov-office-card h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.prov-office-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Apple Glass Footer */
footer.apple-glass-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px 0;
  border-top: var(--glass-border-gold);
  margin-top: 60px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col h5 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.footer-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-ul a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Mobile Responsive Overrides for Glass Nav & Layout */
@media (max-width: 1024px) {
  .glass-nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .glass-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(197, 155, 76, 0.3);
    padding: 20px;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  .glass-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(248, 250, 252, 0.8);
    margin-top: 6px;
  }

  .hero-title {
    font-size: 32px;
  }

  .notices-glass-layout, .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE RESPONSIVE OVERRIDES FOR DIGITAL ID REGISTRATION WIZARD
   ========================================================= */
@media (max-width: 768px) {
  /* Mobile header: hide top utility bar & desktop header buttons, keeping clean logo & burger menu */
  .top-utility-bar {
    display: none !important;
  }

  .nav-actions .btn-glass-gold,
  .nav-actions .btn-glass-navy {
    display: none !important;
  }

  /* On mobile: hide hero search section, stat badges, statutory cards, advisories, & provincial directory */
  .apple-glass-hero,
  .homepage-container > .section-header,
  .services-glass-grid,
  .notices-glass-layout,
  .provincial-glass-grid {
    display: none !important;
  }

  main.homepage-container {
    padding: 15px 8px 40px 8px !important;
  }

  #digital-id-wizard-section {
    padding-top: 0 !important;
  }

  #wizard-card.glass-card-wizard {
    padding: 24px 16px;
    border-radius: 20px;
    margin: 0 5px 40px 5px;
  }

  .progress-steps {
    margin-bottom: 24px;
  }

  .step {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .wizard-step .btn {
    font-size: 15px;
    padding: 13px 16px;
    min-height: 48px;
  }

  #camera-container {
    width: min(280px, 75vw) !important;
    height: min(280px, 75vw) !important;
    margin: 0 auto 16px auto !important;
  }

  #w-step-3 div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 10px !important;
  }

  #w-step-3 div[style*="display: flex"] .btn {
    width: 100% !important;
    justify-content: center;
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="password"],
  .form-group select {
    font-size: 16px !important; /* Prevents auto-zoom on mobile Safari */
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  #wizard-card.glass-card-wizard {
    padding: 18px 12px;
    border-radius: 16px;
  }

  .otp-container {
    gap: 5px;
    margin: 15px 0;
    width: 100%;
    justify-content: space-between;
  }

  .otp-input {
    width: calc((100% - 25px) / 6);
    max-width: 42px;
    min-width: 32px;
    height: 48px;
    font-size: 18px;
    border-radius: 8px;
    padding: 0;
  }

  #camera-container {
    width: min(240px, 70vw) !important;
    height: min(240px, 70vw) !important;
  }

  .alert {
    padding: 12px 14px;
    font-size: 13px;
  }

  #pass-card-display {
    padding: 18px 14px;
  }
}


