/* ══════════════════════════════════════════════════════════════════
   JG MEETING SCHEDULE WIDGET – Elementor Custom Widget Styles
   ══════════════════════════════════════════════════════════════════ */

/* ── Section Wrapper ──────────────────────────────────────────── */
.jgcta-section-wrap {
  --jgcta-bg-start:  #1C3F67;
  --jgcta-bg-end:    #0D1B2E;
  --jgcta-accent:    #6C63FF;
  --jgcta-accent-lt: #8B84FF;
  --jgcta-teal:      #00D4AA;
  --jgcta-btn-start: #6C63FF;
  --jgcta-btn-end:   #00D4AA;

  position: relative;
  background: linear-gradient(135deg, var(--jgcta-bg-start), var(--jgcta-bg-end));
  border-radius: 24px;
  padding: 48px;
  overflow: hidden;
}

/* ── Decorative background orbs ───────────────────────────────── */
.jgcta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.jgcta-orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(108,99,255,0.18) 0%, transparent 70%);
  top: -80px;
  right: -60px;
  animation: jgcta-float-orb 10s ease-in-out infinite alternate;
}

.jgcta-orb-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 70%);
  bottom: -60px;
  left: -40px;
  filter: blur(50px);
  animation: jgcta-float-orb 14s ease-in-out infinite alternate-reverse;
}

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

/* ── Inner layout ─────────────────────────────────────────────── */
.jgcta-section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 40px;
}

.jgcta-col-left {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.jgcta-col-right {
  flex: 0 0 38%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Badge ────────────────────────────────────────────────────── */
.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-lt);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 100px;
  letter-spacing: 0.3px;
  line-height: 1;
  margin-bottom: 18px;
  width: fit-content;
}

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

/* ── Heading ──────────────────────────────────────────────────── */
.jgcta-section-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 14px 0;
  white-space: pre-line;
}

/* ── Description ──────────────────────────────────────────────── */
.jgcta-section-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0 0 24px 0;
  max-width: 520px;
}

/* ── Stats Row ────────────────────────────────────────────────── */
.jgcta-stats-row {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}

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

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

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

.jgcta-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--jgcta-accent-lt), 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 ───────────────────────────────────────────────── */
.jgcta-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--jgcta-btn-start), var(--jgcta-btn-end));
  color: #fff !important;
  border: none;
  border-radius: 14px;
  padding: 15px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
  position: relative;
  overflow: hidden;
}

.jgcta-section-btn::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;
  border-radius: inherit;
}

.jgcta-section-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108,99,255,0.45), 0 0 60px rgba(0,212,170,0.15);
  color: #fff !important;
  text-decoration: none;
}

.jgcta-section-btn:hover::before {
  opacity: 1;
}

.jgcta-section-btn i {
  transition: transform 0.3s ease;
  font-size: 13px;
}

.jgcta-section-btn:hover i {
  transform: translateX(4px);
}

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

.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;
}

.jgcta-float-enabled .jgcta-cal-card {
  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;
}

.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.dot-available { background: var(--jgcta-teal); }
.jgcta-cal-dot.dot-today     { 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-animate-entrance {
  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-animate-entrance.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.jgcta-animate-entrance.is-visible .jgcta-badge          { animation: jgcta-fade-in 0.6s 0.1s both; }
.jgcta-animate-entrance.is-visible .jgcta-section-heading { animation: jgcta-fade-in 0.6s 0.2s both; }
.jgcta-animate-entrance.is-visible .jgcta-section-desc    { animation: jgcta-fade-in 0.6s 0.3s both; }
.jgcta-animate-entrance.is-visible .jgcta-stats-row       { animation: jgcta-fade-in 0.6s 0.4s both; }
.jgcta-animate-entrance.is-visible .jgcta-section-btn     { animation: jgcta-fade-in 0.6s 0.5s both; }
.jgcta-animate-entrance.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; }
  .jgcta-section-heading { font-size: 30px; }
}

@media (max-width: 768px) {
  .jgcta-section-wrap { padding: 32px 24px; }

  .jgcta-section-inner {
    flex-direction: column;
    text-align: center;
  }

  .jgcta-col-left  { flex: 1 1 100%; align-items: center; }
  .jgcta-col-right { flex: 1 1 100%; margin-top: 20px; }

  .jgcta-badge { margin-left: auto; margin-right: auto; }
  .jgcta-section-desc { max-width: 100%; }
  .jgcta-section-btn { margin: 0 auto; }

  .jgcta-section-heading { font-size: 26px; }

  .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-section-wrap { padding: 24px 16px; }
  .jgcta-section-heading { font-size: 22px; }

  .jgcta-stats-row { flex-wrap: wrap; }

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