/*
 * plx pages — contact
 * CCC Frontend — Contact Us page (Figma-faithful implementation)
 * Units: px only (see 02-css-standards.md)
 */

.plx-cnt-page {
  background-color: var(--plx-bg-body);
  color: var(--plx-text-primary);
  min-height: 100vh;
  position: relative;
}

/* ══════════════════════════════════════════════════════════
   1. HERO SECTION
   ══════════════════════════════════════════════════════════ */
.plx-cnt-hero {
  background-color: #FFFFFF;
  border-bottom: 1px solid rgba(18, 18, 18, 0.05);
  min-height: 250px;
  max-height: 280px;
  overflow: hidden;
  position: relative;
}

.plx-cnt-hero-bg {
  bottom: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 1;
}

.plx-cnt-hero-bg-img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  width: 100%;
}

.plx-cnt-hero-inner {
  align-items: center;
  display: flex;
  min-height: 250px;
  padding: 28px var(--plx-container-padding-x) 32px;
  position: relative;
  z-index: 2;
}

.plx-cnt-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.plx-cnt-badge {
  align-items: center;
  align-self: flex-start;
  background: var(--plx-bg-surface);
  border: 1px solid var(--plx-border-default);
  border-radius: var(--plx-radius-full);
  color: var(--plx-color-ink);
  display: inline-flex;
  font-family: var(--plx-font-body);
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 6px 14px;
  text-transform: uppercase;
}

.plx-cnt-badge-dot {
  background-color: var(--plx-color-primary);
  border-radius: 50%;
  display: inline-block;
  height: 8px;
  width: 8px;
}

.plx-cnt-title {
  color: var(--plx-color-ink);
  font-family: var(--plx-font-body);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.plx-cnt-highlight {
  color: var(--plx-color-primary);
}

.plx-cnt-lead {
  color: var(--plx-text-secondary);
  font-family: var(--plx-font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  max-width: 480px;
}



/* ══════════════════════════════════════════════════════════
   2. LOCATIONS SECTION
   ══════════════════════════════════════════════════════════ */
.plx-cnt-locations {
  background: var(--plx-bg-ecosystem);
  padding: 48px 0 24px 0;
  position: relative;
}

.plx-cnt-eyebrow {
  color: var(--plx-color-primary);
  display: block;
  font-family: var(--plx-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.plx-cnt-locations-top {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.plx-cnt-heading {
  color: var(--plx-color-ink);
  font-family: var(--plx-font-body);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.plx-cnt-subheading {
  color: var(--plx-text-secondary);
  font-family: var(--plx-font-body);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  max-width: 720px;
}

.plx-cnt-locations-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Clinic Card */
.plx-cnt-card {
  background: var(--plx-bg-surface);
  border: 1px solid var(--plx-border-default);
  border-radius: var(--plx-radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plx-cnt-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px 24px 28px;
}

.plx-cnt-card-title {
  border-bottom: 1px solid var(--plx-border-default);
  color: var(--plx-color-ink);
  font-family: var(--plx-font-body);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 12px 0 24px 0;
  padding-bottom: 20px;
}

.plx-cnt-office-badge {
  align-self: flex-start;
  background: var(--plx-color-primary-light);
  border-radius: var(--plx-radius-full);
  color: var(--plx-color-primary);
  font-family: var(--plx-font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
}

.plx-cnt-detail-item {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.plx-cnt-icon-box {
  align-items: center;
  background: var(--plx-color-primary-light);
  border-radius: 50%;
  color: var(--plx-color-primary);
  display: flex;
  flex-shrink: 0;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.plx-cnt-detail-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.plx-cnt-detail-label {
  color: var(--plx-text-muted);
  font-family: var(--plx-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plx-cnt-detail-value {
  color: var(--plx-color-ink);
  font-family: var(--plx-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.plx-cnt-detail-value a {
  color: var(--plx-color-ink);
  text-decoration: none;
  transition: color var(--plx-transition-fast);
}

.plx-cnt-detail-value a:hover {
  color: var(--plx-color-primary);
}

.plx-cnt-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.plx-cnt-btn-dir {
  background: var(--plx-color-ink);
  color: var(--plx-text-inverse);
  padding: 12px 24px;
}

.plx-cnt-btn-dir .plx-btn-icon {
  align-items: center;
  background: var(--plx-text-inverse);
  border-radius: var(--plx-radius-full);
  color: var(--plx-color-ink);
  display: inline-flex;
  flex-shrink: 0;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.plx-cnt-btn-dir .plx-btn-icon svg {
  display: block;
  height: 10px;
  width: 10px;
}

.plx-cnt-btn-call {
  background: var(--plx-bg-surface);
  border: 1px solid var(--plx-border-default);
  color: var(--plx-color-ink);
  padding: 12px 24px;
}

.plx-cnt-btn-call:hover {
  border-color: var(--plx-color-ink);
}

/* Map Card */
.plx-cnt-map-card {
  background: var(--plx-color-gray-100);
  height: 273px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.plx-cnt-map-overlay {
  background: var(--plx-bg-surface);
  border-radius: var(--plx-radius-md);
  box-shadow: var(--plx-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
  left: 20px;
  max-width: 240px;
  padding: 14px 18px;
  position: absolute;
  top: 20px;
  z-index: 5;
}

.plx-cnt-map-overlay-title {
  color: var(--plx-color-ink);
  font-family: var(--plx-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.plx-cnt-map-overlay-sub {
  color: var(--plx-text-secondary);
  font-family: var(--plx-font-body);
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.plx-cnt-map-overlay-link {
  align-items: center;
  color: var(--plx-color-primary);
  display: inline-flex;
  font-family: var(--plx-font-body);
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  text-decoration: none;
  transition: opacity var(--plx-transition-fast);
}

.plx-cnt-map-overlay-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.plx-cnt-map-iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════
   3. SEND US A MESSAGE SECTION
   ══════════════════════════════════════════════════════════ */
.plx-cnt-form-section {
  border-top: 1px solid rgba(18, 18, 18, 0.05);
  padding: 36px 0 80px 0;
  position: relative;
}

.plx-cnt-form-grid {
  align-items: flex-start;
  display: grid;
  gap: 64px;
  grid-template-columns: 380px 1fr;
}

.plx-cnt-form-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plx-cnt-form-lead {
  color: var(--plx-text-secondary);
  font-family: var(--plx-font-body);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.plx-cnt-form-card {
  background: var(--plx-bg-surface);
  border: 1px solid rgba(18, 18, 18, 0.07);
  border-radius: var(--plx-radius-xl);
  box-shadow: 0 4px 20px rgba(18, 18, 18, 0.04);
  padding: 40px;
}

.plx-cnt-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plx-cnt-form-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.plx-cnt-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.plx-cnt-message-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.plx-cnt-char-counter {
  color: #9C9A95;
  font-family: var(--plx-font-body);
  font-size: 12px;
  font-weight: 500;
}

.plx-cnt-char-counter--limit {
  color: #DC2626;
  font-weight: 600;
}

.plx-cnt-form-group label {
  color: var(--plx-color-ink);
  font-family: var(--plx-font-body);
  font-size: 13px;
  font-weight: 600;
}

.plx-cnt-required {
  color: #DC2626;
  margin-left: 2px;
}

.plx-cnt-input,
.plx-cnt-select,
.plx-cnt-textarea {
  background: #FFFBF9;
  border: 1px solid #EBE5DF;
  border-radius: var(--plx-radius-md);
  color: var(--plx-color-ink);
  font-family: var(--plx-font-body);
  font-size: 14px;
  padding: 13px 16px;
  transition: border-color var(--plx-transition-fast), box-shadow var(--plx-transition-fast), background-color var(--plx-transition-fast);
  width: 100%;
}

.plx-cnt-input::placeholder,
.plx-cnt-textarea::placeholder {
  color: #9C9A95;
}

.plx-cnt-input:focus,
.plx-cnt-select:focus,
.plx-cnt-textarea:focus {
  background: #FFFFFF;
  border-color: var(--plx-color-primary);
  box-shadow: 0 0 0 3px rgba(236, 31, 37, 0.12);
  outline: none;
}

/* Error States */
.plx-cnt-input.plx-input-error,
.plx-cnt-select.plx-input-error,
.plx-cnt-textarea.plx-input-error {
  background: #FFF8F8;
  border-color: #EC1F25;
}

.plx-cnt-input.plx-input-error:focus,
.plx-cnt-select.plx-input-error:focus,
.plx-cnt-textarea.plx-input-error:focus {
  background: #FFFFFF;
  border-color: #EC1F25;
  box-shadow: 0 0 0 3px rgba(236, 31, 37, 0.18);
}

.plx-field-error {
  color: #DC2626;
  display: none;
  font-family: var(--plx-font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  margin-top: 2px;
}

.plx-field-error.plx-field-error--visible {
  display: block;
}

.plx-cnt-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2353555C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 38px;
}

/* ── Custom Select Dropdown ── */
.plx-cnt-custom-select {
  position: relative;
  width: 100%;
}

.plx-cnt-native-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.plx-cnt-select-trigger {
  align-items: center;
  background: #FFFBF9;
  border: 1px solid #EBE5DF;
  border-radius: var(--plx-radius-md);
  color: var(--plx-color-ink);
  cursor: pointer;
  display: flex;
  font-family: var(--plx-font-body);
  font-size: 14px;
  height: 46px;
  justify-content: space-between;
  outline: none;
  padding: 0 16px;
  text-align: left;
  transition: border-color var(--plx-transition-fast), box-shadow var(--plx-transition-fast), background-color var(--plx-transition-fast);
  width: 100%;
}

.plx-cnt-select-trigger:hover {
  background: #FFFFFF;
  border-color: #D3CDC6;
}

.plx-cnt-custom-select.is-open .plx-cnt-select-trigger,
.plx-cnt-select-trigger:focus {
  background: #FFFFFF;
  border-color: var(--plx-color-primary);
  box-shadow: 0 0 0 3px rgba(236, 31, 37, 0.12);
}

.plx-cnt-select-trigger.plx-input-error {
  background: #FFF8F8;
  border-color: #EC1F25;
}

.plx-cnt-select-label {
  color: var(--plx-color-ink);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plx-cnt-select-label--placeholder {
  color: #9C9A95;
}

.plx-cnt-select-chevron {
  color: #53555C;
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform var(--plx-transition-fast), color var(--plx-transition-fast);
}

.plx-cnt-custom-select.is-open .plx-cnt-select-chevron {
  color: var(--plx-color-primary);
  transform: rotate(180deg);
}

.plx-cnt-select-menu {
  background: #FFFFFF;
  border: 1px solid #EBE5DF;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  display: none;
  left: 0;
  list-style: none;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
}

.plx-cnt-custom-select.is-open .plx-cnt-select-menu {
  animation: plxCntDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: block;
}

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

.plx-cnt-select-option {
  align-items: center;
  border-radius: 6px;
  color: #121212;
  cursor: pointer;
  display: flex;
  font-family: var(--plx-font-body);
  font-size: 14px;
  font-weight: 400;
  justify-content: space-between;
  outline: none;
  padding: 10px 12px;
  transition: background-color var(--plx-transition-fast), color var(--plx-transition-fast);
  user-select: none;
}

.plx-cnt-select-option:hover,
.plx-cnt-select-option:focus {
  background-color: #FFF0F0;
  color: var(--plx-color-primary);
}

.plx-cnt-select-option.is-selected {
  background-color: #FEE8E8;
  color: var(--plx-color-primary);
  font-weight: 600;
}

.plx-cnt-select-check {
  color: var(--plx-color-primary);
  display: none;
  flex-shrink: 0;
}

.plx-cnt-select-option.is-selected .plx-cnt-select-check {
  display: inline-block;
}

.plx-cnt-textarea {
  min-height: 120px;
  resize: vertical;
}

.plx-cnt-submit-btn {
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 28px;
}

/* ══════════════════════════════════════════════════════════
   4. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
  .plx-cnt-locations-grid {
    grid-template-columns: 400px 1fr;
  }
}

@media (max-width: 991.98px) {
  .plx-cnt-hero-bg {
    opacity: 0.25;
  }

  .plx-cnt-hero-copy {
    max-width: 100%;
  }

  .plx-cnt-title {
    font-size: 32px;
  }

  .plx-cnt-locations-grid {
    grid-template-columns: 1fr;
  }

  .plx-cnt-form-grid {
    gap: 40px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .plx-cnt-hero {
    max-height: none;
    min-height: auto;
  }

  .plx-cnt-hero-inner {
    min-height: auto;
  }

  .plx-cnt-title {
    font-size: 26px;
  }

  .plx-cnt-heading {
    font-size: 28px;
  }

  .plx-cnt-locations {
    padding: 36px 0 20px 0;
  }

  .plx-cnt-card-body {
    padding: 20px 20px 24px;
  }

  .plx-cnt-form-section {
    padding: 28px 0 48px 0;
  }

  .plx-cnt-form-card {
    padding: 24px 20px;
  }

  .plx-cnt-form-row {
    grid-template-columns: 1fr;
  }

  .plx-cnt-submit-btn {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════
   5. DARK THEME OVERRIDES
   ══════════════════════════════════════════════════════════ */
[data-plx-theme="dark"] .plx-cnt-page {
  background-color: var(--plx-bg-dark);
}

[data-plx-theme="dark"] .plx-cnt-hero,
[data-plx-theme="dark"] .plx-cnt-locations,
[data-plx-theme="dark"] .plx-cnt-form-section {
  background-color: var(--plx-bg-dark);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-plx-theme="dark"] .plx-cnt-badge {
  background: var(--plx-bg-dark-surface);
  border-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

[data-plx-theme="dark"] .plx-cnt-title,
[data-plx-theme="dark"] .plx-cnt-heading,
[data-plx-theme="dark"] .plx-cnt-card-title,
[data-plx-theme="dark"] .plx-cnt-detail-value,
[data-plx-theme="dark"] .plx-cnt-detail-value a,
[data-plx-theme="dark"] .plx-cnt-form-group label {
  color: #FFFFFF;
}

[data-plx-theme="dark"] .plx-cnt-card,
[data-plx-theme="dark"] .plx-cnt-form-card,
[data-plx-theme="dark"] .plx-cnt-map-overlay {
  background: var(--plx-bg-dark-surface);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-plx-theme="dark"] .plx-cnt-input,
[data-plx-theme="dark"] .plx-cnt-select,
[data-plx-theme="dark"] .plx-cnt-textarea {
  background: #242424;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

[data-plx-theme="dark"] .plx-cnt-input.plx-input-error,
[data-plx-theme="dark"] .plx-cnt-select.plx-input-error,
[data-plx-theme="dark"] .plx-cnt-textarea.plx-input-error,
[data-plx-theme="dark"] .plx-cnt-select-trigger.plx-input-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: #EF4444;
}

[data-plx-theme="dark"] .plx-cnt-select-trigger {
  background: #242424;
  border-color: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

[data-plx-theme="dark"] .plx-cnt-select-trigger:hover {
  background: #2A2A2A;
  border-color: rgba(255, 255, 255, 0.2);
}

[data-plx-theme="dark"] .plx-cnt-custom-select.is-open .plx-cnt-select-trigger,
[data-plx-theme="dark"] .plx-cnt-select-trigger:focus {
  background: #242424;
  border-color: #EC1F25;
}

[data-plx-theme="dark"] .plx-cnt-select-label {
  color: #FFFFFF;
}

[data-plx-theme="dark"] .plx-cnt-select-label--placeholder {
  color: #8E92BC;
}

[data-plx-theme="dark"] .plx-cnt-select-chevron {
  color: #8E92BC;
}

[data-plx-theme="dark"] .plx-cnt-select-menu {
  background: #1E1E1E;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

[data-plx-theme="dark"] .plx-cnt-select-option {
  color: #E5E7EB;
}

[data-plx-theme="dark"] .plx-cnt-select-option:hover,
[data-plx-theme="dark"] .plx-cnt-select-option:focus {
  background-color: rgba(236, 31, 37, 0.18);
  color: #FF6B6B;
}

[data-plx-theme="dark"] .plx-cnt-select-option.is-selected {
  background-color: rgba(236, 31, 37, 0.25);
  color: #FF6B6B;
}

[data-plx-theme="dark"] .plx-cnt-select-check {
  color: #FF6B6B;
}

[data-plx-theme="dark"] .plx-field-error,
[data-plx-theme="dark"] .plx-cnt-required {
  color: #F87171;
}

[data-plx-theme="dark"] .plx-cnt-char-counter {
  color: #8E92BC;
}

[data-plx-theme="dark"] .plx-cnt-hero {
  background-color: var(--plx-bg-dark);
}

[data-plx-theme="dark"] .plx-cnt-hero-bg {
  opacity: 0.6;
}

[data-plx-theme="dark"] .plx-cnt-hero-bg::after {
  background: linear-gradient(90deg, var(--plx-bg-dark) 0%, rgba(18, 18, 18, 0.8) 45%, rgba(18, 18, 18, 0.2) 100%);
  content: '';
  inset: 0;
  position: absolute;
}

/* ══════════════════════════════════════════════════════════
   5. ADMIN CONTACT INQUIRIES (Admin Portal / Dashboard)
   ══════════════════════════════════════════════════════════ */
.badge-light-primary {
  background-color: rgba(236, 31, 37, 0.12) !important;
  color: #EC1F25 !important;
  border: 1px solid rgba(236, 31, 37, 0.25) !important;
}

.badge-light-success {
  background-color: rgba(22, 163, 74, 0.12) !important;
  color: #16A34A !important;
  border: 1px solid rgba(22, 163, 74, 0.25) !important;
}

.badge-light-warning {
  background-color: rgba(217, 119, 6, 0.12) !important;
  color: #D97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
}

.badge-light-info {
  background-color: rgba(37, 99, 235, 0.12) !important;
  color: #2563EB !important;
  border: 1px solid rgba(37, 99, 235, 0.25) !important;
}

.badge-light-secondary {
  background-color: rgba(100, 116, 139, 0.12) !important;
  color: #475569 !important;
  border: 1px solid rgba(100, 116, 139, 0.25) !important;
}

.badge-role-partner,
.badge-light-purple {
  background-color: rgba(124, 58, 237, 0.12) !important;
  color: #7C3AED !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
}

.badge-role-general {
  background-color: rgba(100, 116, 139, 0.12) !important;
  color: #475569 !important;
  border: 1px solid rgba(100, 116, 139, 0.25) !important;
}

.badge-light-danger {
  background-color: rgba(220, 38, 38, 0.12) !important;
  color: #DC2626 !important;
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
}

.badge-inquiry-note {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

/* Light mode overrides to prevent white text on light backgrounds */
.badge.bg-light,
.badge.bg-light.text-dark,
.badge.bg-light.text-muted {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
}

.btn-light {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

.btn-light:hover,
.btn-light:focus {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* ─── Metric Cards ─── */
.inquiry-metric-card {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease;
}

.inquiry-metric-card:hover {
  transform: translateY(-2px);
}

.inquiry-metric-number {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  color: #121212;
}

.inquiry-metric-label {
  font-size: 13px;
  color: #78756F;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inquiry-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.inquiry-metric-icon-danger {
  background: rgba(236, 31, 37, 0.12);
  color: #EC1F25;
}

.inquiry-metric-icon-warning {
  background: rgba(217, 119, 6, 0.12);
  color: #D97706;
}

.inquiry-filter-badge {
  font-weight: 500;
}

.inquiry-sr-col {
  width: 60px;
}

.inquiry-message-truncate {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inquiry-actions-cell {
  white-space: nowrap !important;
  width: 110px;
  min-width: 110px;
}

.inquiry-action-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

/* ─── Native Date Input Styling ─── */
.inquiry-date-input {
  cursor: pointer;
}

.inquiry-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.inquiry-date-input:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Prevent duplicate/overlapping validation icon on native date/time pickers */
input[type="date"].form-control.is-invalid,
input[type="date"].is-invalid,
input[type="time"].form-control.is-invalid,
input[type="time"].is-invalid,
input[type="datetime-local"].form-control.is-invalid,
input[type="datetime-local"].is-invalid,
.was-validated input[type="date"]:invalid,
.was-validated input[type="time"]:invalid,
.was-validated input[type="datetime-local"]:invalid {
  background-image: none !important;
  padding-right: 12px !important;
}

/* ─── Clean Status Select Pill ─── */
.inquiry-status-select {
  cursor: pointer;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 24px 3px 10px !important;
  border-radius: 20px !important;
  width: auto !important;
  min-width: 102px;
  height: 26px !important;
  line-height: 1.4 !important;
  background-size: 10px 10px !important;
  background-position: right 8px center !important;
  outline: none !important;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

.inquiry-status-select option {
  background-color: #FFFFFF;
  color: #121212;
}

body.dark-only .inquiry-status-select option,
.dark-only .inquiry-status-select option,
[data-bs-theme="dark"] .inquiry-status-select option {
  background-color: #1d222b;
  color: #FFFFFF;
}

.inquiry-status-select[data-status="new"] {
  background-color: rgba(236, 31, 37, 0.12) !important;
  color: #EC1F25 !important;
  border: 1px solid rgba(236, 31, 37, 0.25) !important;
}

.inquiry-status-select[data-status="contacted"] {
  background-color: rgba(217, 119, 6, 0.12) !important;
  color: #D97706 !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
}

.inquiry-status-select:disabled,
.inquiry-status-select[disabled] {
  cursor: not-allowed !important;
  opacity: 0.9 !important;
  background-image: none !important;
  padding-right: 10px !important;
}

#modalInquiryMessage {
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ─── Admin Dark Mode ─── */
body.dark-only .inquiry-metric-card,
.dark-only .inquiry-metric-card,
[data-bs-theme="dark"] .inquiry-metric-card {
  background-color: var(--card-bg-color, #1d222b) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-only .inquiry-metric-number,
.dark-only .inquiry-metric-number {
  color: #FFFFFF !important;
}

body.dark-only .inquiry-metric-label,
.dark-only .inquiry-metric-label {
  color: #a1a5b7 !important;
}

body.dark-only .table thead th,
.dark-only .table thead th,
[data-bs-theme="dark"] .table thead th {
  background-color: transparent !important;
  color: #a1a5b7 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-only .table tbody td,
.dark-only .table tbody td,
[data-bs-theme="dark"] .table tbody td {
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-only .table-hover tbody tr:hover,
.dark-only .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
}

body.dark-only .modal-content,
.dark-only .modal-content,
[data-bs-theme="dark"] .modal-content {
  background-color: #1d222b !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-only .modal-header,
.dark-only .modal-header,
[data-bs-theme="dark"] .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-only .btn-close,
.dark-only .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

body.dark-only #modalInquiryMessage,
.dark-only #modalInquiryMessage {
  background-color: #161920 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-only #modalInquiryName,
.dark-only #modalInquiryName {
  color: #FFFFFF !important;
}

body.dark-only .form-control,
body.dark-only .form-select,
.dark-only .form-control,
.dark-only .form-select {
  background-color: #161920 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}

body.dark-only input[type="date"],
.dark-only input[type="date"],
[data-bs-theme="dark"] input[type="date"] {
  color-scheme: dark !important;
}

body.dark-only .inquiry-status-select[data-status="new"],
.dark-only .inquiry-status-select[data-status="new"],
[data-bs-theme="dark"] .inquiry-status-select[data-status="new"] {
  background-color: rgba(236, 31, 37, 0.2) !important;
  color: #FF7878 !important;
  border: 1px solid rgba(236, 31, 37, 0.35) !important;
}

body.dark-only .inquiry-status-select[data-status="contacted"],
.dark-only .inquiry-status-select[data-status="contacted"],
[data-bs-theme="dark"] .inquiry-status-select[data-status="contacted"] {
  background-color: rgba(245, 158, 11, 0.2) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

body.dark-only .btn-light,
.dark-only .btn-light {
  background-color: #161920 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #e2e8f0 !important;
}

body.dark-only .btn-light:hover,
.dark-only .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

body.dark-only .badge-light-primary,
.dark-only .badge-light-primary {
  background-color: rgba(236, 31, 37, 0.22) !important;
  color: #FF8A8D !important;
  border: 1px solid rgba(236, 31, 37, 0.35) !important;
}

body.dark-only .badge-light-info,
.dark-only .badge-light-info {
  background-color: rgba(37, 99, 235, 0.22) !important;
  color: #93C5FD !important;
  border: 1px solid rgba(37, 99, 235, 0.35) !important;
}

body.dark-only .badge-light-warning,
.dark-only .badge-light-warning {
  background-color: rgba(217, 119, 6, 0.22) !important;
  color: #FCD34D !important;
  border: 1px solid rgba(217, 119, 6, 0.35) !important;
}

body.dark-only .badge-light-secondary,
.dark-only .badge-light-secondary {
  background-color: rgba(148, 163, 184, 0.2) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

body.dark-only .badge-role-partner,
.dark-only .badge-role-partner,
body.dark-only .badge-light-purple,
.dark-only .badge-light-purple {
  background-color: rgba(168, 85, 247, 0.22) !important;
  color: #D8B4FE !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
}

body.dark-only .badge-role-general,
.dark-only .badge-role-general {
  background-color: rgba(148, 163, 184, 0.18) !important;
  color: #E2E8F0 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

body.dark-only .badge-inquiry-note,
.dark-only .badge-inquiry-note {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-only .badge.bg-light,
.dark-only .badge.bg-light,
body.dark-only .badge.bg-light.text-dark,
.dark-only .badge.bg-light.text-dark,
body.dark-only .badge.bg-light.text-muted,
.dark-only .badge.bg-light.text-muted {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #e2e8f0 !important;
}

body.dark-only .form-control:focus,
body.dark-only .form-select:focus,
.dark-only .form-control:focus,
.dark-only .form-select:focus {
  background-color: #161920 !important;
  color: #FFFFFF !important;
  border-color: var(--theme-default, #7366ff) !important;
}

body.dark-only .text-dark,
.dark-only .text-dark {
  color: #FFFFFF !important;
}

body.dark-only a.text-dark:hover,
.dark-only a.text-dark:hover {
  color: #16a34a !important;
}

body.dark-only .dropdown-menu,
.dark-only .dropdown-menu {
  background-color: #1d222b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.dark-only .dropdown-item,
.dark-only .dropdown-item {
  color: #e2e8f0 !important;
}

body.dark-only .dropdown-item:hover,
.dark-only .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Prevent scroll-to-top button from overlapping Google reCAPTCHA v3 badge on Contact Us */
body:has(.plx-cnt-page) .plx-scroll-top {
  bottom: 88px;
}

.inquiry-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

