/* Estate Planning Forms — Lawyer Directory theme */
:root {
  --epf-navy: #0a1f5c;
  --epf-blue: #0b5ed7;
  --epf-blue-light: #1d72f2;
  --epf-blue-soft: #eef3ff;
  --epf-text: #111827;
  --epf-muted: #6b7280;
  --epf-border: #e5e7eb;
  --epf-panel: #f4f7fc;
  --epf-white: #ffffff;
  --epf-radius: 12px;
}

.epf-page {
  font-family: 'Outfit', sans-serif;
  color: var(--epf-text);
  background: var(--epf-white);
}

.epf-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.epf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--epf-muted);
  padding: 18px 0 8px;
  flex-wrap: wrap;
}

.epf-breadcrumb a {
  color: var(--epf-muted);
  text-decoration: none;
}

.epf-breadcrumb a:hover {
  color: var(--epf-blue);
}

.epf-breadcrumb span.sep {
  color: #cbd5e1;
}

.epf-partner-band {
  background: #f3f4f6;
  padding: 8px 0 32px;
}

.epf-partner-intro {
  text-align: center;
  font-size: 15px;
  color: var(--epf-muted);
  padding: 12px 0 0;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Hero card */
.epf-hero-card {
  background: var(--epf-white);
  border: 1px solid var(--epf-border);
  border-radius: var(--epf-radius);
  box-shadow: 0 4px 24px rgba(10, 31, 92, 0.08);
  margin-bottom: 56px;
}

.epf-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  align-items: stretch;
}

.epf-hero-content {
  padding: 40px 44px;
}

.epf-partner-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--epf-navy);
}

.epf-partner-logo i {
  color: var(--epf-blue);
  font-size: 22px;
}

.epf-hero-content h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--epf-text);
  line-height: 1.25;
  margin: 0 0 10px;
}

.epf-hero-sub {
  font-size: 17px;
  font-weight: 600;
  color: var(--epf-text);
  margin: 0 0 16px;
}

.epf-hero-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--epf-muted);
  margin: 0 0 24px;
  max-width: 480px;
}

.epf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--epf-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.epf-btn-primary:hover {
  background: var(--epf-blue-light);
  color: #fff;
}

.epf-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 0 var(--epf-radius) var(--epf-radius) 0;
}

/* How it works */
.epf-section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--epf-text);
  margin: 0 0 32px;
}

.epf-how-box {
  border: 1px solid var(--epf-border);
  border-radius: var(--epf-radius);
  overflow: hidden;
  margin-bottom: 56px;
  background: var(--epf-white);
}

.epf-how-header {
  background: var(--epf-blue);
  color: #fff;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.epf-how-body {
  padding: 32px 40px 36px;
}

.epf-how-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--epf-blue);
  margin: 0 0 20px;
}

.epf-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  counter-reset: step;
}

.epf-steps li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--epf-text);
}

.epf-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: var(--epf-blue-soft);
  color: var(--epf-blue);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.epf-how-note {
  font-size: 14px;
  color: var(--epf-muted);
  margin: 0 0 24px;
}

/* Benefits */
.epf-benefits {
  margin-bottom: 56px;
}

.epf-benefits-intro {
  text-align: center;
  font-size: 15px;
  color: var(--epf-muted);
  max-width: 640px;
  margin: -16px auto 36px;
  line-height: 1.65;
}

.epf-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.epf-benefit {
  text-align: center;
}

.epf-benefit-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border: 2px solid var(--epf-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--epf-blue);
  font-size: 28px;
}

.epf-benefit h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.epf-benefit p {
  font-size: 14px;
  color: var(--epf-muted);
  line-height: 1.65;
  margin: 0;
}

/* Resource cards */
.epf-resources {
  margin-bottom: 56px;
}

.epf-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.epf-res-card {
  border: 1px solid var(--epf-border);
  border-radius: var(--epf-radius);
  padding: 24px;
  background: var(--epf-white);
  transition: box-shadow 0.15s;
}

.epf-res-card:hover {
  box-shadow: 0 4px 16px rgba(10, 31, 92, 0.08);
}

.epf-res-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.epf-res-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--epf-blue);
  background: var(--epf-blue-soft);
  padding: 4px 10px;
  border-radius: 4px;
}

.epf-res-icon {
  width: 40px;
  height: 40px;
  color: var(--epf-blue);
  font-size: 28px;
  flex-shrink: 0;
}

.epf-res-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.4;
}

.epf-res-links {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.epf-res-links li {
  margin-bottom: 8px;
}

.epf-res-links a {
  font-size: 13px;
  color: var(--epf-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.epf-res-links a:hover {
  color: var(--epf-blue);
}

.epf-res-links a::before {
  content: '•';
  color: var(--epf-blue);
}

.epf-res-footer a {
  font-size: 14px;
  font-weight: 600;
  color: var(--epf-blue);
  text-decoration: none;
}

.epf-res-footer a:hover {
  text-decoration: underline;
}

/* Attorney CTA */
.epf-attorney {
  background: var(--epf-panel);
  border-radius: var(--epf-radius);
  padding: 48px 40px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.epf-attorney::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230b5ed7' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.epf-attorney-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.epf-attorney-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--epf-white);
  box-shadow: 0 8px 24px rgba(10, 31, 92, 0.12);
}

.epf-attorney h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}

.epf-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 20px;
}

.epf-check-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.epf-check-item i {
  color: var(--epf-blue);
  margin-top: 3px;
  flex-shrink: 0;
}

.epf-link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--epf-blue);
  text-decoration: none;
}

.epf-link-arrow:hover {
  text-decoration: underline;
}

.epf-attorney-form {
  margin-top: 8px;
}

.epf-attorney-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.epf-attorney-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.epf-attorney-form-row input {
  flex: 1;
  min-width: 200px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--epf-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.epf-attorney-form-row button {
  height: 44px;
  padding: 0 20px;
  background: var(--epf-white);
  color: var(--epf-blue);
  border: 2px solid var(--epf-blue);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.epf-attorney-form-row button:hover {
  background: var(--epf-blue-soft);
}

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

  .epf-hero-media img {
    border-radius: 0 0 var(--epf-radius) var(--epf-radius);
    min-height: 240px;
  }

  .epf-benefits-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .epf-resources-grid {
    grid-template-columns: 1fr;
  }

  .epf-attorney-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .epf-attorney-photo {
    margin: 0 auto;
  }

  .epf-check-grid {
    grid-template-columns: 1fr;
  }
}
