/* ==========================================================================
   EZRAN LAW — LUXURY PERFORMANCE ENGINE & INTERACTIVE CRAFT SUITE
   Subtle highlights, ambient rollovers, instant page transitions, consultation drawer.
   ========================================================================== */

/* 1. TOP PROGRESS ACCELERATOR LINE */
#ez-page-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #b89047, #dfba73, #cfab61);
  box-shadow: 0 0 10px rgba(184, 144, 71, 0.8), 0 0 4px rgba(223, 186, 115, 0.9);
  z-index: 999999;
  transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), opacity 250ms ease;
  pointer-events: none;
  opacity: 0;
}
#ez-page-progress.is-active {
  opacity: 1;
}

/* 2. SILKY PAGE TRANSITION WRAPPER */
.ez-page-content {
  animation: ezPageFadeIn 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}
@keyframes ezPageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.ez-page-exit {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

/* 3. AMBIENT CURSOR GLOW & CARD ROLLOVER ILLUMINATION */
.ez-glow-card {
  position: relative;
  transition: border-color 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), 
              transform 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.ez-glow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(184, 144, 71, 0.14),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 1;
}
.ez-glow-card:hover::before {
  opacity: 1;
}
.ez-glow-card:hover {
  border-color: rgba(184, 144, 71, 0.65) !important;
  box-shadow: 0 16px 40px rgba(184, 144, 71, 0.12), 0 4px 12px rgba(20, 28, 36, 0.04) !important;
  transform: translateY(-4px) !important;
}

/* 4. BUTTON SHIMMER & TACTILITY */
.btn-gold, .btn-primary, .btn-outline {
  position: relative;
  overflow: hidden;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), 
              background 220ms ease, 
              box-shadow 220ms ease !important;
}
.btn-gold:active, .btn-primary:active, .btn-outline:active {
  transform: scale(0.98) !important;
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}
.btn-gold:hover::after {
  left: 140%;
  transition: left 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5. UNIVERSAL PRIVATE CONSULTATION SLIDE-OUT DRAWER */
.ez-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 300ms;
}
.ez-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.ez-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  background: #fcfbfa;
  box-shadow: -16px 0 60px rgba(10, 16, 22, 0.25);
  z-index: 99995;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), visibility 380ms;
  display: flex;
  flex-direction: column;
  border-left: 2px solid #b89047;
  overflow-y: auto;
}
.ez-drawer-backdrop.is-open .ez-drawer-panel {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.ez-drawer-header {
  padding: 32px 36px 24px;
  background: #141c24;
  color: #f7f5f0;
  position: relative;
  border-bottom: 1px solid rgba(184, 144, 71, 0.35);
}
.ez-drawer-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f7f5f0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 200ms ease;
}
.ez-drawer-close-btn:hover {
  background: #b89047;
  color: #141c24;
  border-color: #b89047;
  transform: rotate(90deg);
}
.ez-drawer-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b89047;
  margin-bottom: 8px;
}
.ez-drawer-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
}
.ez-drawer-sub {
  font-size: 0.84rem;
  color: #b0beb5;
  line-height: 1.5;
}

.ez-drawer-body {
  padding: 32px 36px;
  flex: 1;
}
.ez-form-group {
  margin-bottom: 20px;
}
.ez-form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #141c24;
  margin-bottom: 8px;
}
.ez-form-input, .ez-form-select, .ez-form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #ded6c8;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: #141c24;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.ez-form-input:focus, .ez-form-select:focus, .ez-form-textarea:focus {
  outline: none;
  border-color: #b89047;
  box-shadow: 0 0 0 3px rgba(184, 144, 71, 0.15);
}
.ez-form-textarea {
  resize: vertical;
  min-height: 90px;
}
.ez-drawer-submit-btn {
  width: 100%;
  padding: 14px;
  background: #b89047;
  color: #141c24;
  border: none;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 250ms ease;
  margin-top: 10px;
}
.ez-drawer-submit-btn:hover {
  background: #967332;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(184, 144, 71, 0.3);
}

.ez-drawer-footer {
  padding: 20px 36px;
  background: #f7f5f0;
  border-top: 1px solid #ded6c8;
  font-size: 0.75rem;
  color: #67736d;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* SUCCESS RECEIPT STATE IN DRAWER */
.ez-drawer-success {
  display: none;
  padding: 40px 36px;
  text-align: center;
}
.ez-drawer-success.is-visible {
  display: block;
}
.ez-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(59, 73, 54, 0.12);
  color: #3b4936;
  border: 1px solid rgba(59, 73, 54, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.ez-success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  color: #141c24;
  margin-bottom: 8px;
}
.ez-success-ref {
  display: inline-block;
  background: #f6eee0;
  color: #967332;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(184, 144, 71, 0.4);
  margin-bottom: 16px;
}

/* 6. INTERACTIVE SOLICITOR DEPARTMENT FILTER PILLS */
.ez-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
  justify-content: center;
}
.ez-filter-pill {
  background: #ffffff;
  border: 1px solid #ded6c8;
  color: #3b453f;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 220ms ease;
}
.ez-filter-pill:hover {
  border-color: #b89047;
  color: #b89047;
}
.ez-filter-pill.is-active {
  background: #3b4936;
  border-color: #3b4936;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 73, 54, 0.25);
}

/* 7. INTERACTIVE FEE ESTIMATOR WIDGET (FEE TRANSPARENCY) */
.ez-calculator-card {
  background: #ffffff;
  border: 1px solid #b89047;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 16px 48px rgba(20, 28, 36, 0.08);
  margin: 48px 0;
}
.ez-calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
@media (max-width: 860px) {
  .ez-calc-grid { grid-template-columns: 1fr; }
  .ez-drawer-panel { max-width: 100%; }
}
.ez-slider-wrap {
  margin: 24px 0;
}
.ez-calc-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ded6c8;
  accent-color: #b89047;
  cursor: pointer;
}
.ez-calc-total-box {
  background: #faf8f3;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ez-calc-total-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #141c24;
  line-height: 1;
  margin: 12px 0 6px;
}

/* 8. INTERACTIVE ROUTE SWITCHER TABS (CHAMBERS) */
.ez-transit-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid #ded6c8;
  margin-bottom: 24px;
}
.ez-transit-tab {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #67736d;
  cursor: pointer;
  position: relative;
  transition: color 200ms ease;
}
.ez-transit-tab:hover {
  color: #141c24;
}
.ez-transit-tab.is-active {
  color: #3b4936;
}
.ez-transit-tab.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: #b89047;
}
