:root {
  --ec-bg: #f5f8ff;
  --ec-surface: #ffffff;
  --ec-border: #d7e1ef;
  --ec-text: #1b2a41;
  --ec-muted: #52647e;
  --ec-brand: #1364b4;
  --ec-brand-strong: #0d4f8f;
  --ec-warm: #f4a62a;
  --ec-danger-bg: #fff0f2;
  --ec-danger-border: #f4c3cb;
  --ec-danger-text: #a12735;
  --ec-shadow: 0 24px 44px -34px rgba(18, 44, 82, 0.45);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(circle at 88% -18%, rgba(19, 100, 180, 0.14) 0, transparent 44%),
    radial-gradient(circle at -12% 12%, rgba(244, 166, 42, 0.16) 0, transparent 34%),
    var(--ec-bg);
  color: var(--ec-text);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
}

.ecv2-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1rem 2.8rem;
}

.ecv2-hero {
  border: 1px solid var(--ec-border);
  border-radius: 22px;
  background: linear-gradient(123deg, #ffffff 0%, #f2f8ff 58%, #fff9ef 100%);
  box-shadow: var(--ec-shadow);
  padding: 1.2rem;
}

.ecv2-kicker {
  margin: 0;
  display: inline-block;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: #eaf2ff;
  border: 1px solid #d3e2fa;
  color: #124a87;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ecv2-hero h1 {
  margin: 0.82rem 0 0.5rem;
  max-width: 22ch;
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.14;
  font-size: clamp(1.55rem, 3.8vw, 2.5rem);
}

.ecv2-hero p {
  margin: 0;
  max-width: 72ch;
  color: var(--ec-muted);
}

.ecv2-pills {
  margin-top: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.ecv2-pills span {
  border: 1px solid #d9e6fa;
  border-radius: 999px;
  background: #f2f7ff;
  color: #15467b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.34rem 0.65rem;
}

.ecv2-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.ecv2-card {
  border: 1px solid var(--ec-border);
  border-radius: 16px;
  background: var(--ec-surface);
  box-shadow: var(--ec-shadow);
  padding: 1rem;
}

.ecv2-card-head h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.06rem, 2.2vw, 1.38rem);
}

.ecv2-card-head p {
  margin: 0.32rem 0 0;
  color: var(--ec-muted);
}

.ecv2-muted {
  margin: 0.6rem 0 0;
  color: var(--ec-muted);
  font-size: 0.86rem;
}

.ecv2-form {
  margin-top: 0.82rem;
}

.ecv2-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ecv2-form label {
  display: block;
  border: 1px solid #e2e9f5;
  border-radius: 12px;
  background: #f8fbff;
  padding: 0.62rem 0.7rem;
  color: #223753;
  font-weight: 600;
  font-size: 0.88rem;
}

.ecv2-form label small {
  display: block;
  margin-top: 0.3rem;
  color: #567092;
  font-size: 0.78rem;
  font-weight: 500;
}

.ecv2-full {
  grid-column: 1 / -1;
}

.ecv2-form input {
  width: 100%;
  min-height: 40px;
  margin-top: 0.38rem;
  border: 1px solid #c7d5e8;
  border-radius: 10px;
  background: #fff;
  color: #1a2a43;
  font-size: 0.94rem;
  font-family: inherit;
  padding: 0.54rem 0.62rem;
}

.ecv2-form input:focus {
  outline: none;
  border-color: #7da8df;
  box-shadow: 0 0 0 4px rgba(19, 100, 180, 0.13);
}

.ecv2-actions {
  margin-top: 0.84rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.ecv2-primary-btn,
.ecv2-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0.64rem 0.92rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.ecv2-primary-btn {
  border: 0;
  background: var(--ec-brand);
  color: #fff;
  cursor: pointer;
}

.ecv2-primary-btn:hover {
  background: var(--ec-brand-strong);
}

.ecv2-secondary-btn {
  border: 1px solid #ccd8ec;
  background: #f4f7fc;
  color: #1f3f67;
  cursor: pointer;
}

.ecv2-secondary-btn:hover {
  background: #e9f0fc;
}

.ecv2-results {
  margin-top: 0.76rem;
  overflow-x: auto;
}

.ecv2-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
}

.ecv2-table td {
  border-bottom: 1px solid #eaf0f8;
  padding: 0.52rem 0.6rem;
  color: #243854;
}

.ecv2-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ecv2-table tr:last-child td {
  border-bottom: 0;
}

.ecv2-alert {
  margin-top: 0.72rem;
  border-radius: 10px;
  padding: 0.56rem 0.66rem;
  font-size: 0.88rem;
}

.ecv2-alert-error {
  border: 1px solid var(--ec-danger-border);
  background: var(--ec-danger-bg);
  color: var(--ec-danger-text);
}

.ecv2-guide {
  margin-top: 1rem;
}

.ecv2-guide h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.08rem, 2.2vw, 1.43rem);
}

.ecv2-guide ul {
  margin: 0.68rem 0 0;
  color: var(--ec-muted);
  padding-left: 1.2rem;
}

.ecv2-guide li + li {
  margin-top: 0.24rem;
}

.ecv2-guide p {
  margin: 0.52rem 0 0;
  color: var(--ec-muted);
}

.ecv2-guide code {
  font-size: 0.82rem;
  background: #eef3fb;
  border: 1px solid #d7e2f5;
  border-radius: 6px;
  padding: 0.08rem 0.28rem;
}

.ecv2-guide a {
  color: #1b5da1;
}

.ecv2-links {
  margin-top: 0.82rem;
  display: flex;
  gap: 0.58rem;
  flex-wrap: wrap;
}

.ecv2-links a {
  text-decoration: none;
  border: 1px solid #d7e4f8;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f4f8a;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.34rem 0.66rem;
}

.ecv2-disclaimer {
  margin-top: 0.72rem;
  font-size: 0.84rem;
}

.ecv2-footer {
  text-align: center;
  padding: 0.95rem 1rem 1.4rem;
  font-size: 0.9rem;
  color: #587197;
}

.ecv2-footer a {
  color: inherit;
}

/* ================================================================
   AD CARD
   ================================================================ */
.ecv2-ad-card {
  margin-top: 1.1rem;
  border: 1px dashed #b9ccf4;
  background: linear-gradient(140deg, #fcfdff, #f2f7ff);
}

.ecv2-ad-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: #45659c;
  font-weight: 700;
}

.ecv2-ad-slot {
  margin-top: 0.6rem;
  min-height: 120px;
  border: 1px solid #d3e1ff;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.ecv2-ad-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #617395;
}

/* ================================================================
   V3 FAQ STYLES — chevron animation
   ================================================================ */
.ecv2-faq-list .faq-item {
  background: #fff;
  border: 1px solid var(--ec-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.ecv2-faq-list .faq-item:hover {
  border-color: #b7c9f0;
}

.ecv2-faq-list .faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  color: #16386f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  list-style: none;
  line-height: 1.4;
}

.ecv2-faq-list .faq-item summary::-webkit-details-marker {
  display: none;
}

.ecv2-faq-list .faq-item summary::marker {
  display: none;
  content: "";
}

.ecv2-faq-list .faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--ec-brand);
}

.ecv2-faq-list .faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.ecv2-faq-list .faq-item p {
  margin: 0.6rem 0 0;
  color: var(--ec-muted);
  animation: faqReveal 0.25s ease;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   MULTI-COLUMN FOOTER
   ================================================================ */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--ec-border);
  background: #f0f4ff;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1.8fr repeat(5, 1fr);
  gap: 1.4rem;
}

.footer-brand {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #123471;
}

.footer-tagline {
  margin: 0.3rem 0 0.8rem;
  color: var(--ec-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-col-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #45526f;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  color: #194ca3;
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--ec-brand);
}

.footer-play-badge {
  display: inline-block;
  margin-top: 0.2rem;
}

.footer-play-badge img {
  height: 42px;
  width: auto;
  display: block;
}

.footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.8rem 1rem 1.2rem;
  border-top: 1px solid var(--ec-border);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--ec-muted);
  font-size: 0.88rem;
}

/* ================================================================
   FADE ANIMATION
   ================================================================ */
.fade-section.fade-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 760px) {
  .ecv2-main {
    padding: 0.78rem 0.76rem 2rem;
  }

  .ecv2-form-grid {
    grid-template-columns: 1fr;
  }

  .ecv2-card {
    padding: 0.84rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}
