/* ============================================================
   CORPSHORE ITALIA — COMPONENTS CSS
   Tabs, timeline, carousel, calculator, job board,
   sectors, quiz, estimator, lang-checker, newsletter, calendly
   ============================================================ */

/* ---- SERVICE TABS — pill style ---- */
.service-tabs-wrap { position: relative; }
.service-tabs-nav {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 6px;
  margin-bottom: 52px;
  padding: 6px;
  background: var(--bg-subtle);
  border-radius: 100px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--border);
}
.service-tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border-radius: 100px;
  border-bottom: none;
  transition: color var(--transition-fast), background var(--transition-fast),
              transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  bottom: auto;
  cursor: pointer;
}
.tab-btn:hover {
  color: var(--navy);
  background: rgba(255,255,255,0.75);
}
.tab-btn.active {
  color: var(--gold);
  background: var(--navy);
  transform: scale(1.02);
  box-shadow: 0 2px 12px rgba(10,34,99,0.22);
}
.tab-btn .tab-icon { width: 18px; height: 18px; flex-shrink: 0; }
.tab-panels { position: relative; min-height: 300px; }
.tab-panel-content { padding: 0; }
.tab-panel-content h3 {
  font-size: 26px;
  margin-bottom: 14px;
  color: var(--navy);
}
.tab-panel-content .tab-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 700px;
}
.tab-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 32px;
}
.tab-service-item {
  font-size: 14px;
  color: var(--text-primary);
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
}
.tab-service-item::before { content: '→'; color: var(--gold); flex-shrink: 0; }

/* Mobile accordion fallback */
@media (max-width: 640px) {
  .service-tabs-nav {
    flex-direction: column;
    border-radius: var(--radius-card);
    border-bottom: none;
    width: 100%;
  }
  .tab-btn {
    border-radius: var(--radius-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
    transform: none;
  }
  .tab-btn.active {
    transform: none;
    border-radius: var(--radius-card);
  }
}

/* ---- SECTORS SELECTOR ---- */
.sector-selector {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: start;
}
.sector-nav { position: sticky; top: 96px; }
.sector-nav-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sector-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-left: 3px solid transparent;
  transition: color var(--transition-fast), background var(--transition-fast),
              border-color var(--transition-fast);
}
.sector-nav-item:last-child { border-bottom: none; }
.sector-nav-item:hover { background: var(--bg-subtle); color: var(--navy); }
.sector-nav-item.active {
  border-left-color: var(--gold);
  color: var(--navy);
  background: var(--bg-subtle);
  font-weight: 600;
}
.sector-nav-item .s-icon { font-size: 18px; flex-shrink: 0; }
.sector-content-area { min-height: 400px; position: relative; }
.sector-panel { display: none; }
.sector-panel.active { display: block; animation: fadeIn 0.28s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.sector-panel h2 { margin-bottom: 8px; }
.sector-context {
  background: var(--bg-subtle);
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  margin: 20px 0 28px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.sector-services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.sector-service-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 14px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.sector-service-item:hover { border-color: var(--gold); background: rgba(184,150,62,0.04); }
.sector-service-item::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

@media (max-width: 900px) {
  .sector-selector { grid-template-columns: 1fr; }
  .sector-nav { position: relative; top: auto; }
  .sector-nav-list {
    display: flex;
    overflow-x: auto;
    border-radius: 0;
  }
  .sector-nav-item {
    border-bottom: none;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sector-nav-item.active { border-bottom-color: var(--gold); border-left-width: 0; }
  .sector-services-grid { grid-template-columns: 1fr; }
}

/* ---- CALCULATOR — navy gradient results panel ---- */
.calculator-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.calc-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.calc-form h3 { margin-bottom: 28px; }
.calc-group { margin-bottom: 26px; }
.calc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.calc-range {
  width: 100%;
  accent-color: var(--gold);
  cursor: pointer;
  height: 4px;
}
.calc-range-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.calc-range-value {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--navy);
  font-weight: 400;
}
.calc-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230A2263' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  appearance: none;
  transition: border-color var(--transition-fast);
}
.calc-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,150,62,0.15);
}
.calc-fte-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}
.calc-fte-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* Results panel — navy gradient card */
.calc-results {
  background: linear-gradient(145deg, var(--navy-deep) 0%, #0d2d7a 100%);
  border: 1px solid rgba(184,150,62,0.22);
  border-radius: var(--radius-card);
  padding: 40px;
  position: sticky;
  top: 120px;
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
/* Decorative radial accent */
.calc-results::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(184,150,62,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.calc-results h3 { color: var(--white); margin-bottom: 28px; position: relative; }
.calc-result-row { margin-bottom: 20px; position: relative; }
.calc-result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
  margin-bottom: 4px;
  display: block;
}
.calc-result-value {
  font-family: var(--font-mono);
  font-size: 38px;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}
.calc-result-value.navy {
  color: rgba(255,255,255,0.88);
  font-size: 26px;
}
/* Savings in large emerald green */
.calc-result-value.saving {
  font-size: 56px;
  color: #6ee7b7;
  font-family: var(--font-display);
  font-weight: 600;
}
.calc-divider { height: 1px; background: rgba(255,255,255,0.10); margin: 24px 0; }
.calc-note { font-size: 12px; color: rgba(255,255,255,0.42); margin-top: 20px; line-height: 1.65; }
.calc-pct-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.72); margin-bottom: 6px; }

@media (max-width: 900px) {
  .calculator-wrap { grid-template-columns: 1fr; }
  .calc-results { position: relative; top: auto; }
}

/* ---- TESTIMONIAL CAROUSEL — card with large quote mark ---- */
.testimonial-carousel { position: relative; min-height: 200px; }
.testimonial-slides { position: relative; min-height: 180px; overflow: hidden; }
.testimonial-slide {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.testimonial-slide.active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
}

/* Card variant with large gold quote mark */
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-card);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
/* Large decorative quotation mark */
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 160px;
  color: var(--gold);
  opacity: 0.12;
  position: absolute;
  top: -16px;
  left: 20px;
  line-height: 1;
  pointer-events: none;
  font-weight: 400;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.42;
  padding-left: 36px;
  margin-bottom: 28px;
  position: relative;
}
.testimonial-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 36px;
}
/* Photo support */
.testimonial-author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.testimonial-author-photo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(184,150,62,0.18);
  border: 2px solid rgba(184,150,62,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.testimonial-author-name { font-size: 14px; font-weight: 700; color: var(--white); }
.testimonial-author-role { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 1px; }

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-left: 36px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.carousel-btn:hover { border-color: var(--gold); background: rgba(184,150,62,0.18); }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.carousel-dot.active { background: var(--gold); transform: scale(1.4); }

/* ---- ROI TIMELINE ---- */
.roi-timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 16px;
}
.roi-track {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--warm-mid);
  z-index: 0;
}
.roi-track-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), rgba(184,150,62,0.5));
  width: 0;
  transition: width 1.6s cubic-bezier(0.16,1,0.3,1);
  border-radius: 1px;
}
.roi-node-wrap {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.roi-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--warm-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), background var(--transition-fast),
              color var(--transition-fast), box-shadow var(--transition-fast);
  margin-bottom: 12px;
}
.roi-node-wrap.active .roi-node,
.roi-node-wrap:hover .roi-node {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}
.roi-node-label {
  font-size: 12px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.35;
  padding: 0 4px;
}
.roi-node-detail-panel {
  position: absolute;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), padding 0.3s ease;
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.roi-node-wrap.active .roi-node-detail-panel {
  max-height: 200px;
  padding: 16px;
}
.roi-node-detail-panel p { font-size: 13px; color: var(--text-secondary); line-height: 1.65; margin: 0; }

/* ---- COMPANY TIMELINE ---- */
.company-timeline { position: relative; padding-left: 48px; }
.company-timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.ct-item {
  position: relative;
  margin-bottom: 48px;
}
.ct-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--warm-mid);
  transition: border-color 0.3s, background 0.3s;
}
.ct-item.active .ct-dot, .ct-item:hover .ct-dot {
  border-color: var(--gold);
  background: var(--gold);
}
.ct-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.ct-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.ct-body { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

/* ---- JOB BOARD — cleaner rows ---- */
.job-board { }
.no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-tertiary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  display: none;
}
.jb-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
}
.page-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast);
}
.page-btn:hover { border-color: var(--navy); color: var(--navy); }
.page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.page-btn.prev-next { width: auto; padding: 0 14px; }

/* Urgent jobs section */
.urgent-section {
  border: 2px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 28px;
  margin-bottom: 40px;
  background: rgba(184,150,62,0.03);
}
.urgent-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.urgent-section-header h3 { font-size: 16px; color: var(--gold); }

/* ---- CONTACT FORM LAYOUT ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info-block { position: sticky; top: 120px; }
.contact-info-item { margin-bottom: 30px; }
.contact-info-item .info-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 5px;
}
.contact-info-item .info-value { font-size: 16px; color: var(--text-primary); font-weight: 500; }
.contact-info-item .info-value a { transition: color var(--transition-fast); }
.contact-info-item .info-value a:hover { color: var(--gold); }
.contact-pa-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-top: 32px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-info-block { position: relative; top: auto; }
}

/* ---- VALUES GRID ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-mid), transform var(--transition-mid);
}
.value-card:hover {
  border-color: rgba(184,150,62,0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.value-icon { font-size: 28px; margin-bottom: 16px; }
.value-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.value-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.75; }

@media (max-width: 900px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .values-grid { grid-template-columns: 1fr; } }

/* ---- BLOG FILTERS ---- */
.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast);
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---- SECTOR GRID (masonry-style) — 2-col desktop, navy hover ---- */
.sectors-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.sectors-masonry .sector-card:nth-child(1) { grid-column: span 2; }
.sectors-masonry .sector-card:nth-child(5) { grid-column: span 2; }
.sectors-masonry .sector-card:nth-child(9) { grid-column: span 2; }

/* 2-col default grid for sector pages */
.sectors-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .sectors-masonry { grid-template-columns: repeat(3, 1fr); }
  .sectors-masonry .sector-card:nth-child(1) { grid-column: span 2; }
  .sectors-masonry .sector-card:nth-child(5) { grid-column: span 1; }
  .sectors-masonry .sector-card:nth-child(9) { grid-column: span 1; }
}
@media (max-width: 900px) {
  .sectors-masonry { grid-template-columns: repeat(2, 1fr); }
  .sectors-masonry .sector-card { grid-column: span 1 !important; }
  .sectors-grid-2col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sectors-masonry { grid-template-columns: 1fr; }
}

/* ---- LEGAL PAGES — TOC + zebra tables ---- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 27px;
  margin-top: 56px;
  margin-bottom: 14px;
}
.legal-content h3 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 8px;
}
.legal-content ul { margin: 12px 0 12px 24px; list-style: disc; }
.legal-content ul li { margin-bottom: 7px; font-size: 15px; line-height: 1.8; }

/* Table of contents */
.legal-toc {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 52px;
}
.legal-toc h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.legal-toc ol {
  list-style: decimal;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.legal-toc ol li a {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
  transition: color var(--transition-fast);
}
.legal-toc ol li a:hover { color: var(--gold); }

/* Tables — navy header + zebra */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.legal-content th {
  background: var(--navy);
  color: var(--white);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
}
.legal-content td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-secondary);
}
.legal-content tr:nth-child(even) td { background: rgba(10,34,99,0.025); }
.legal-content tr:last-child td { border-bottom: none; }

/* ---- COOKIE MODAL ---- */
#cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cookie-modal.show { display: flex; }
.cookie-modal-inner {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.cookie-modal-inner h3 { margin-bottom: 16px; }
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.cookie-toggle-row:last-of-type { border-bottom: none; }
.cookie-toggle-info h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cookie-toggle-info p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--warm-mid);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.toggle-switch input:checked + .toggle-slider { background: var(--navy); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.45; cursor: not-allowed; }
.cookie-modal-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---- QUIZ WIDGET — 3-step quiz ---- */
.quiz-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

/* Progress dots */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  justify-content: center;
}
.quiz-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm-mid);
  transition: background var(--transition-fast), transform var(--transition-fast);
  cursor: default;
}
.quiz-progress-dot.active {
  background: var(--gold);
  transform: scale(1.35);
}
.quiz-progress-dot.done {
  background: var(--navy);
}
/* Connecting line between dots */
.quiz-progress-line {
  flex: 1;
  height: 1px;
  background: var(--warm-mid);
  max-width: 32px;
}

/* Step */
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fadeInUp 0.3s cubic-bezier(0.16,1,0.3,1) both; }

.quiz-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.quiz-question {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 28px;
  line-height: 1.28;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--white);
  text-align: left;
  width: 100%;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.quiz-option:hover {
  border-color: var(--gold);
  background: rgba(184,150,62,0.04);
}
.quiz-option.selected {
  border-color: var(--navy);
  background: rgba(10,34,99,0.04);
  color: var(--navy);
  font-weight: 600;
}
.quiz-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
  font-family: var(--font-mono);
}
.quiz-option.selected .quiz-option-letter {
  background: var(--navy);
  color: var(--white);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.quiz-step-count {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Quiz result (final step) */
.quiz-result {
  text-align: center;
  padding: 24px 0 8px;
}
.quiz-result-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.quiz-result-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 12px;
}
.quiz-result-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }

@media (max-width: 640px) {
  .quiz-widget { padding: 28px 20px; }
}

/* ---- HUB ESTIMATOR — savings estimator widget ---- */
.hub-estimator {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-md);
}
.hub-estimator-controls {
  padding: 40px;
}
.hub-estimator-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.hub-estimator-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}
.estimator-field { margin-bottom: 20px; }
.estimator-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}
.estimator-select,
.estimator-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}
.estimator-select:focus,
.estimator-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,150,62,0.15);
}
.estimator-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230A2263' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Result panel — navy gradient */
.hub-estimator-result {
  background: linear-gradient(145deg, var(--navy-deep) 0%, #0d2d7a 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hub-estimator-result::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(184,150,62,0.20), transparent 70%);
  pointer-events: none;
}
.estimator-result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
  display: block;
  position: relative;
}
.estimator-result-value {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  position: relative;
}
.estimator-result-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.60);
  line-height: 1.6;
  position: relative;
}
.estimator-footnote {
  font-size: 11px;
  color: rgba(255,255,255,0.32);
  margin-top: 20px;
  position: relative;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hub-estimator { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hub-estimator-controls,
  .hub-estimator-result { padding: 28px 20px; }
}

/* ---- LANG CHECKER — language coverage tool ---- */
.lang-checker {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.lang-checker-header {
  background: var(--navy);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lang-checker-header h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lang-checker-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}
.lang-checker-body { padding: 24px; }

.lang-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.lang-coverage-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.lang-coverage-item.covered {
  border-color: rgba(0,146,70,0.28);
  background: rgba(0,146,70,0.05);
  color: #005c2b;
}
.lang-coverage-item.partial {
  border-color: rgba(184,150,62,0.38);
  background: rgba(184,150,62,0.05);
  color: #7a5e1a;
}
.lang-coverage-item.unavailable { opacity: 0.55; }
.lang-coverage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lang-coverage-item.covered .lang-coverage-dot  { background: var(--green-it); }
.lang-coverage-item.partial .lang-coverage-dot   { background: var(--gold); }
.lang-coverage-item.unavailable .lang-coverage-dot { background: var(--warm-mid); }

/* Search bar */
.lang-checker-search {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.lang-checker-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast);
}
.lang-checker-search input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,150,62,0.12);
}

/* ---- NEWSLETTER FLOAT — bottom-left dismissible ---- */
.newsletter-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 880;
  width: 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1),
              opacity 0.35s ease;
  pointer-events: none;
}
.newsletter-float.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.newsletter-float.dismissing {
  transform: translateY(calc(100% + 40px));
  opacity: 0;
}
.newsletter-float-header {
  background: var(--navy);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.newsletter-float-header h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.newsletter-float-close {
  color: rgba(255,255,255,0.55);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
  transition: color var(--transition-fast), background var(--transition-fast);
  font-size: 18px;
  line-height: 1;
}
.newsletter-float-close:hover {
  color: var(--white);
  background: rgba(255,255,255,0.10);
}
.newsletter-float-body { padding: 20px; }
.newsletter-float-body p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.newsletter-float-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-float-form input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.newsletter-float-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,150,62,0.15);
}
.newsletter-float-gdpr {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .newsletter-float {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 16px;
  }
}

/* ---- CALENDLY PRE-FORM — shown before calendar opens ---- */
.calendly-preform {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 560px;
}
.calendly-preform-top {
  background: var(--bg-subtle);
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}
.calendly-preform-top h3 {
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 8px;
}
.calendly-preform-top p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}
/* Meeting meta info (duration, format, etc.) */
.calendly-preform-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.calendly-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.calendly-meta-item svg,
.calendly-meta-icon {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}
/* Form fields inside preform */
.calendly-preform-body {
  padding: 28px 32px;
}
.calendly-preform-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.calendly-preform-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.calendly-preform-gdpr {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.55;
  flex: 1;
  min-width: 200px;
}

/* Confirmation / success state */
.calendly-preform-success {
  padding: 40px 32px;
  text-align: center;
  display: none;
}
.calendly-preform-success.show { display: block; animation: fadeInUp 0.4s cubic-bezier(0.16,1,0.3,1) both; }
.calendly-preform-success .success-icon { font-size: 40px; margin-bottom: 16px; display: block; }
.calendly-preform-success h4 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.calendly-preform-success p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

@media (max-width: 640px) {
  .calendly-preform-top,
  .calendly-preform-body { padding: 20px; }
  .calendly-preform-meta { padding: 14px 20px; }
}

/* ---- INTERACTIONS.JS INJECTED CLASSES ---- */
/* Hub estimator (JS replaces container innerHTML) */
.est-inner { padding: 32px; }
.est-hub-selector { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.est-hub-btn {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.est-hub-btn:hover { border-color: var(--navy); color: var(--navy); }
.est-hub-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.est-slider-wrap { margin-bottom: 24px; }
.est-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.est-results { background: linear-gradient(145deg, var(--navy-deep, #061640) 0%, #0d2d7a 100%); border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.est-result-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.est-result-row:last-child { border-bottom: none; }
.est-cta { width: 100%; text-align: center; }

/* Lang checker (JS replaces container innerHTML) */
.lang-checker-inner { padding: 16px 0; }
.lang-result { margin-top: 16px; min-height: 40px; }
.lang-hub-badge { display: inline-block; padding: 3px 10px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--navy); margin: 4px 4px 0 0; }
.lang-covered { color: var(--success); font-weight: 600; margin: 0 0 6px; }
.lang-partial { color: #7a5e1a; font-weight: 600; margin: 0 0 6px; }
.lang-unavailable { color: var(--text-tertiary); margin: 0; }

/* Quiz (JS replaces container innerHTML) */
.quiz-inner { max-width: 560px; margin: 0 auto; padding: 8px 0; }

/* ---- FTE COST COMPARISON ---- */
.fte-comparison {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
}
.fte-level-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fte-lvl-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.fte-lvl-btn:hover { border-color: var(--navy); color: var(--navy); }
.fte-lvl-btn.active, .fte-lvl-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.fte-team-row {
  margin-bottom: 28px;
}
.fte-team-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fte-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.fte-bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 110px;
  align-items: center;
  gap: 16px;
}
.fte-bar-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.fte-bar-track {
  height: 10px;
  background: var(--bg-subtle);
  border-radius: 100px;
  overflow: hidden;
}
.fte-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.16,1,0.3,1);
}
.fte-bar--italian { background: #9ca3af; }
.fte-bar--corpshore { background: linear-gradient(90deg, var(--navy), var(--gold)); }
.fte-bar-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}
.fte-saving-callout {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2d7a 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.fte-saving-pct {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.fte-saving-text {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  max-width: 260px;
  line-height: 1.5;
}
.fte-disclaimer {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .fte-comparison { padding: 24px 20px; }
  .fte-bar-row { grid-template-columns: 1fr; gap: 6px; }
  .fte-bar-value { text-align: left; }
}

/* ---- BACK TO TOP BUTTON ---- */
.back-to-top {
  position: fixed;
  bottom: 88px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background var(--transition-fast);
  z-index: 990;
  color: var(--navy);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ---- HUB ESTIMATOR BUTTONS (tab-style) ---- */
.hub-est-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.hub-est-tab {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.hub-est-tab.active, .hub-est-tab[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
