/* ══════════════════════════════════════════════════════════════════
   JG SCHEDULE A MEETING – PREMIUM GLASSMORPHIC CTA SECTION
   + BOOKING MODAL STYLES
   ══════════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ──────────────────────────────────────────────── */
:root {
  --jgcta-accent:        #6C63FF;
  --jgcta-accent-light:  #8B84FF;
  --jgcta-accent-glow:   rgba(108, 99, 255, 0.4);
  --jgcta-teal:          #00D4AA;
  --jgcta-teal-glow:     rgba(0, 212, 170, 0.25);
  --jgcta-dark:          #0D0E1C;
  --jgcta-dark2:         #13142A;
  --jgcta-dark3:         #1A1B35;
  --jgcta-border:        rgba(255, 255, 255, 0.08);
  --jgcta-text:          #F0F1FF;
  --jgcta-muted:         rgba(240, 241, 255, 0.55);
  --jgcta-radius:        24px;
  --jgcta-transition:    all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════════
   SECTION: PREMIUM SCHEDULE A MEETING CTA
   ══════════════════════════════════════════════════════════════════ */

/* ── Outer section – animated bg orb ──────────────────────────── */
.jgcta-schedule-section {
  position: relative;
  overflow: hidden !important;
}

.jgcta-schedule-section::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 70%);
  top: -80px;
  right: -60px;
  filter: blur(60px);
  pointer-events: none;
  animation: jgcta-float-orb 10s ease-in-out infinite alternate;
  z-index: 0;
}

.jgcta-schedule-section::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 70%);
  bottom: -60px;
  left: -40px;
  filter: blur(50px);
  pointer-events: none;
  animation: jgcta-float-orb 14s ease-in-out infinite alternate-reverse;
  z-index: 0;
}

@keyframes jgcta-float-orb {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.15); }
}

/* Ensure children are above the orbs */
.jgcta-schedule-section > .e-con-inner,
.jgcta-schedule-section > .elementor-element {
  position: relative;
  z-index: 1;
}

/* ── Left column ──────────────────────────────────────────────── */
.jgcta-left-col {
  position: relative;
  z-index: 1;
}

/* ── Badge pill ───────────────────────────────────────────────── */
.jgcta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--jgcta-accent-light);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  line-height: 1;
}

.jgcta-badge-icon {
  font-size: 14px;
  line-height: 1;
}

/* ── Heading ──────────────────────────────────────────────────── */
.jgcta-schedule-section .jgcta-heading .elementor-heading-title {
  white-space: pre-line;
}

/* ── Stats row ────────────────────────────────────────────────── */
.jgcta-stats-row {
  gap: 0 !important;
}

.jgcta-stat-item {
  flex: 1;
}

.jgcta-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.jgcta-stat-item:last-child .jgcta-stat {
  border-right: none;
  padding-right: 0;
  padding-left: 20px;
}

.jgcta-stat-item:nth-child(2) .jgcta-stat {
  padding-left: 20px;
}

.jgcta-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--jgcta-accent-light), var(--jgcta-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.jgcta-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ── CTA Button – gradient fill ───────────────────────────────── */
.jgcta-cta-button .elementor-button {
  background: linear-gradient(135deg, #6C63FF, #00D4AA) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 15px 32px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  color: #fff !important;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1) !important;
  box-shadow: 0 4px 20px rgba(108,99,255,0.3), 0 0 0 0 rgba(108,99,255,0) !important;
  position: relative;
  overflow: hidden;
}

.jgcta-cta-button .elementor-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.jgcta-cta-button .elementor-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(108,99,255,0.45), 0 0 60px rgba(0,212,170,0.15) !important;
}

.jgcta-cta-button .elementor-button:hover::before {
  opacity: 1;
}

.jgcta-cta-button .elementor-button .elementor-button-icon {
  transition: transform 0.3s ease !important;
}

.jgcta-cta-button .elementor-button:hover .elementor-button-icon {
  transform: translateX(4px) !important;
}

/* ── Right column – calendar visual ───────────────────────────── */
.jgcta-right-col {
  position: relative;
  z-index: 1;
}

.jgcta-calendar-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

/* Glassmorphic calendar card */
.jgcta-cal-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 300px;
  box-shadow:
    0 16px 48px rgba(0,0,0,0.3),
    0 0 0 1px rgba(108,99,255,0.08) inset;
  position: relative;
  z-index: 2;
  animation: jgcta-card-float 6s ease-in-out infinite;
}

@keyframes jgcta-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.jgcta-cal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.jgcta-cal-header span {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #F0F1FF;
}

.jgcta-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.jgcta-cal-day {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  padding: 5px 2px;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.jgcta-cal-day.head {
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jgcta-cal-day.available {
  color: var(--jgcta-teal);
  background: rgba(0,212,170,0.08);
  font-weight: 600;
  cursor: pointer;
}

.jgcta-cal-day.available:hover {
  background: rgba(0,212,170,0.2);
  transform: scale(1.1);
}

.jgcta-cal-day.active {
  background: var(--jgcta-accent) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(108,99,255,0.4);
}

.jgcta-cal-day.today {
  color: #FFD166;
  background: rgba(255,209,102,0.1);
  font-weight: 700;
  position: relative;
}

.jgcta-cal-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
}

.jgcta-cal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.jgcta-cal-dot.available {
  background: var(--jgcta-teal);
}

.jgcta-cal-dot.today-dot {
  background: #FFD166;
}

/* Floating shapes */
.jgcta-floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.jgcta-floating-shape.shape-1 {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(108,99,255,0.05));
  border: 1px solid rgba(108,99,255,0.15);
  top: -10px;
  right: 20px;
  animation: jgcta-shape-float 8s ease-in-out infinite;
}

.jgcta-floating-shape.shape-2 {
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, rgba(0,212,170,0.2), rgba(0,212,170,0.05));
  border: 1px solid rgba(0,212,170,0.15);
  bottom: 10px;
  left: 10px;
  animation: jgcta-shape-float 10s ease-in-out infinite reverse;
}

.jgcta-floating-shape.shape-3 {
  width: 20px;
  height: 20px;
  background: rgba(255,209,102,0.12);
  border: 1px solid rgba(255,209,102,0.2);
  top: 50%;
  right: -5px;
  animation: jgcta-shape-float 7s ease-in-out infinite 2s;
}

@keyframes jgcta-shape-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(8px, -12px) rotate(45deg); }
  50% { transform: translate(-4px, -18px) rotate(90deg); }
  75% { transform: translate(12px, -6px) rotate(135deg); }
}

/* ── Entrance animation ───────────────────────────────────────── */
.jgcta-schedule-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.jgcta-schedule-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.jgcta-schedule-section.is-visible .jgcta-badge-widget {
  animation: jgcta-fade-in 0.6s 0.1s both;
}
.jgcta-schedule-section.is-visible .jgcta-heading {
  animation: jgcta-fade-in 0.6s 0.2s both;
}
.jgcta-schedule-section.is-visible .jgcta-description {
  animation: jgcta-fade-in 0.6s 0.3s both;
}
.jgcta-schedule-section.is-visible .jgcta-stats-row {
  animation: jgcta-fade-in 0.6s 0.4s both;
}
.jgcta-schedule-section.is-visible .jgcta-cta-button {
  animation: jgcta-fade-in 0.6s 0.5s both;
}
.jgcta-schedule-section.is-visible .jgcta-cal-card {
  animation: jgcta-fade-in 0.7s 0.3s both;
}

@keyframes jgcta-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .jgcta-stat-num {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .jgcta-schedule-section {
    text-align: center;
  }

  .jgcta-badge {
    margin: 0 auto;
  }

  .jgcta-stat {
    padding: 0 12px !important;
    align-items: center;
    text-align: center;
  }

  .jgcta-stat-num {
    font-size: 24px;
  }

  .jgcta-stat-label {
    font-size: 10px;
  }

  .jgcta-cal-card {
    max-width: 260px;
  }

  .jgcta-floating-shape {
    display: none;
  }
}

@media (max-width: 480px) {
  .jgcta-stats-row {
    flex-wrap: wrap !important;
  }
  
  .jgcta-stat-item {
    flex: 0 0 33.33% !important;
    max-width: 33.33% !important;
  }

  .jgcta-stat {
    border-right: none !important;
    padding: 0 8px !important;
  }
}


/* ══════════════════════════════════════════════════════════════════
   BOOKING MODAL OVERLAY (existing styles preserved)
   ══════════════════════════════════════════════════════════════════ */

/* Strip the dark card style from form inside modal */
#gform_5, #gform_8 {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  animation: none !important;
}

.jgbooking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.jgbooking-modal-overlay.is-open {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  pointer-events: all;
}

/* Modal panel */
.jgbooking-modal-panel {
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  background: #13142A;
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: none;
  box-shadow:
    0 -8px 40px rgba(108, 99, 255, 0.12),
    0 -2px 0 rgba(108, 99, 255, 0.2) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.jgbooking-modal-overlay.is-open .jgbooking-modal-panel {
  transform: translateY(0);
}

/* Drag handle */
.jgbooking-modal-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  margin: 14px auto 0;
  flex-shrink: 0;
  cursor: grab;
}

/* Modal header bar */
.jgbooking-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.jgbooking-modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jgbooking-modal-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(0,212,170,0.15));
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jgbooking-modal-icon svg {
  width: 18px;
  height: 18px;
  color: #8B84FF;
}

.jgbooking-modal-title-wrap h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #F0F1FF;
  margin: 0 0 2px;
  line-height: 1.2;
}

.jgbooking-modal-title-wrap p {
  font-size: 12px;
  color: rgba(240, 241, 255, 0.45);
  margin: 0;
}

/* Close button */
.jgbooking-modal-close {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgba(240, 241, 255, 0.6);
  padding: 0;
  line-height: 1;
  font-size: 18px;
  flex-shrink: 0;
}

.jgbooking-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #F0F1FF;
  transform: rotate(90deg);
}

/* Scrollable body */
.jgbooking-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 99, 255, 0.4) transparent;
}

.jgbooking-modal-body::-webkit-scrollbar {
  width: 5px;
}
.jgbooking-modal-body::-webkit-scrollbar-track { background: transparent; }
.jgbooking-modal-body::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.4);
  border-radius: 10px;
}

/* Override the body-level styles inside the modal */
.jgbooking-modal-body body,
.jgbooking-modal-body #gform_5, .jgbooking-modal-body #gform_8,
.jgbooking-modal-body .gform-body {
  background: transparent !important;
}

/* Form container inside modal */
.jgbooking-form-wrap {
  padding: 8px 28px 32px;
  min-height: 400px;
}

/* Override booking form card styling inside the modal */
.jgbooking-modal-body #gform_5, .jgbooking-modal-body #gform_8, #gform_8 {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 28px 0 0 !important;
  animation: none !important;
}

/* Accent top bar on modal */
.jgbooking-modal-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6C63FF, #00D4AA, #6C63FF);
  background-size: 200%;
  animation: jgcta-shimmer-bar 3s linear infinite;
  z-index: 10;
}

@keyframes jgcta-shimmer-bar {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Body lock when modal open */
body.jgbooking-modal-open {
  overflow: hidden !important;
}

/* ── Modal responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .jgbooking-modal-panel { max-height: 96vh; border-radius: 20px 20px 0 0; }
  .jgbooking-form-wrap { padding: 8px 16px 24px; }
  .jgbooking-modal-header { padding: 16px 18px 14px; }
}


/* ── RTL OVERRIDES FOR MODAL DRAWER ── */
html[lang="ar"] .jgbooking-modal-header {
  direction: rtl !important;
}
html[lang="ar"] .jgbooking-modal-header-left {
  direction: rtl !important;
}
html[lang="ar"] .jgbooking-modal-close {
  margin-left: 0 !important;
  margin-right: auto !important;
}
html[lang="ar"] .jgbooking-modal-title-wrap h3 {
  text-align: right !important;
}
html[lang="ar"] .jgbooking-modal-title-wrap p {
  text-align: right !important;
}
html[lang="ar"] .jgbooking-form-wrap {
  direction: rtl !important;
}
