/* Price Calculator page */

.pc-page {
  --pc-brand: #3384fc;
  --pc-ink: #0f172a;
  --pc-muted: #64748b;
  --pc-line: #e2e8f0;
}

/* Hero */
.pc-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 3rem;
}

.pc-hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(51, 132, 252, 0.09), transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(124, 58, 237, 0.06), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.pc-hero-shell {
  position: relative;
  padding-top: 6.5rem;
}

@media (min-width: 768px) {
  .pc-hero-shell {
    padding-top: 7.5rem;
  }
}

.pc-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.pc-crumb a {
  color: #64748b;
  transition: color 0.15s;
}

.pc-crumb a:hover {
  color: var(--pc-brand);
}

.pc-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .pc-hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
  }
}

.pc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.pc-eyebrow--dark {
  color: #2563eb;
}

.pc-eyebrow-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--pc-brand);
  box-shadow: 0 0 10px rgba(51, 132, 252, 0.55);
}

.pc-hero-copy h1 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--pc-ink);
}

.pc-hero-lead {
  margin-top: 1.125rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--pc-muted);
}

.pc-hero-list {
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.pc-hero-list li {
  display: grid;
  gap: 0.25rem;
  padding-left: 1rem;
  border-left: 2px solid #bfdbfe;
}

.pc-hero-list strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.pc-hero-list span {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

/* Wizard card */
.pc-hero-wizard {
  position: relative;
}

.pc-wizard {
  border-radius: 1.25rem;
  border: 1px solid var(--pc-line);
  background: #fff;
  padding: 1.5rem;
  box-shadow:
    0 24px 48px -24px rgba(51, 132, 252, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

@media (min-width: 640px) {
  .pc-wizard {
    padding: 2rem;
  }
}

.pc-wizard-progress {
  height: 4px;
  margin-bottom: 1.25rem;
  border-radius: 9999px;
  background: #f1f5f9;
  overflow: hidden;
}

.pc-wizard-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3384fc, #6366f1);
  transition: width 0.35s ease;
}

.pc-wizard-step-label {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pc-wizard-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--pc-ink);
}

.pc-wizard-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--pc-muted);
}

.pc-options {
  display: grid;
  gap: 0.625rem;
}

.pc-option {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  border: 1px solid var(--pc-line);
  background: #fafbfc;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pc-option:hover {
  border-color: #bfdbfe;
  background: #fff;
}

.pc-option--selected {
  border-color: #60a5fa;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  box-shadow: 0 8px 24px -16px rgba(51, 132, 252, 0.45);
}

.pc-option-radio {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  border-radius: 9999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pc-option--selected .pc-option-radio {
  border-color: var(--pc-brand);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--pc-brand);
}

.pc-option-body {
  display: grid;
  gap: 0.25rem;
}

.pc-option-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
}

.pc-option-desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

.pc-wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pc-wizard-nav--form {
  margin-top: 1.25rem;
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}

.pc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pc-btn--primary {
  border-color: #2563eb;
  background: linear-gradient(135deg, #3384fc, #4f46e5);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(51, 132, 252, 0.65);
}

.pc-btn--primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.pc-btn--ghost {
  border-color: var(--pc-line);
  background: #fff;
  color: #475569;
}

.pc-btn--ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* Estimate card */
.pc-estimate-card {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid #bfdbfe;
  background: linear-gradient(145deg, #eff6ff 0%, #f5f3ff 100%);
}

.pc-estimate-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.pc-estimate-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.pc-estimate-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pc-estimate-badge--simple {
  background: #dcfce7;
  color: #15803d;
}

.pc-estimate-badge--mid-level {
  background: #dbeafe;
  color: #1d4ed8;
}

.pc-estimate-badge--complex {
  background: #ede9fe;
  color: #6d28d9;
}

.pc-estimate-range {
  display: block;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.pc-estimate-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: #475569;
}

.pc-estimate-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.pc-estimate-summary dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.pc-estimate-summary dd {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
}

.pc-estimate-note {
  margin: 0.875rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #64748b;
}

.pc-estimate-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #64748b;
}

/* Lead form */
.pc-lead-form {
  display: grid;
  gap: 1rem;
}

.pc-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
}

.pc-field-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pc-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pc-input {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid var(--pc-line);
  background: #fff;
  font-size: 0.9375rem;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pc-input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(51, 132, 252, 0.15);
}

.pc-input--textarea {
  resize: vertical;
  min-height: 5rem;
}

.pc-input--error {
  border-color: #f87171;
}

.pc-field-error {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #dc2626;
}

.pc-form-foot {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
  color: #64748b;
}

.pc-form-foot a {
  font-weight: 600;
  color: #2563eb;
}

.pc-form-foot a:hover {
  text-decoration: underline;
}

/* Success */
.pc-wizard--success {
  text-align: center;
}

.pc-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: #dcfce7;
  color: #16a34a;
}

.pc-success-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.pc-wizard--success h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--pc-ink);
}

.pc-wizard--success > p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--pc-muted);
}

.pc-estimate-card--inline {
  margin: 1.5rem 0;
  text-align: left;
}

.pc-estimate-card--inline strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.375rem;
  color: #0f172a;
}

.pc-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Info sections */
.pc-band {
  padding: 3.5rem 0;
}

.pc-band--soft {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.pc-info-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .pc-info-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }
}

.pc-info-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid var(--pc-line);
  background: #fff;
}

.pc-info-card h2,
.pc-info-card h3 {
  margin-bottom: 0.875rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--pc-ink);
}

.pc-info-card p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #475569;
}

.pc-info-card p + p {
  margin-top: 0.875rem;
}

.pc-info-card--accent {
  border-color: #bfdbfe;
  background: linear-gradient(160deg, #eff6ff, #f8fafc);
}

.pc-info-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc-info-card li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #334155;
}

.pc-info-card li + li {
  margin-top: 0.625rem;
}

.pc-info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--pc-brand);
}

.pc-tiers-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.pc-tiers-head h2 {
  margin: 0.5rem 0;
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 600;
  color: var(--pc-ink);
}

.pc-tiers-head p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--pc-muted);
}

.pc-tiers-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pc-tiers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pc-tier {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--pc-line);
  background: #fff;
}

.pc-tier--featured {
  border-color: #93c5fd;
  background: linear-gradient(160deg, #eff6ff, #fff);
  box-shadow: 0 16px 40px -24px rgba(51, 132, 252, 0.35);
}

.pc-tier h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.pc-tier strong {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.pc-tier-time {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.pc-tier p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #64748b;
}

@media (prefers-reduced-motion: reduce) {
  .pc-wizard-progress-bar,
  .pc-option,
  .pc-btn {
    transition: none;
  }
}
