/* ============================================================
   Country Vertical Tabs Pro — cvtp-style.css  v4.2.0
   GCD Layout: each country = expanding horizontal column.
   Active column expands to show content inside it.
   Flags sit at top of each column. Labels rotate 90deg.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500;600&display=swap');

.cvtp-wrapper,
.cvtp-wrapper *,
.cvtp-wrapper *::before,
.cvtp-wrapper *::after { box-sizing: border-box; }

.cvtp-wrapper {
  --navy:    #0d1b3e;
  --navy-dk: #091429;
  --navy-mid:#132347;
  --red:     #d63031;
  --white:   #ffffff;
  --dim:     rgba(255,255,255,.62);
  --faint:   rgba(255,255,255,.09);
  font-family: 'Barlow', sans-serif;
  width: 100%;
  background: var(--navy);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.65);
}

/* ── Main row ── */
.cvtp-main-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  min-height: 520px;
  background: var(--navy-dk);
}

/* ── country-plus-label-container: flag + rotated title stacked ── */
.country-plus-label-container {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 14px 0 0;
}

/* ── Tab column ── */
.cvtp-tab-col {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 52px;
  min-width: 52px;
  flex-shrink: 0;
  background: var(--navy-dk);
  cursor: pointer;
  overflow: hidden;
  border: none;
  outline: none;
  transition: background .28s,
              width .38s cubic-bezier(.4,0,.2,1),
              min-width .38s cubic-bezier(.4,0,.2,1),
              box-shadow .28s;
  border-right: 1px solid var(--faint);
}
.cvtp-tab-col:last-child { border-right: none; }

/* Left accent bar */
.cvtp-tab-col::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  transition: background .28s;
  z-index: 2;
}

/* Hover state */
.cvtp-tab-col:hover:not(.cvtp-active) { background: var(--navy-mid); }
.cvtp-tab-col:hover:not(.cvtp-active)::before { background: rgba(255,255,255,.30); }
.cvtp-tab-col:hover:not(.cvtp-active) .cvtp-col-title { color: var(--white); }
.cvtp-tab-col:hover:not(.cvtp-active) .cvtp-col-flag {
  border-color: rgba(255,255,255,.55);
  transform: scale(1.1);
}

/* ACTIVE state */
.cvtp-tab-col.cvtp-active {
  width: 680px;
  min-width: 320px;
  background: var(--navy);
  cursor: default;
  box-shadow: inset 3px 0 0 var(--red);
  flex-shrink: 1;
  flex-grow: 1;
}
.cvtp-tab-col.cvtp-active::before { background: var(--red); width: 4px; }
.cvtp-tab-col.cvtp-active .country-plus-label-container { background: var(--red); }
.cvtp-tab-col:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

/* ── Flag circle at top of each col ── */
.cvtp-col-flag {
  width: 36px; height: 36px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,.20);
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
  transition: border-color .25s, transform .25s, box-shadow .25s;
  margin-bottom: 12px;
}
.cvtp-col-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cvtp-tab-col.cvtp-active .cvtp-col-flag {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214,48,49,.35);
  transform: scale(1.08);
}

/* ── Rotated country label ── */
.cvtp-col-title {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--dim); white-space: nowrap;
  user-select: none; pointer-events: none;
  transition: color .22s;
  margin-top: 4px;
}
.cvtp-tab-col.cvtp-active .cvtp-col-title { color: var(--white); font-weight: 700; }

/* ── Ripple effect ── */
.cvtp-ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.20);
  transform: scale(0); pointer-events: none;
  animation: cvtp-rpl .55s ease-out forwards;
}
@keyframes cvtp-rpl { to { transform: scale(4); opacity: 0; } }

/* ── Panel wrap (content inside active col) ── */
.cvtp-panel-wrap {
  display: none;
  flex: 1 1 auto;
  width: 100%;
  padding: 36px 44px 36px 36px;
  position: relative;
  overflow: hidden;
}
/* Subtle scanline overlay */
.cvtp-panel-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent, transparent 3px,
    rgba(255,255,255,.010) 3px, rgba(255,255,255,.010) 4px
  );
  pointer-events: none;
}
.cvtp-tab-col.cvtp-active .cvtp-panel-wrap { display: flex; flex-direction: column; }

.cvtp-panel-inner { width: 100%; color: var(--white); position: relative; z-index: 1; }

/* ── Logo (top-right of panel) ── */
.cvtp-panel-logo {
  position: absolute; top: 0; right: 0;
  width: 110px; height: 110px;
  pointer-events: none;
}
.cvtp-panel-logo img  { width: 100%; height: 100%; object-fit: contain; opacity: .92; }
.cvtp-panel-logo svg  { width: 100%; height: 100%; opacity: .92; }

/* ── Country label (red badge above heading) ── */
.cvtp-label {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.cvtp-label::before {
  content: ''; display: inline-block;
  width: 16px; height: 2px; background: var(--red);
}

/* ── Main heading ── */
.cvtp-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; color: var(--white);
  line-height: 1.1; margin: 0 0 4px;
}
/* Animated underline */
.cvtp-heading-line {
  display: block; height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 80%);
  width: 0; margin-top: 5px;
  transition: width .55s cubic-bezier(.4,0,.2,1) .2s;
}
.cvtp-tab-col.cvtp-active .cvtp-heading-line { width: 100%; }

/* ── Subtitle ── */
.cvtp-subtitle {
  font-size: .84rem; font-weight: 500;
  color: var(--dim); margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: .07em;
}

/* ── Info grid ── */
.cvtp-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 24px;
  margin-bottom: 22px;
}
.cvtp-info-item {
  display: flex; align-items: flex-start;
  gap: 9px; color: var(--dim);
  font-size: .84rem; line-height: 1.5;
}
.cvtp-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.cvtp-dot::after {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: rgba(255,255,255,.35);
}
.cvtp-divider {
  height: 1px; background: var(--faint);
  margin: 14px 0; grid-column: 1 / -1;
}

/* ── CTA Button ── */
.cvtp-btn {
  display: inline-block; padding: 9px 26px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); background: transparent;
  border: 1.5px solid var(--red); border-radius: 3px;
  cursor: pointer; text-decoration: none;
  transition: background .22s, color .22s, box-shadow .22s, transform .18s;
  margin-top: 4px;
}
.cvtp-btn:hover {
  background: var(--red); color: var(--white);
  box-shadow: 0 4px 20px rgba(214,48,49,.40);
  transform: translateY(-2px);
}

/* ── Elementor editor: show all panels for live preview ── */
.elementor-editor-active .cvtp-panel-wrap { display: flex !important; }

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 900px) {
  .cvtp-tab-col            { width: 40px; min-width: 40px; }
  .cvtp-col-flag           { width: 28px; height: 28px; }
  .cvtp-col-title          { font-size: .68rem; }
  .cvtp-tab-col.cvtp-active { width: auto; min-width: 260px; }
  .cvtp-panel-wrap         { padding: 22px 18px; }
  .cvtp-info-grid          { grid-template-columns: 1fr; }
  .cvtp-panel-logo         { width: 72px; height: 72px; }
}

@media (max-width: 600px) {
  .cvtp-main-row { flex-direction: column; }
  .cvtp-tab-col {
    width: 100%; min-width: 100%;
    flex-direction: row; height: 52px;
    padding: 0 12px;
    border-right: none;
    border-bottom: 1px solid var(--faint);
  }
  .country-plus-label-container {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }
  .cvtp-col-flag   { margin-bottom: 0; margin-right: 10px; width: 28px; height: 28px; }
  .cvtp-col-title  { writing-mode: horizontal-tb; transform: none; font-size: .72rem; }
  .cvtp-tab-col::before { width: 100%; height: 3px; top: unset; bottom: 0; left: 0; }
  .cvtp-tab-col.cvtp-active { width: 100%; min-width: 100%; height: auto; }
}
