/* Registered Agent service page
   Source of truth for /registered-agent/.
   Loaded by _includes/page-css.html from pages/registered-agent.md
   together with faq-styles.css. Do not duplicate these rules in service-landing.css. */

.measure:has(.registered-agent-page) {
  max-width: 100%;
}

.registered-agent-page {
  background: #f8fafc;
}

/* page-css is only loaded on this page; post-header sits outside .registered-agent-page */
.post-header {
  display: none !important;
}

/* Hero */
.ra-hero {
  background: linear-gradient(135deg, #0063A0 0%, #004070 100%);
  color: #fff;
  padding: 3rem 1.5rem 3.5rem;
  text-align: center;
}

.ra-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.ra-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
}

.ra-hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.ra-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.ra-trust-row span {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
}

/* Conversion */
.ra-conversion {
  padding: 0 1.25rem 3rem;
  margin-top: -1.5rem;
  position: relative;
  z-index: 1;
}

.ra-conversion-inner {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.ra-block {
  padding: 2rem 2rem 2.25rem;
}

.ra-block + .ra-block {
  border-top: 1px solid #e2e8f0;
}

.ra-block-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.ra-block-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  border: none !important;
  padding: 0 !important;
}

.ra-block-header p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Compact benefit carousel — quieter than formation pricing cards */
.ra-benefit-carousel {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0 40px;
}

.ra-benefit-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}

.ra-benefit-track::-webkit-scrollbar {
  display: none;
}

.ra-benefit-card {
  flex: 0 0 188px;
  width: 188px;
  min-width: 188px;
  max-width: 188px;
  scroll-snap-align: start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.8rem 0.85rem;
  text-align: left;
  box-shadow: none;
}

.ra-benefit-card.featured {
  background: #f0f9ff;
  border-color: #93c5e8;
}

.ra-benefit-kicker {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0063A0;
}

.ra-benefit-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.2rem;
  line-height: 1.3;
}

.ra-benefit-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0063A0;
  margin: 0 0 0.15rem;
}

.ra-benefit-note {
  font-size: 0.7rem;
  color: #64748b;
  margin: 0 0 0.45rem;
  line-height: 1.35;
}

.ra-benefit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ra-benefit-card li {
  padding: 0.28rem 0;
  border-bottom: 1px solid #eef2f7;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #475569;
}

.ra-benefit-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ra-benefit-card li::before {
  content: "✓ ";
  color: #629E2D;
  font-weight: 700;
}

.ra-benefit-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  color: #0063A0;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.ra-benefit-nav:hover {
  background: #f0f9ff;
  border-color: #0063A0;
}

.ra-benefit-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ra-benefit-nav.prev {
  left: 0;
}

.ra-benefit-nav.next {
  right: 0;
}

.ra-addons-note {
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

/* Form */
.ra-form-block {
  position: relative;
  scroll-margin-top: 96px;
}

.ra-form-toggle {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 24px;
  background: #0063A0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ra-form-toggle:hover,
.ra-form-toggle:focus-visible {
  background: #004f80;
  outline: none;
}

.ra-form-panel {
  margin-top: 1.25rem;
}

.ra-form-panel.is-collapsed {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ra-form-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.ra-form-wrap iframe {
  display: block;
  border-radius: 12px;
}

.ra-new-tab-link {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.ra-new-tab-link a {
  color: #0063A0;
  font-weight: 600;
  text-decoration: none;
}

.ra-new-tab-link a:hover {
  text-decoration: underline;
}

/* Below-fold sections */
.ra-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.ra-section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #0f172a;
  margin: 0 0 0.75rem;
  border: none !important;
  padding: 0 !important;
}

.ra-section-lead {
  text-align: center;
  color: #64748b;
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.ra-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.ra-problem-section {
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.ra-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ra-problem-card {
  padding: 1.25rem;
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  text-align: center;
}

.ra-problem-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ra-problem-card h3 {
  font-size: 1.1rem;
  color: #991b1b;
  margin: 0 0 0.5rem;
}

.ra-problem-card p {
  color: #7f1d1d;
  line-height: 1.55;
  margin: 0;
  font-size: 0.9375rem;
}

.ra-steps-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.ra-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ra-step-card {
  padding: 1.25rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
}

.ra-step-card.featured {
  background: #eff6ff;
  border-color: #93c5e8;
}

.ra-step-number {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: #0063A0;
  color: #fff;
  border-radius: 50%;
  line-height: 36px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.ra-step-card h3 {
  font-size: 1rem;
  color: #0f172a;
  margin: 0 0 0.4rem;
}

.ra-step-card p {
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  font-size: 0.875rem;
}

.ra-audience-section {
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.ra-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.ra-audience-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.ra-audience-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.ra-audience-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.ra-audience-card p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

.ra-includes-section {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-top: 1px solid #e2e8f0;
}

.ra-includes-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 640px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.ra-includes-list li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  color: #334155;
  margin: 0;
  line-height: 1.4;
}

.ra-includes-list li::before {
  content: "✓ ";
  color: #629E2D;
  font-weight: 700;
}

.ra-policy-section {
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.ra-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.ra-policy-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.ra-policy-card.caution {
  grid-column: 1 / -1;
  background: #fffbeb;
  border-color: #f59e0b;
}

.ra-policy-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.ra-policy-card p {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.ra-policy-card p:last-child {
  margin-bottom: 0;
}

.ra-policy-card ul {
  margin: 0 0 0.75rem;
  padding-left: 1.15rem;
}

.ra-policy-card li {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 0.4rem;
}

.ra-policy-callout {
  background: #fff;
  border-left: 3px solid #0063A0;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.ra-policy-card.caution .ra-policy-callout {
  border-left-color: #d97706;
}

.ra-office-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.ra-office-filter-label {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 0.4rem;
}

.ra-office-filter {
  width: 100%;
  max-width: 360px;
  display: block;
  margin: 0 auto 1.25rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #fff;
}

.ra-office-filter:focus {
  outline: 2px solid #0063A0;
  outline-offset: 2px;
  border-color: #0063A0;
}

.ra-office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.ra-office-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
}

.ra-office-item.is-hidden,
.ra-office-item[hidden] {
  display: none !important;
}

.ra-office-abbr {
  flex: 0 0 auto;
  min-width: 2.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0063A0;
  background: #eff6ff;
  border-radius: 6px;
  text-align: center;
  padding: 0.25rem 0.35rem;
  line-height: 1.4;
}

.ra-office-copy h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.ra-office-copy p {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.ra-office-copy a {
  color: #0063A0;
  font-weight: 600;
  text-decoration: none;
}

.ra-office-copy a:hover {
  text-decoration: underline;
}

.ra-office-empty {
  text-align: center;
  color: #64748b;
  margin: 1rem 0 0;
}

.ra-office-empty.is-hidden {
  display: none !important;
}

.ra-faq-section {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding-bottom: 4rem;
}

.ra-faq-section h2 {
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .ra-steps-grid,
  .ra-audience-grid,
  .ra-policy-grid {
    grid-template-columns: 1fr;
  }

  .ra-office-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ra-hero {
    padding: 2.25rem 1rem 2.75rem;
  }

  .ra-conversion {
    padding: 0 0.75rem 2rem;
    margin-top: -1rem;
  }

  .ra-block {
    padding: 1.5rem 1rem 1.75rem;
  }

  .ra-benefit-carousel {
    padding: 0 36px;
  }

  .ra-problem-grid,
  .ra-includes-list {
    grid-template-columns: 1fr;
  }

  .ra-section {
    padding: 2.25rem 1rem;
  }
}

@media (max-width: 600px) {
  .ra-office-grid {
    grid-template-columns: 1fr;
  }
}
