:root {
  --apcd-bg: #f7f9fc;
  --apcd-ink: #17233b;
  --apcd-muted: #5a6781;
  --apcd-brand: #155eef;
  --apcd-brand-2: #0a3aac;
  --apcd-card: #ffffff;
  --apcd-border: #e5ebf5;
  --apcd-success: #0f9d58;
}

body.apcd-page {
  background: var(--apcd-bg);
  color: var(--apcd-ink);
}

.apcd-main {
  padding: 2rem 0 4rem;
}

.apcd-container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.apcd-hero {
  background: linear-gradient(135deg, #0d1f44, #123166 60%, #1b4d9f);
  color: #fff;
  padding: 3rem 0;
  border-radius: 18px;
  margin-bottom: 1.5rem;
}

.apcd-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
  color: #8dc3ff;
}

.apcd-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.apcd-hero p {
  color: #d7e7ff;
  margin-bottom: 1rem;
}

.apcd-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.apcd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.apcd-btn.primary {
  background: #fff;
  color: #123166;
}

.apcd-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.apcd-breadcrumb {
  font-size: 0.9rem;
  color: var(--apcd-muted);
  margin-bottom: 1rem;
}

.apcd-breadcrumb a {
  color: var(--apcd-brand);
  text-decoration: none;
}

.apcd-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 1.25rem;
}

.apcd-content section,
.apcd-card,
.apcd-cta-band,
.apcd-faq,
.apcd-form-wrap {
  background: var(--apcd-card);
  border: 1px solid var(--apcd-border);
  border-radius: 14px;
  padding: 1.15rem;
  margin-bottom: 1rem;
}

.apcd-content h2,
.apcd-card h2,
.apcd-faq h2,
.apcd-form-wrap h2 {
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.apcd-content h3 {
  font-size: 1.05rem;
  margin: 0.9rem 0 0.3rem;
}

.apcd-content p,
.apcd-content li,
.apcd-card p,
.apcd-card li,
.apcd-faq p,
.apcd-form-wrap p {
  color: var(--apcd-muted);
}

.apcd-content ul,
.apcd-content ol,
.apcd-card ul {
  padding-left: 1.1rem;
}

.apcd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.apcd-link-card {
  border: 1px solid var(--apcd-border);
  border-radius: 12px;
  padding: 0.85rem;
  background: #fff;
}

.apcd-link-card a {
  color: var(--apcd-brand);
  font-weight: 700;
  text-decoration: none;
}

.apcd-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.apcd-tag {
  font-size: 0.82rem;
  border-radius: 999px;
  background: #eff4ff;
  color: var(--apcd-brand-2);
  padding: 0.25rem 0.62rem;
}

.apcd-cta-band {
  border-left: 5px solid var(--apcd-brand);
}

.apcd-cta-band h3 {
  margin-bottom: 0.4rem;
}

.apcd-faq details {
  border: 1px solid var(--apcd-border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.55rem;
}

.apcd-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.apcd-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.apcd-form .full {
  grid-column: 1 / -1;
}

.apcd-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #27344d;
}

.apcd-form input,
.apcd-form textarea,
.apcd-form select {
  width: 100%;
  border: 1px solid #cfd8ea;
  border-radius: 9px;
  padding: 0.64rem 0.72rem;
  font: inherit;
  background: #fff;
}

.apcd-form textarea {
  resize: vertical;
  min-height: 100px;
}

.apcd-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: var(--apcd-muted);
}

.apcd-form-status {
  font-weight: 600;
  margin-top: 0.3rem;
}

.apcd-form-status.success {
  color: var(--apcd-success);
}

.apcd-form-status.error {
  color: #b42318;
}

.apcd-aside {
  position: sticky;
  top: 92px;
  align-self: start;
}

.apcd-aside .apcd-card ul {
  margin-top: 0.5rem;
}

.apcd-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.apcd-footer-note {
  font-size: 0.86rem;
  color: #6b7387;
  margin-top: 0.8rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

@media (max-width: 900px) {
  .apcd-grid {
    grid-template-columns: 1fr;
  }

  .apcd-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .apcd-form {
    grid-template-columns: 1fr;
  }

  .apcd-hero {
    padding: 2.1rem 0;
  }
}
