/* ══════════════════════════════════════════════════════════════
   JG PROPOSAL FORM – ACCORDION TIMELINE & CUSTOM LAYOUT
   Refined to match the Dark Navy Infographic Slide Design
   ══════════════════════════════════════════════════════════════ */

:root {
  --navy: #0e1f3d;
  --navy2: #162a52;
  --gold: #b8962e;
  --gold-lt: #d4ae55;
  --cream: #f8f6f1;
  --mid: #e8e4db;
  --text: #1a1a2e;
  --muted: #6b6b7b;
  --border: #d0ccc2;
  --white: #fff;
  --info-bg: #e6f1fb;
  --info-text: #0c447c;
  --info-border: #b5d4f4;
  --warn-bg: #faeeda;
  --warn-text: #854f0b;
  --warn-border: #fac775;
  
  /* Infographic Dark Theme Specific Colors */
  --infographic-bg: linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%);
  --infographic-border: rgba(255, 255, 255, 0.08);
  --infographic-text-light: #ffffff;
  --infographic-text-muted: rgba(255, 255, 255, 0.55);
}

/* Base Wrapper & Card Layout */
.jg-proposal-form-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}

.jg-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(14, 31, 61, 0.04);
}

.jg-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.jg-card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Client Details Grid */
.jg-field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
}

.jg-field-grid .span2 {
  grid-column: span 2;
}

.jg-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jg-field-group label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.jg-field-group input,
.jg-field-group textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--cream);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.jg-field-group input:focus,
.jg-field-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(14, 31, 61, 0.08);
  background: var(--white);
}

.jg-field-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── SERVICES CARD: DARK INFOGRAPHIC SLIDE THEME ── */
#jg-services-card {
  background: var(--infographic-bg);
  border: 1px solid var(--infographic-border);
  box-shadow: 0 10px 30px rgba(13, 27, 42, 0.25);
  color: var(--infographic-text-light);
}

#jg-services-card .jg-card-title {
  color: var(--infographic-text-light);
  border-bottom-color: var(--infographic-border);
}

/* Firm Section Header (Dark Theme) */
.jg-firm-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0 16px;
}

.jg-firm-label:first-child {
  margin-top: 0;
}

.jg-firm-label span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-lt);
  white-space: nowrap;
}

.jg-firm-label::before,
.jg-firm-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--infographic-border);
}

/* ── INFOGRAPHIC ACCORDION TIMELINE ── */
.jg-accordion-container {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
}

/* Vertical Timeline Track (matching infographic background guide line) */
.jg-accordion-container::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 18px;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 1;
}

/* Accordion Item Wrapper */
.jg-accordion {
  position: relative;
  margin-bottom: 20px;
  border-radius: 8px;
  z-index: 2;
}

.jg-accordion:last-child {
  margin-bottom: 0;
}

/* Accordion Header - Glassmorphism style */
.jg-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px 24px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.jg-acc-header:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--dept-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Thin Connector Line and Node Dot (Directly matching Infographic style) */
.jg-acc-header::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--dept-color);
  z-index: 1;
  transition: all 0.3s ease;
}

/* Node Dot right at the start of the accordion header box */
.jg-acc-header::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dept-color);
  z-index: 4;
  box-shadow: 0 0 8px var(--dept-color);
  transition: all 0.3s ease;
}

/* Circular Department Icon (Timeline Pin) */
.jg-acc-icon-container {
  position: absolute;
  left: -48px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dept-color, var(--gold));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  border: 3px solid #0d1b2a; /* matches the background theme */
  z-index: 3;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.jg-acc-dept-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--infographic-text-light);
  transition: all 0.2s ease;
}

.jg-acc-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jg-acc-count {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--infographic-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.jg-acc-count.has-items {
  background: var(--dept-color);
  color: var(--white);
  border-color: var(--dept-color);
}

.jg-acc-arrow {
  font-size: 11px;
  color: var(--infographic-text-muted);
  transition: transform 0.3s ease;
}

/* Active/Open State for Accordion */
.jg-accordion.open {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.jg-accordion.open .jg-acc-header {
  border-color: var(--dept-color, var(--navy));
  background: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.jg-accordion.open .jg-acc-header::after {
  transform: translate(-50%, -50%) scale(1.4);
}

.jg-accordion.open .jg-acc-icon-container {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 15px rgba(var(--dept-color-rgb, 184, 150, 46), 0.4);
}

.jg-accordion.open .jg-acc-arrow {
  transform: rotate(180deg);
  color: var(--infographic-text-light);
}

/* Accordion Body (Dark Theme) */
.jg-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.jg-accordion.open .jg-acc-body {
  max-height: 2000px;
}

.jg-acc-inner {
  padding: 20px 24px;
}

/* Department specific colors mapping */
.dept-bfa {
  --dept-color: #e05a67;
  --dept-color-rgb: 224, 90, 103;
}
.dept-cfo {
  --dept-color: #f5a623;
  --dept-color-rgb: 245, 166, 35;
}
.dept-ia {
  --dept-color: #13a89e;
  --dept-color-rgb: 19, 168, 158;
}
.dept-aa {
  --dept-color: #3498db;
  --dept-color-rgb: 52, 152, 219;
}
.dept-ps {
  --dept-color: #9b59b6;
  --dept-color-rgb: 155, 89, 182;
}
.dept-zt {
  --dept-color: #2ecc71;
  --dept-color-rgb: 46, 204, 113;
}
.dept-la {
  --dept-color: #e74c3c;
  --dept-color-rgb: 231, 76, 60;
}
.dept-lit {
  --dept-color: #1abc9c;
  --dept-color-rgb: 26, 188, 156;
}
.dept-hcm {
  --dept-color: #34495e;
  --dept-color-rgb: 52, 73, 94;
}

/* Service Clusters (Dark Theme) */
.jg-cluster {
  margin-bottom: 20px;
}

.jg-cluster:last-child {
  margin-bottom: 0;
}

.jg-cluster-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jg-cluster-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Checkbox Items (Dark Theme) */
.jg-cond-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  margin-bottom: 4px;
}

.jg-cond-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--infographic-text-light);
}

.jg-cond-item input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--dept-color); /* Dynamically colors checkmark to match department */
  width: 14px;
  height: 14px;
}

.jg-cond-item span {
  pointer-events: none;
}

.jg-cond-item.suggested {
  background: rgba(12, 68, 124, 0.2);
  border-left: 3px solid #3498db;
  border-radius: 0 6px 6px 0;
}

.jg-cond-item.suggested span {
  color: #5dade2;
  font-weight: 600;
}

/* Suggestion Bar (Dark Theme) */
.jg-suggest-bar {
  display: none;
  margin-top: 20px;
  border-radius: 8px;
  padding: 16px 20px;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-left: 4px solid var(--gold-lt);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.jg-suggest-bar.visible {
  display: block;
  animation: slideDown 0.3s ease;
}

.jg-suggest-bar-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.jg-suggest-bar-title {
  font-size: 13px;
  font-weight: 600;
  color: #f39c12;
  line-height: 1.5;
  flex: 1;
}

.jg-criteria-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: #f39c12;
  color: #1a252f;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.jg-suggest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jg-suggest-tag {
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.05);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.3);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}

.jg-suggest-tag:hover {
  background: rgba(243, 156, 18, 0.15);
  border-color: #f39c12;
}

.jg-suggest-tag-all {
  background: var(--navy2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.jg-suggest-tag-all:hover {
  background: #34495e;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Selected Summary Bar (Dark Theme) */
.jg-selected-summary {
  display: none;
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  animation: slideDown 0.3s ease;
}

.jg-selected-summary-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--infographic-text-muted);
  margin-bottom: 10px;
}

.jg-selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jg-selected-tag {
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--infographic-text-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 5px 12px;
}

.jg-selected-count {
  font-size: 12px;
  color: var(--infographic-text-light);
  font-weight: 600;
  margin-top: 12px;
}

/* Comment or Message Card styling */
#jg-comment-card {
  margin-top: 24px;
}

/* Submit and Mock Recaptcha Row */
.jg-bottom-row {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Align right to match the visual focus of dark cards */
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.jg-submit-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 44px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(14, 31, 61, 0.2);
}

.jg-submit-btn:hover {
  background: var(--navy2);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(14, 31, 61, 0.26);
}

.jg-submit-btn:active {
  transform: translateY(0);
}

/* Keyframes */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide original Gravity Form elements to replace with custom UI */
.gform_wrapper.gravity-theme .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gfield.field-services-accordion {
  display: none !important; /* Hide original checkboxes from GF layout */
}

/* Responsive adjustments */
@media(max-width: 768px) {
  .jg-field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .jg-field-grid .span2 {
    grid-column: span 2;
  }
  .jg-card {
    padding: 20px 24px;
  }
  .jg-accordion-container {
    padding-left: 36px;
  }
  .jg-accordion-container::before {
    left: 14px;
  }
  .jg-acc-icon-container {
    width: 32px;
    height: 32px;
    left: -36px;
    font-size: 14px;
  }
  .jg-acc-header {
    padding: 12px 16px 12px 20px;
  }
  .jg-acc-header::before {
    left: -22px;
    width: 22px;
  }
}

@media(max-width: 480px) {
  .jg-field-grid {
    grid-template-columns: 1fr;
  }
  .jg-field-grid .span2 {
    grid-column: span 1;
  }
  .jg-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }
  .jg-submit-btn {
    width: 100%;
    text-align: center;
  }
}

/* ══════════════════════════════════════════════════════════════
   JG PROPOSAL FORM – SLIDING DRAWER POPUP & MULTI-STEP WIZARD
   ══════════════════════════════════════════════════════════════ */

/* Popup Overlay */
.jg-proposal-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 20, 40, 0.65);
  backdrop-filter: blur(5px);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  justify-content: flex-end;
}

.jg-proposal-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slide-in Drawer */
.jg-proposal-popup-drawer {
  width: 600px;
  max-width: 100%;
  height: 100%;
  background: #0b152d; /* Premium Deep Navy */
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.jg-proposal-popup-overlay.active .jg-proposal-popup-drawer {
  transform: translateX(0);
}

/* Close button */
.jg-proposal-popup-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 34px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.jg-proposal-popup-close:hover {
  color: var(--gold-lt);
  transform: scale(1.15);
}

/* Drawer Content */
.jg-proposal-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 36px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.jg-proposal-popup-content::-webkit-scrollbar {
  width: 6px;
}
.jg-proposal-popup-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Disable body scroll when popup is active */
body.jg-popup-active {
  overflow: hidden !important;
  padding-right: 0 !important;
}

/* Override wrapper layouts inside popup */
.jg-proposal-popup-content .jg-proposal-form-wrapper {
  margin: 0;
  padding: 0;
  max-width: 100%;
  background: transparent;
  box-shadow: none;
  border: none;
}

/* Force dark theme for client & comment cards inside the popup */
.jg-proposal-popup-content .jg-card {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  color: #fff !important;
  padding: 24px !important;
}

.jg-proposal-popup-content .jg-card-title {
  color: #fff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.jg-proposal-popup-content .jg-field-group label {
  color: rgba(255, 255, 255, 0.55) !important;
}

.jg-proposal-popup-content .jg-field-group input,
.jg-proposal-popup-content .jg-field-group textarea {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

.jg-proposal-popup-content .jg-field-group input:focus,
.jg-proposal-popup-content .jg-field-group textarea:focus {
  border-color: var(--gold) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 0 0 4px rgba(184, 150, 46, 0.15) !important;
}

/* ── STEP PROGRESS INDICATOR ── */
.jg-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 36px;
  padding: 0 24px;
}

.jg-step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 45px;
  right: 45px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.jg-step-indicator-progress {
  position: absolute;
  top: 15px;
  left: 45px;
  right: 45px;
  height: 2px;
  background: var(--gold);
  z-index: 1;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.jg-step-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.jg-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111a36;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.jg-step-dot-wrap.active .jg-step-dot {
  border-color: var(--gold);
  background: var(--gold);
  color: #0b152d;
  box-shadow: 0 0 12px rgba(184, 150, 46, 0.4);
}

.jg-step-dot-wrap.completed .jg-step-dot {
  border-color: var(--gold);
  background: #111a36;
  color: var(--gold);
}

.jg-step-label {
  margin-top: 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.jg-step-dot-wrap.active .jg-step-label {
  color: var(--gold-lt);
}

.jg-step-dot-wrap.completed .jg-step-label {
  color: rgba(255, 255, 255, 0.75);
}

/* ── HORIZONTAL STEPS SLIDER ── */
.jg-steps-container {
  overflow: hidden;
  width: 100%;
}

.jg-steps-track {
  display: flex;
  width: 300%; /* 3 steps */
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.jg-step-panel {
  width: 33.3333%;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

/* Step Buttons Styling */
.jg-step-buttons-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  gap: 16px;
}

.jg-back-btn,
.jg-next-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 12px 32px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.jg-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.jg-back-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.jg-next-btn {
  background: var(--gold);
  border: none;
  color: #0b152d;
  box-shadow: 0 4px 14px rgba(184, 150, 46, 0.25);
  margin-left: auto;
}

.jg-next-btn:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184, 150, 46, 0.35);
}

.jg-next-btn:active {
  transform: translateY(0);
}

/* ── SHAKE & VALIDATION ERRORS ── */
.jg-field-error input,
.jg-field-error textarea {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15) !important;
}

.jg-error-msg {
  font-size: 10px;
  color: #e74c3c;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

.jg-error-shake {
  animation: jg-shake 0.4s ease-in-out;
}

@keyframes jg-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ── SUCCESS PANEL ── */
.gform_confirmation_message_1,
.jg-success-panel {
  text-align: center;
  padding: 40px 24px;
  color: #fff !important;
  animation: jg-fadeIn 0.5s ease;
}

.jg-success-icon {
  font-size: 64px;
  color: var(--gold);
  margin-bottom: 24px;
  line-height: 1;
}

.jg-success-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gold-lt);
}

.jg-success-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

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

/* Popup specific media adjustments */
@media(max-width: 768px) {
  .jg-proposal-popup-drawer {
    width: 100%;
  }
  .jg-proposal-popup-content {
    padding: 28px 20px;
  }
}

