/**
 * Care-Intel Pricing Page — Premium Enterprise Design v3
 * Stripe/Vercel-inspired: glassmorphism, gradients, micro-animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ci-primary:   #0f172a;
  --ci-accent:    #2563eb;
  --ci-accent-2:  #7c3aed;
  --ci-success:   #10b981;
  --ci-glow:      rgba(37,99,235,0.35);
  --ci-glass:     rgba(255,255,255,0.80);
  --ci-border:    rgba(226,232,240,0.9);
  --ci-radius:    22px;
  --ci-shadow:    0 8px 32px -8px rgba(15,23,42,0.12);
  --ci-shadow-lg: 0 24px 64px -16px rgba(15,23,42,0.18);
}

/* ─── Section wrapper ─────────────────────────────────────── */
.pricing-section {
  background: linear-gradient(160deg, #f0f6ff 0%, #fafafa 60%, #f5f0ff 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(37,99,235,.07), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(124,58,237,.06), transparent);
  pointer-events: none;
}

/* ─── Heading ────────────────────────────────────────────── */
.pricing-section h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  color: var(--ci-primary);
  line-height: 1.15;
}
.pricing-section .text-muted {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569 !important;
}

/* ─── Billing toggle ──────────────────────────────────────── */
.pricing-section .btn-group {
  background: white;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--ci-border);
  display: inline-flex;
  gap: 4px;
}
.pricing-section .btn-group .btn {
  border-radius: 8px !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 18px;
  border: none !important;
  transition: all 0.25s ease;
}
.pricing-section .btn-group .btn-primary {
  background: var(--ci-accent) !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.pricing-section .btn-group .btn-outline-primary {
  background: transparent !important;
  color: #64748b !important;
}
.pricing-section .btn-group .badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: #dcfce7 !important;
  color: #166534 !important;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ─── Plan Cards ──────────────────────────────────────────── */
#plans-grid .card {
  font-family: 'Inter', sans-serif;
  border-radius: var(--ci-radius);
  border: 1.5px solid var(--ci-border);
  background: var(--ci-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--ci-shadow);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1), box-shadow 0.35s ease;
  position: relative;
  overflow: visible;
}
#plans-grid .card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: var(--ci-shadow-lg);
}

/* Featured / Professional */
#plans-grid .card.border-primary {
  border: 2px solid var(--ci-accent);
  background: linear-gradient(160deg, #fff 0%, #f8f9ff 100%);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08), var(--ci-shadow-lg);
}
#plans-grid .card.border-primary:hover {
  box-shadow: 0 0 0 4px rgba(37,99,235,.12), 0 30px 70px -20px rgba(37,99,235,.25);
}

/* Most Popular badge */
.ci-popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
  white-space: nowrap;
}

/* Price display */
#plans-grid .display-6 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  letter-spacing: -0.05em;
  color: var(--ci-primary);
}
.plan-interval { font-weight: 500; color: #94a3b8; font-size: 0.95rem; }

/* Features list */
#plans-grid ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 10px;
}
#plans-grid ul i.fa-check-circle { color: var(--ci-success); font-size: 1rem; margin-top: 2px; }
#plans-grid ul i { color: #94a3b8; font-size: 1rem; margin-top: 2px; }

/* CTAs */
#plans-grid .btn {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 10px;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
#plans-grid .btn-primary {
  background: var(--ci-accent);
  border-color: var(--ci-accent);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
#plans-grid .btn-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
}
#plans-grid .btn-outline-primary {
  color: var(--ci-primary);
  border: 1.5px solid #cbd5e1;
  background: white;
}
#plans-grid .btn-outline-primary:hover {
  border-color: var(--ci-accent);
  color: var(--ci-accent);
  background: #f0f6ff;
  transform: translateY(-2px);
}

/* Bottom note */
.pricing-section .text-center.text-muted.small {
  font-size: 0.9rem;
  color: #64748b !important;
}
.pricing-section .text-center.text-muted.small a {
  color: var(--ci-accent);
  font-weight: 600;
  text-decoration: none;
}
.pricing-section .text-center.text-muted.small a:hover { text-decoration: underline; }

/* ─── Enterprise dark section ─────────────────────────────── */
.ci-pricing-enterprise {
  background: #0f172a;
  color: #f8fafc;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.ci-pricing-enterprise::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124,58,237,.18), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(37,99,235,.12), transparent);
  pointer-events: none;
}
.ci-pricing-enterprise h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: white;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}
.ci-pricing-enterprise .text-muted { color: #94a3b8 !important; font-size: 1.05rem; line-height: 1.7; }
.ci-pricing-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(124,58,237,.15);
  color: #c4b5fd;
  margin-bottom: 20px;
  border: 1px solid rgba(196,181,253,.25);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ci-feature-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}
@media(max-width:991px) { .ci-feature-grid { grid-template-columns: 1fr; } }
.ci-feature-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 32px 26px;
  transition: background .3s, border-color .3s, transform .3s;
}
.ci-feature-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-4px);
}
.ci-feature-card h4 { font-weight: 700; font-size: 1.05rem; color: white; margin-bottom: 10px; }
.ci-feature-card p  { font-size: 0.9rem; color: #64748b; margin: 0; line-height: 1.65; }

/* Compare table */
.ci-compare-wrap {
  overflow-x: auto;
  background: rgba(255,255,255,.03);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  padding: 0;
}
.ci-compare-table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 0.92rem; }
.ci-compare-table th, .ci-compare-table td {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  vertical-align: middle;
}
.ci-compare-table thead th { font-weight: 700; color: white; font-size: 0.88rem; letter-spacing: .02em; }
.ci-compare-table tbody tr:last-child td,
.ci-compare-table tbody tr:last-child th { border-bottom: none; }
.ci-compare-table tbody th { font-weight: 600; color: #cbd5e1; width: 35%; }
.ci-compare-table td { color: #64748b; }
.ci-compare-table .ci-yes  { color: #34d399; font-weight: 700; }
.ci-compare-table .ci-muted { color: #334155; }

/* ─── Demo / Request section (Light Theme) ───────────────────── */
.contact-appointment-section { background: #f8fafc; }

.contact-appointment-wrapper-5 {
  background: white;
  border-radius: 28px;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 24px 60px rgba(15,23,42,0.06);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

/* Left benefits panel (Light Theme) */
.ci-demo-left {
  background: radial-gradient(circle at top left, #f0f6ff 0%, #ffffff 100%);
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  border-right: 1px solid #f1f5f9;
}
.ci-demo-left::before {
  content: '';
  position: absolute;
  right: 0; bottom: 20%;
  width: 200px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,.06), transparent 70%);
  pointer-events: none;
}
.ci-demo-left h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  color: var(--ci-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}
.ci-demo-left > p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* Dashboard Mockup wrapper */
.demo-image-wrapper {
  position: relative;
  margin-bottom: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
}
.demo-image-wrapper img {
  border-radius: 12px;
  width: 100%;
  display: block;
}

/* Floating security badge */
.security-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 240px;
  border: 1px solid rgba(15,23,42,0.05);
}
.security-badge-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ci-accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.security-badge-header i { font-size: 1.2rem; }
.security-badge p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

/* Mini trusted by */
.trusted-by-mini p {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.trusted-by-mini .logos {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.6;
}
.trusted-by-mini .logos span {
  font-weight: 700;
  font-size: 1.1rem;
  color: #475569;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* Right form panel */
.ci-demo-right {
  background: white;
}
.contact-appointment-box {
  background: white;
  padding: 52px 48px;
  height: 100%;
}
.contact-appointment-box h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ci-primary);
  margin-bottom: 28px;
}

/* Form inputs */
.form-clt { margin-bottom: 4px; }
.form-clt span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 7px;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.form-clt input,
.form-clt select,
.form-clt textarea {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 0.92rem;
  color: var(--ci-primary);
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  font-family: 'Inter', sans-serif;
}
.form-clt input::placeholder,
.form-clt textarea::placeholder { color: #94a3b8; }
.form-clt input:focus,
.form-clt select:focus,
.form-clt textarea:focus {
  border-color: var(--ci-accent);
  background: white;
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.form-clt select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}
.form-clt textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* Interests grid checkboxes */
.ci-interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.ci-interest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.ci-interest-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}
.ci-interest-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ci-interest-item i {
  font-size: 1.4rem;
  color: #94a3b8;
  transition: color .2s;
}
.ci-interest-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}
.ci-interest-item:has(input:checked) {
  border-color: var(--ci-accent);
  background: #f0f6ff;
}
.ci-interest-item:has(input:checked) i {
  color: var(--ci-accent) !important;
}
.ci-interest-item:has(input:checked) span {
  color: var(--ci-accent);
}

/* Consent checkbox */
.col-lg-12.small.text-muted label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1.6;
}
.col-lg-12.small.text-muted label input { margin-top: 3px; flex-shrink: 0; }

/* Submit button */
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--ci-accent) 0%, #7c3aed 100%);
  color: white !important;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  box-shadow: 0 6px 24px rgba(37,99,235,.3);
  letter-spacing: .01em;
  width: 100%;
  justify-content: center;
}
.theme-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37,99,235,.4);
  filter: brightness(1.05);
}
.theme-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.theme-btn i { 
  font-size: 0.9rem;
  background: white;
  color: var(--ci-accent);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Status messages */
#demo-status.text-success { color: #059669 !important; font-weight: 600; }
#demo-status.text-danger  { color: #dc2626 !important; font-weight: 600; }

/* ─── Contact info strip ──────────────────────────────────── */
.contact-info-section { background: white; padding: 60px 0; }
.contact-info-box-items {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: #f8fafc;
  border-radius: 18px;
  border: 1.5px solid var(--ci-border);
  transition: transform .3s, box-shadow .3s;
}
.contact-info-box-items:hover { transform: translateY(-4px); box-shadow: var(--ci-shadow); }
.contact-info-box-items .icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--ci-accent), #7c3aed);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-box-items .icon i { color: white; font-size: 1.2rem; }
.contact-info-box-items .content h6 { font-weight: 700; margin-bottom: 4px; color: var(--ci-primary); font-size: .95rem; }
.contact-info-box-items .content a { color: #64748b; font-size: .9rem; text-decoration: none; transition: color .2s; }
.contact-info-box-items .content a:hover { color: var(--ci-accent); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .contact-appointment-wrapper-5 .col-lg-6:first-child { padding: 40px 32px; }
  .contact-appointment-box { padding: 40px 32px; }
}
@media (max-width: 767px) {
  .pricing-section { padding: 70px 0 50px; }
  .contact-appointment-wrapper-5 .col-lg-6:first-child { padding: 32px 24px; }
  .contact-appointment-box { padding: 32px 24px; }
  .ci-pricing-enterprise { padding: 70px 0; }
  .contact-info-box-items { padding: 20px 24px; }
}
