/* ================================================================
   JURISDICTION DISCLAIMER MODAL — Medhas Law Homepage
   Matches navy / white / ivory / champagne-gold theme from styles.css.
   Separate jurisdiction views for India (Bar Council) and USA (LPO/MLS).
   ================================================================ */

.disc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 46, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.disc-modal-backdrop.disc-open {
  opacity: 1;
  visibility: visible;
}

.disc-modal {
  position: relative;
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38), 0 4px 16px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(196, 154, 82, 0.35);
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.disc-modal-backdrop.disc-open .disc-modal {
  transform: scale(1) translateY(0);
}

/* ── Header ──────────────────────────────────────────────────── */
.disc-modal-head {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 22px 28px 18px;
  border-bottom: 2px solid rgba(196, 154, 82, 0.35);
  flex-shrink: 0;
}

.disc-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.disc-modal-eyebrow {
  font-size: 0.70rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Jurisdiction Switcher Tabs */
.disc-region-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}

.disc-region-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.disc-region-tab:hover {
  color: #FFFFFF;
}

.disc-region-tab.active {
  background: var(--gold);
  color: var(--navy-dark);
}

.disc-region-tab img {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.disc-modal-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
}

/* ── Scrollable Body ─────────────────────────────────────────── */
.disc-modal-body {
  padding: 22px 28px;
  overflow-y: auto;
  flex: 1 1 auto;
  color: var(--text-dark, #1e293b);
  font-size: 0.90rem;
  line-height: 1.68;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.disc-modal-body::-webkit-scrollbar { width: 5px; }
.disc-modal-body::-webkit-scrollbar-track { background: transparent; }
.disc-modal-body::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

.disc-panel {
  display: none;
}

.disc-panel.active {
  display: block;
}

.disc-modal-body p {
  margin: 0 0 12px;
  color: #334155;
}

.disc-modal-body p:last-child {
  margin-bottom: 0;
}

.disc-list {
  margin: 10px 0 14px;
  padding-left: 20px;
  list-style: disc;
}

.disc-list li {
  margin-bottom: 8px;
  color: #334155;
}

.disc-list li:last-child {
  margin-bottom: 0;
}

.disc-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disc-link:hover {
  color: var(--gold-dark);
}

.disc-usa-note {
  background: var(--ivory, #F8F6F0);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 18px 20px;
}

/* ── Footer / Actions ────────────────────────────────────────── */
.disc-modal-foot {
  padding: 16px 28px 20px;
  background: var(--ivory, #F8F6F0);
  border-top: 1px solid #e6e0d4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.disc-foot-note {
  font-size: 0.78rem;
  color: #526071;
  margin: 0;
}

.disc-agree-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: 7px;
  font-family: var(--font-ui);
  font-size: 0.90rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
  margin-left: auto;
}

.disc-agree-btn:hover {
  background: var(--gold-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(196, 154, 82, 0.35);
}

.disc-agree-btn:focus-visible,
.disc-region-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Mobile Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
  .disc-modal-head {
    padding: 18px 20px 14px;
  }
  .disc-modal-title {
    font-size: 1.32rem;
  }
  .disc-modal-body {
    padding: 18px 20px;
    font-size: 0.85rem;
  }
  .disc-modal-foot {
    padding: 14px 20px 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .disc-foot-note {
    text-align: center;
  }
  .disc-agree-btn {
    width: 100%;
    margin-left: 0;
  }
}
