/* ═══════════════════════════════════════════════════════════════
   Consultant Checklist for Elementor — Frontend Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --ccc-forest: #1a3a2e;
  --ccc-forest-mid: #2d5c47;
  --ccc-sage: #4a7c65;
  --ccc-sage-light: #c8ddd5;
  --ccc-cream: #faf7f2;
  --ccc-cream-dark: #f0ebe1;
  --ccc-gold: #b8955a;
  --ccc-gold-light: #d4af7a;
  --ccc-charcoal: #2c2c2c;
  --ccc-mid: #5a5a5a;
  --ccc-light: #9a9a9a;
  --ccc-white: #ffffff;
  --ccc-check-green: #2d7a52;
}

/* ═══════════════════════════════════════════════════════════════
   HERO WIDGET
   ═══════════════════════════════════════════════════════════════ */
.ccc-hero {
  background: var(--ccc-forest);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ccc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(74, 124, 101, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.ccc-hero-eyebrow {

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ccc-gold-light);
  margin-bottom: 1rem;
  position: relative;
}

.ccc-hero h1,
.ccc-hero .ccc-hero-title {

  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--ccc-white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  position: relative;
}

.ccc-hero .ccc-hero-title em {
  font-style: italic;
  color: var(--ccc-gold-light);
}

.ccc-hero-price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(184, 149, 90, 0.15);
  border: 1px solid rgba(184, 149, 90, 0.4);
  color: var(--ccc-gold-light);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.45rem 1rem;
  margin-top: 1.75rem;
  position: relative;
}

.ccc-hero-price-pill svg {
  flex-shrink: 0;
}

.ccc-hero-sub {

  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin: 1.25rem auto 0;
  line-height: 1.65;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESS BAR WIDGET
   ═══════════════════════════════════════════════════════════════ */
.ccc-progress-wrap {
  background: var(--ccc-forest-mid);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ccc-progress-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ccc-progress-track {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.ccc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ccc-gold), var(--ccc-gold-light));
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}

.ccc-progress-count {

  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ccc-gold-light);
  min-width: 50px;
}

.ccc-action-btns {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ccc-print-btn {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  background-color: transparent;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ccc-print-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* ── Share Buttons ── */
.ccc-share-btn {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.ccc-share-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* ── Device Visibility Utilities ── */
@media (min-width: 769px) {
  .ccc-hide-desktop {
    display: none !important;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .ccc-hide-tablet {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .ccc-hide-mobile {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CHECKLIST SECTION WIDGET
   ═══════════════════════════════════════════════════════════════ */
.ccc-checklist-section {
  margin-bottom: 0;
}

.ccc-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ccc-section-number {

  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ccc-gold);
  min-width: 30px;
}

.ccc-section-title {

  font-size: 1.65rem;
  font-weight: 500;
  color: var(--ccc-forest);
  letter-spacing: -0.01em;
}

.ccc-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ccc-gold), transparent);
}

.ccc-section-desc {
  font-size: 0.88rem;
  color: var(--ccc-mid);
  margin-bottom: 1.25rem;
  padding-left: 0;
  line-height: 1.6;
}

/* ── Checklist Items ── */
.ccc-checklist-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.6rem;
  background: var(--ccc-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.ccc-checklist-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ccc-sage-light);
  transition: background 0.2s;
}

.ccc-checklist-item:hover {
  border-color: rgba(74, 124, 101, 0.25);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transform: translateX(2px);
}

.ccc-checklist-item.ccc-checked {
  background: #f0f7f3;
  border-color: rgba(45, 122, 82, 0.2);
}

.ccc-checklist-item.ccc-checked::before {
  background: var(--ccc-check-green);
}

.ccc-item-num {

  font-size: 1rem;
  font-weight: 600;
  color: var(--ccc-sage);
  min-width: 28px;
  line-height: 1.4;
  transition: color 0.2s;
}

.ccc-checklist-item.ccc-checked .ccc-item-num {
  color: var(--ccc-check-green);
}

.ccc-item-content {
  flex: 1;
}

.ccc-item-title {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ccc-charcoal);
  line-height: 1.4;
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.ccc-checklist-item.ccc-checked .ccc-item-title {
  color: var(--ccc-mid);
  text-decoration: line-through;
  text-decoration-color: rgba(45, 122, 82, 0.4);
}

.ccc-item-detail {
  font-size: 0.82rem;
  color: var(--ccc-light);
  line-height: 1.55;
}

.ccc-checklist-item.ccc-checked .ccc-item-detail {
  color: rgba(154, 154, 154, 0.6);
}

.ccc-item-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ccc-gold);
  background: rgba(184, 149, 90, 0.1);
  padding: 0.2rem 0.6rem;
  align-self: flex-start;
  white-space: nowrap;
  margin-top: 0.1rem;
}

.ccc-checkbox-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ccc-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.2rem;
  transition: all 0.2s;
  background: white;
}

.ccc-checklist-item.ccc-checked .ccc-checkbox-circle {
  background: var(--ccc-check-green);
  border-color: var(--ccc-check-green);
}

.ccc-checkbox-circle svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.ccc-checklist-item.ccc-checked .ccc-checkbox-circle svg {
  opacity: 1;
}

/* ── Intro Card ── */
.ccc-intro-card {
  background: var(--ccc-forest);
  color: white;
  padding: 2rem 2.25rem;
  margin-bottom: 3rem;
  border-left: 4px solid var(--ccc-gold);
  position: relative;
}

.ccc-intro-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
}

.ccc-intro-card strong {
  color: var(--ccc-gold-light);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   QUESTION BANK WIDGET
   ═══════════════════════════════════════════════════════════════ */
.ccc-question-bank {
  background: var(--ccc-forest);
  padding: 2.5rem;
  margin-top: 1rem;
}

.ccc-qb-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ccc-qb-icon {
  width: 44px;
  height: 44px;
  background: rgba(184, 149, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ccc-qb-header h3 {

  font-size: 1.5rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.35rem;
}

.ccc-qb-header p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.ccc-question-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ccc-question-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.15rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.ccc-question-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(184, 149, 90, 0.4);
}

.ccc-question-card.ccc-q-checked {
  background: rgba(45, 122, 82, 0.15);
  border-color: rgba(45, 122, 82, 0.4);
}

.ccc-q-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ccc-gold-light);
  margin-bottom: 0.4rem;
  opacity: 0.7;
}

.ccc-q-text {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.ccc-question-card.ccc-q-checked .ccc-q-text {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  text-decoration-color: rgba(45, 122, 82, 0.5);
}

.ccc-q-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ccc-question-card.ccc-q-checked .ccc-q-check {
  background: var(--ccc-check-green);
  border-color: var(--ccc-check-green);
}

.ccc-q-check svg {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.15s;
}

.ccc-question-card.ccc-q-checked .ccc-q-check svg {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   TIPS STRIP WIDGET
   ═══════════════════════════════════════════════════════════════ */
.ccc-tips-strip {
  background: var(--ccc-cream-dark);
  border-top: 2px solid var(--ccc-gold);
  padding: 2rem 2.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.ccc-tip-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ccc-tip-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ccc-gold);
}

.ccc-tip-text {
  font-size: 0.84rem;
  color: var(--ccc-mid);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════
   COMPLETION BANNER WIDGET
   ═══════════════════════════════════════════════════════════════ */
.ccc-completion-banner {
  display: none;
  background: linear-gradient(135deg, var(--ccc-forest-mid), var(--ccc-forest));
  border-left: 4px solid var(--ccc-gold);
  padding: 1.75rem 2rem;
  align-items: center;
  gap: 1.25rem;
}

.ccc-completion-banner.ccc-visible {
  display: flex;
}

/* Show in Elementor editor always */
.elementor-editor-active .ccc-completion-banner {
  display: flex;
}

.ccc-completion-banner .ccc-cb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2rem;
  line-height: 1;
}

.ccc-completion-banner h4 {

  font-size: 1.35rem;
  font-weight: 500;
  color: white;
  margin-bottom: 0.25rem;
}

.ccc-completion-banner p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.ccc-completion-banner a {
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  color: var(--ccc-gold-light);
  text-decoration: none;
}

.ccc-completion-banner a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Hero ── */
  .ccc-hero {
    padding: 3rem 1.5rem 2.5rem;
  }

  .ccc-hero .ccc-hero-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .ccc-hero-sub {
    font-size: 0.92rem;
  }

  /* ── Progress Bar ── */
  .ccc-progress-wrap {
    padding: 1rem 1.25rem;
    gap: 0.75rem 1rem;
  }

  .ccc-progress-track {
    width: 180px;
  }

  /* ── Checklist Section ── */
  .ccc-section-header {
    gap: 0.65rem;
    margin-bottom: 1rem;
  }

  .ccc-section-title {
    font-size: 1.35rem;
  }

  .ccc-checklist-item {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .ccc-item-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
  }

  .ccc-intro-card {
    padding: 1.5rem 1.5rem;
  }

  /* ── Question Bank ── */
  .ccc-question-bank {
    padding: 1.75rem 1.25rem;
  }

  .ccc-question-grid {
    gap: 0.6rem;
  }

  .ccc-question-card {
    padding: 1.15rem 1.25rem;
  }

  /* ── Tips Strip ── */
  .ccc-tips-strip {
    padding: 1.5rem 1.25rem;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* ── Completion Banner ── */
  .ccc-completion-banner {
    padding: 1.25rem 1.25rem;
    gap: 1rem;
  }

  .ccc-completion-banner h4 {
    font-size: 1.15rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — PHONE (≤ 480px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Hero ── */
  .ccc-hero {
    padding: 2.25rem 1rem 2rem;
  }

  .ccc-hero .ccc-hero-title {
    font-size: 1.65rem;
  }

  .ccc-hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.15em;
  }

  .ccc-hero-sub {
    font-size: 0.85rem;
    margin-top: 1rem;
  }

  .ccc-hero-price-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    margin-top: 1.25rem;
  }

  /* ── Progress Bar ── */
  .ccc-progress-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.6rem;
  }

  .ccc-progress-label {
    text-align: center;
  }

  .ccc-progress-track {
    width: 100%;
  }

  .ccc-progress-count {
    text-align: center;
  }

  .ccc-print-btn {
    margin: 0 auto;
    justify-content: center;
    width: 100%;
  }

  .ccc-action-btns {
    width: 100%;
    justify-content: center;
  }

  .ccc-share-btn {
    flex: 1;
    justify-content: center;
  }

  /* ── Checklist Section ── */
  .ccc-section-header {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }

  .ccc-section-title {
    font-size: 1.15rem;
  }

  .ccc-section-line {
    display: none;
  }

  .ccc-section-desc {
    font-size: 0.82rem;
  }

  .ccc-checklist-item {
    padding: 0.8rem 0.75rem;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .ccc-item-num {
    font-size: 0.88rem;
    min-width: 22px;
  }

  .ccc-item-title {
    font-size: 0.88rem;
  }

  .ccc-item-detail {
    font-size: 0.78rem;
  }

  .ccc-item-badge {
    order: 3;
    margin-left: auto;
    margin-top: -0.2rem;
  }

  .ccc-checkbox-circle {
    width: 20px;
    height: 20px;
  }

  .ccc-intro-card {
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
  }

  .ccc-intro-card p {
    font-size: 0.85rem;
  }

  /* ── Question Bank ── */
  .ccc-question-bank {
    padding: 1.25rem 1rem;
  }

  .ccc-qb-header {
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .ccc-qb-icon {
    width: 36px;
    height: 36px;
  }

  .ccc-qb-header h3 {
    font-size: 1.2rem;
  }

  .ccc-qb-header p {
    font-size: 0.78rem;
  }

  .ccc-question-card {
    padding: 0.85rem 0.85rem;
  }

  .ccc-q-label {
    font-size: 0.62rem;
  }

  .ccc-q-text {
    font-size: 0.8rem;
  }

  /* ── Tips Strip ── */
  .ccc-tips-strip {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .ccc-tip-label {
    font-size: 0.65rem;
  }

  .ccc-tip-text {
    font-size: 0.8rem;
  }

  /* ── Completion Banner ── */
  .ccc-completion-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 0.5rem;
  }

  .ccc-completion-banner h4 {
    font-size: 1.05rem;
  }

  .ccc-completion-banner p {
    font-size: 0.78rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════ */
@media print {

  .ccc-progress-wrap,
  .ccc-print-btn,
  .ccc-completion-banner {
    display: none !important;
  }

  .ccc-hero {
    padding: 2rem;
    background: #1a3a2e !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .ccc-hero .ccc-hero-title,
  .ccc-hero-eyebrow,
  .ccc-hero-sub {
    color: white !important;
  }

  .ccc-checklist-item {
    break-inside: avoid;
  }

  /* ── Question Bank – print-friendly layout ── */
  .ccc-question-bank {
    background: #fff !important;
    padding: 1.5rem 0 !important;
    border: none !important;
    page-break-inside: auto;
  }

  .ccc-qb-icon {
    display: none !important;
  }

  .ccc-qb-header {
    margin-bottom: 1rem;
  }

  .ccc-qb-header h3 {
    color: #1a1a1a !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #333;
    padding-bottom: 0.4rem;
  }

  .ccc-qb-header p {
    color: #555 !important;
    font-size: 0.82rem !important;
    margin-top: 0.3rem;
  }

  .ccc-question-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .ccc-question-card {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
    padding: 0.7rem 0 0.7rem 2rem !important;
    position: relative;
    page-break-inside: avoid;
  }

  .ccc-question-card:last-child {
    border-bottom: none !important;
  }

  /* Print checkbox square */
  .ccc-question-card::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.8rem !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid #333 !important;
    border-radius: 2px !important;
    background: #fff !important;
  }

  /* Hide the interactive JS check circle */
  .ccc-q-check {
    display: none !important;
  }

  /* Remove strikethrough so all questions are legible */
  .ccc-question-card.ccc-q-checked .ccc-q-text {
    text-decoration: none !important;
    color: #222 !important;
  }

  .ccc-question-card.ccc-q-checked {
    background: #fff !important;
  }

  .ccc-q-label {
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 0.68rem !important;
    opacity: 1 !important;
  }

  .ccc-q-text {
    color: #222 !important;
    font-size: 0.82rem !important;
  }

  /* ── Tips Strip – clean for print ── */
  .ccc-tips-strip {
    background: #fff !important;
    border-top-color: #999 !important;
    padding: 1rem 0 !important;
  }

  .ccc-tip-label {
    color: #333 !important;
  }

  .ccc-tip-text {
    color: #222 !important;
  }
}