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

:root {
  --gccs-popup-deep: #0b2a4a;
  --gccs-popup-navy: #003E68;
  --gccs-popup-blue: #1a5276;
  --gccs-popup-sky: #2980b9;
  --gccs-popup-teal: #48b4a0;
  --gccs-popup-green: #2e8b7a;
  --gccs-popup-light: #f6fafa;
  --gccs-popup-bg: #f9fbfc;
  --gccs-popup-white: #ffffff;
  --gccs-popup-text: #2c3e50;
  --gccs-popup-muted: #5d6d7e;
  --gccs-popup-faint: #a0aec0;
  --gccs-popup-line: #e4eaef;
  --gccs-popup-radius: 18px;
}

.gccs-icvc-popup-root,
.gccs-icvc-popup-root * {
  box-sizing: border-box;
}

.gccs-icvc-popup-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font-family: 'Poppins', sans-serif;
  color: var(--gccs-popup-text);
}

.gccs-icvc-popup-root.is-visible {
  display: flex;
}

.gccs-icvc-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 42, 0.62);
  backdrop-filter: blur(7px);
  animation: gccsIcvcFadeIn 0.22s ease both;
}

.gccs-icvc-popup {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--gccs-popup-radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(72, 180, 160, 0.14), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(41, 128, 185, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  box-shadow: 0 28px 90px rgba(11, 42, 74, 0.32);
  padding: 34px 34px 30px;
  animation: gccsIcvcPopupIn 0.32s cubic-bezier(.2,.8,.2,1) both;
  outline: none;
}

.gccs-icvc-popup::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  border-radius: var(--gccs-popup-radius) var(--gccs-popup-radius) 0 0;
  background: linear-gradient(90deg, var(--gccs-popup-teal), var(--gccs-popup-sky), var(--gccs-popup-navy));
}

.gccs-icvc-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gccs-popup-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--gccs-popup-muted);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gccs-icvc-popup-close:hover,
.gccs-icvc-popup-close:focus-visible {
  background: var(--gccs-popup-deep);
  color: #ffffff;
  transform: rotate(90deg);
}

.gccs-icvc-popup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 48px 16px 0;
}

.gccs-icvc-popup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gccs-popup-teal);
}

.gccs-icvc-popup-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gccs-popup-teal);
  flex-shrink: 0;
}

.gccs-icvc-popup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(72, 180, 160, 0.12);
  color: var(--gccs-popup-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.gccs-icvc-popup h2 {
  margin: 0 44px 18px 0;
  color: var(--gccs-popup-navy);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.gccs-icvc-popup-content {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.gccs-icvc-popup-content p {
  margin: 0;
  color: var(--gccs-popup-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.gccs-icvc-popup-content p:first-child {
  color: var(--gccs-popup-text);
  font-weight: 500;
}

.gccs-icvc-popup-contact {
  display: grid;
  gap: 10px;
  margin: 22px 0 26px;
  padding: 18px 20px;
  border: 1px solid var(--gccs-popup-line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(72, 180, 160, 0.08), rgba(41, 128, 185, 0.04)),
    #ffffff;
}

.gccs-icvc-popup-contact a,
.gccs-icvc-popup-contact span {
  color: var(--gccs-popup-deep);
  font-size: 13.5px;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.gccs-icvc-popup-contact a:hover,
.gccs-icvc-popup-contact a:focus-visible {
  color: var(--gccs-popup-green);
  text-decoration: underline;
}

.gccs-icvc-popup-actions {
  display: flex;
  justify-content: flex-start;
}

.gccs-icvc-popup-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gccs-popup-teal), var(--gccs-popup-sky));
  color: #ffffff !important;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 12px 30px rgba(72, 180, 160, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gccs-icvc-popup-cta:hover,
.gccs-icvc-popup-cta:focus-visible {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 16px 38px rgba(41, 128, 185, 0.30);
}

body.gccs-icvc-popup-lock {
  overflow: hidden;
}

@keyframes gccsIcvcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gccsIcvcPopupIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Elementor / theme safety */
.gccs-icvc-popup-root a {
  box-shadow: none;
}

@media (max-width: 640px) {
  .gccs-icvc-popup-root {
    padding: 14px;
    align-items: flex-end;
  }

  .gccs-icvc-popup {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 30px 22px 24px;
    border-radius: 18px 18px 0 0;
  }

  .gccs-icvc-popup::before {
    border-radius: 18px 18px 0 0;
  }

  .gccs-icvc-popup h2 {
    margin-right: 40px;
  }

  .gccs-icvc-popup-top {
    margin-right: 42px;
  }

  .gccs-icvc-popup-actions {
    display: block;
  }

  .gccs-icvc-popup-cta {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gccs-icvc-popup,
  .gccs-icvc-popup-overlay,
  .gccs-icvc-popup-close,
  .gccs-icvc-popup-cta {
    animation: none !important;
    transition: none !important;
  }
}
