@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;600;700;800&family=Work+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-canvas: #FAF9F5;
  --text-main: #2A2E27;
  --text-muted: #8A9084;
  --text-label: #3A3F38;
  --primary-accent: #C96F4C;
  --primary-accent-hover: #b55f3e;
  --primary-accent-light: #FBE7DC;
  --green-dark: #3F4A3A;
  --green-step: #7E9680;
  --green-light-bg: #EDF3EA;
  --border-light: #DDE3D8;
  --pad-x: 64px;
  --cols-2: repeat(2, minmax(0, 1fr));
  --cols-4: repeat(4, minmax(0, 1fr));
  --hero-title: 44px;
  --h2-size: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--bg-canvas);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-font {
  font-family: 'Fraunces', serif;
  margin: 0;
}

a {
  color: var(--primary-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: 'Work Sans', sans-serif;
}

input, textarea, select {
  font-family: 'Work Sans', sans-serif;
  box-sizing: border-box;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--green-step);
  outline-offset: 1px;
}

.democ-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  background: var(--bg-canvas);
  padding-bottom: 140px;
  min-height: 100vh;
}

/* Hero section */
.democ-hero {
  background: var(--green-dark);
  padding: 56px var(--pad-x) 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.democ-tagline {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgb(199, 214, 194);
  font-weight: 600;
}

.democ-hero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.democ-hero-text {
  max-width: 640px;
}

.democ-hero-h1 {
  font-size: var(--hero-title);
  color: rgb(250, 249, 245);
  line-height: 1.15;
}

.democ-hero-p {
  font-size: 17px;
  color: rgb(220, 229, 216);
  margin-top: 12px;
  margin-bottom: 0;
  line-height: 1.6;
}

.democ-price-badge {
  background: var(--primary-accent);
  border-radius: 16px;
  padding: 22px 28px;
  text-align: center;
  min-width: 180px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.democ-price-title {
  font-size: 13px;
  color: rgb(251, 231, 220);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.democ-price-amt {
  font-size: 40px;
  color: #ffffff;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.1;
}

.democ-price-sub {
  font-size: 12px;
  color: rgb(251, 231, 220);
  margin-top: 4px;
}

/* Sections */
.democ-section {
  padding: 40px var(--pad-x) 8px;
}

.democ-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.democ-step-badge {
  background: var(--green-step);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.democ-step-title {
  font-size: var(--h2-size);
  color: var(--text-main);
}

.democ-step-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  margin-left: 40px;
}

/* Form fields */
.democ-form-grid-2 {
  display: grid;
  grid-template-columns: var(--cols-2);
  gap: 24px;
  margin-top: 24px;
}

.democ-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.democ-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-label);
}

.democ-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.democ-input {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  background: #ffffff;
  color: var(--text-main);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.democ-input:focus {
  border-color: var(--green-step);
  background: #ffffff;
}

.democ-textarea {
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 15px;
  background: #ffffff;
  min-height: 80px;
  resize: vertical;
  color: var(--text-main);
}

/* Pill buttons (Gender, Days, Goals, Health Issues) */
.democ-pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.democ-pill {
  padding: 10px 18px;
  border-radius: 22px;
  border: 2px solid var(--border-light);
  background: #ffffff;
  color: var(--text-label);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  user-select: none;
}

.democ-pill:hover {
  border-color: #c0cbb9;
  background: #fbfbf9;
}

.democ-pill.active {
  border-color: var(--primary-accent) !important;
  background: var(--primary-accent) !important;
  color: #ffffff !important;
}

/* Selectable Cards (Practice Levels, Programs) */
.democ-cards-grid-4 {
  display: grid;
  grid-template-columns: var(--cols-4);
  gap: 12px;
}

.democ-cards-grid-2 {
  display: grid;
  grid-template-columns: var(--cols-2);
  gap: 16px;
  margin-top: 20px;
}

.democ-card-btn {
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid var(--border-light);
  background: #ffffff;
  color: var(--text-label);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.democ-card-btn:hover {
  border-color: #abbfa9;
  background: #fdfefd;
}

.democ-card-btn.active {
  border-color: var(--green-step) !important;
  background: var(--green-light-bg) !important;
  color: var(--text-label) !important;
  box-shadow: 0 2px 8px rgba(126, 150, 128, 0.15);
}

.democ-card-title {
  font-size: 15px;
  font-weight: 700;
}

.democ-card-desc {
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.85;
}

.democ-program-title {
  font-size: 16px;
  font-weight: 700;
}

.democ-program-time {
  font-size: 13px;
  margin-top: 10px;
  font-weight: 600;
  color: var(--text-label);
}

/* Terms Notice Box */
.democ-terms-box {
  background: #FBF1EC;
  border: 1px solid #EBC4AE;
  border-radius: 14px;
  padding: 26px 28px;
}

.democ-terms-heading {
  font-size: 18px;
  color: #8A3D22;
  font-weight: 700;
}

.democ-terms-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #5C3323;
  font-size: 14px;
  line-height: 1.9;
}

.democ-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  color: #5C3323;
  cursor: pointer;
  font-weight: 500;
}

.democ-agree-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary-accent);
  cursor: pointer;
}

/* Schedule summary helper */
.democ-schedule-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #EDF3EA;
  border: 1px solid var(--green-step);
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2F422F;
  box-shadow: 0 2px 6px rgba(47, 66, 47, 0.06);
}

/* Step 4 Locked State & Notice */
.democ-step-locked {
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.democ-step-locked .democ-step-badge {
  background: #A0ABA0;
}

.democ-step-locked .democ-step-title {
  color: #555C51;
}

.democ-step4-locked-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #F4F6F2;
  border: 1.5px dashed #CCD7C7;
  border-radius: 14px;
  padding: 18px 22px;
  color: #4A5445;
}

.democ-locked-icon-wrapper {
  background: #E2EAE0;
  color: #5C6957;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.democ-locked-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #384233;
}

.democ-locked-sub {
  font-size: 13px;
  color: #657060;
  margin-top: 4px;
  line-height: 1.45;
}

/* Dynamic Day Selection Cards Grid (Compact & Refined) */
.democ-day-cards-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.democ-day-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 8px 12px;
  min-width: 140px;
  max-width: 180px;
  flex: 0 1 auto;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  user-select: none;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.democ-day-card:hover {
  border-color: #ABBFA9;
  background: #FDFEFD;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(63, 74, 58, 0.06);
}

.democ-day-card.active {
  border-color: var(--primary-accent) !important;
  background: #FBF3EF !important;
  box-shadow: 0 3px 10px rgba(201, 111, 76, 0.12) !important;
}

.democ-day-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.democ-day-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.democ-day-card.active .democ-day-card-name {
  color: #8F3E1F;
}

.democ-day-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
}

.democ-badge-today {
  background: #E6F4EA;
  color: #137333;
  border: 1px solid #CEEAD6;
}

.democ-badge-tomorrow {
  background: #E8F0FE;
  color: #1A73E8;
  border: 1px solid #D2E3FC;
}

.democ-badge-thisweek {
  background: #EDF3EA;
  color: #3F4A3A;
  border: 1px solid #D4E0D1;
}

.democ-badge-nextweek {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.democ-day-card-body {
  display: flex;
  align-items: center;
  border-top: none;
  padding-top: 0;
  margin-top: 2px;
}

.democ-day-date-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.democ-day-date-row svg {
  color: var(--green-step);
  flex-shrink: 0;
}

.democ-day-date-text {
  letter-spacing: -0.2px;
}

.democ-day-card.active .democ-day-date-row svg {
  color: var(--primary-accent);
}

.democ-day-card.active .democ-day-date-text {
  color: #8F3E1F;
}

/* Step 4: Mode Switcher Tabs */
.democ-step4-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F4F0;
  padding: 4px;
  border-radius: 12px;
  margin-top: 14px;
  margin-bottom: 12px;
  max-width: 100%;
}

.democ-step4-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #526050;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.democ-step4-tab:hover {
  color: #1F2937;
  background: rgba(255, 255, 255, 0.5);
}

.democ-step4-tab.active {
  background: #ffffff;
  color: #1E2E1D;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.democ-step4-tab-badge {
  font-size: 10px;
  padding: 1px 7px;
  background: #DCFCE7;
  color: #166534;
  border-radius: 10px;
  font-weight: 700;
}

/* Calendar Switch Prompt Button under Quick Cards */
.democ-cal-switch-prompt {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2D6A4F;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  padding: 7px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.democ-cal-switch-prompt:hover {
  background: #DCFCE7;
  border-color: #86EFAC;
  transform: translateY(-1px);
}

/* Calendar Card / Container */
.democ-cal-container {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 18px;
  max-width: 480px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin-top: 10px;
}

.democ-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F0F2EE;
}

.democ-cal-month-title {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  display: flex;
  align-items: center;
  gap: 6px;
}

.democ-cal-nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.democ-cal-nav-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  background: #ffffff;
  border-radius: 8px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.democ-cal-nav-btn:hover:not(:disabled) {
  background: #F3F4F6;
  border-color: #D1D5DB;
  color: #111827;
}

.democ-cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Weekday header row */
.democ-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  margin-bottom: 6px;
}

.democ-cal-weekday {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 0;
}

/* Day grid */
.democ-cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.democ-cal-cell {
  aspect-ratio: 1;
  min-height: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  position: relative;
  transition: all 0.16s ease;
  user-select: none;
  background: #FAFAFA;
}

.democ-cal-cell.empty {
  visibility: hidden;
  background: transparent;
}

/* Disabled days (non-program days or past dates) */
.democ-cal-cell.disabled {
  background: #F9FAFB;
  color: #D1D5DB;
  border: 1px dashed #E5E7EB;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.45;
}

/* Available Program Days: GREEN & CLICKABLE */
.democ-cal-cell.available {
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  color: #166534;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.08);
}

.democ-cal-cell.available:hover {
  background: #DCFCE7;
  border-color: #22C55E;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.22);
}

.democ-cal-cell.available .democ-cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22C55E;
  margin-top: 2px;
}

/* Selected Date in Calendar: SOLID VIBRANT GREEN */
.democ-cal-cell.selected {
  background: #15803D !important;
  color: #ffffff !important;
  border-color: #166534 !important;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.38) !important;
  font-weight: 800 !important;
  transform: scale(1.05);
}

.democ-cal-cell.selected .democ-cal-dot {
  background: #ffffff !important;
}

/* Legend strip */
.democ-cal-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F0F2EE;
  font-size: 11.5px;
  color: #4B5563;
  flex-wrap: wrap;
}

.democ-cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.democ-cal-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.democ-cal-legend-swatch.available {
  background: #DCFCE7;
  border: 1.5px solid #86EFAC;
}

.democ-cal-legend-swatch.blocked {
  background: #FEE2E2;
  border: 1.5px solid #FCA5A5;
}

.democ-cal-legend-swatch.disabled {
  background: #F3F4F6;
  border: 1px dashed #D1D5DB;
}

.democ-cal-legend-swatch.selected {
  background: #15803D;
}

/* Blocked / Unavailable exception dates for this program */
.democ-cal-cell.blocked {
  background: #FEF2F2 !important;
  color: #DC2626 !important;
  border: 1px solid #FECACA !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.85 !important;
  position: relative;
}

.democ-cal-cell.blocked span.democ-cal-day-num {
  text-decoration: line-through;
  opacity: 0.7;
}

.democ-cal-cell.blocked .democ-cal-blocked-tag {
  font-size: 8px;
  font-weight: 800;
  color: #B91C1C;
  line-height: 1;
  text-decoration: none;
  background: #FEE2E2;
  border-radius: 3px;
  padding: 1px 3px;
  margin-top: 1px;
}

/* Selected Date Confirmation Banner */
.democ-cal-selected-banner {
  margin-top: 12px;
  padding: 12px 14px;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.democ-cal-selected-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.democ-cal-check-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #15803D;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
}

.democ-cal-banner-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #14532D;
}

.democ-cal-banner-sub {
  font-size: 12px;
  color: #166534;
  margin-top: 2px;
}

/* Sticky Bottom Checkout Bar */
.democ-sticky-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
  z-index: 50;
}

.democ-footer-fee-lbl {
  font-size: 13px;
  color: var(--text-muted);
}

.democ-footer-fee-val {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Fraunces', serif;
  color: var(--text-main);
}

.democ-pay-btn {
  padding: 14px 32px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary-accent);
  color: #ffffff;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(201, 111, 76, 0.25);
}

.democ-pay-btn:hover:not(:disabled) {
  background: var(--primary-accent-hover);
  transform: translateY(-1px);
}

.democ-pay-btn:disabled {
  background: #E7E3DC;
  color: #A6A29A;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Modal Popup */
.democ-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.democ-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.democ-modal-card {
  background: #ffffff;
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  padding: 32px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.democ-modal-backdrop.open .democ-modal-card {
  transform: scale(1);
}

/* World Country Combobox Searchable Dropdown Styles */
.democ-country-combobox {
  position: relative;
  flex-shrink: 0;
}

.democ-country-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  padding: 8px 12px;
  background-color: #ffffff;
  border: 1px solid #DDE3D8;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.democ-country-trigger:hover,
.democ-country-trigger:focus,
.democ-country-combobox.open .democ-country-trigger {
  border-color: #15803d;
  background-color: #f8fafc;
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.democ-combobox-arrow {
  color: #64748b;
  transition: transform 0.2s ease;
}

.democ-country-combobox.open .democ-combobox-arrow {
  transform: rotate(180deg);
}

.democ-country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-width: 88vw;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
  z-index: 9999;
  overflow: hidden;
  animation: democFadeIn 0.15s ease-out;
}

@keyframes democFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.democ-country-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.democ-country-search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.democ-country-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.democ-search-clear {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
}

.democ-country-list {
  max-height: 250px;
  overflow-y: auto;
  padding: 4px 0;
  scroll-behavior: smooth;
}

.democ-country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  transition: background-color 0.12s ease;
  user-select: none;
}

.democ-country-item:hover,
.democ-country-item.highlighted {
  background-color: #f0fdf4;
  color: #15803d;
}

.democ-country-item.selected {
  background-color: #dcfce7;
  color: #15803d;
  font-weight: 700;
}

.democ-country-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.democ-country-flag {
  font-size: 19px;
  line-height: 1;
  flex-shrink: 0;
}

.democ-country-name {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.democ-country-code {
  font-weight: 700;
  color: #15803d;
  flex-shrink: 0;
  margin-left: 8px;
}

.democ-no-countries-found {
  padding: 18px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
}

.democ-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.democ-modal-close:hover {
  background: #e2e8f0;
  color: #1e293b;
}

@media (max-width: 680px) {
  body {
    --pad-x: 20px;
    --cols-2: 1fr;
    --cols-4: repeat(2, minmax(0, 1fr));
    --hero-title: 30px;
    --h2-size: 21px;
  }
  
  .democ-cards-grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .democ-modal-card {
    padding: 22px 18px;
  }
}
