/* ---------------------------------------------------------
   MARKETING FORMS COMMON
   Shared styles for marketing pages with forms (Careers, Contact)
   --------------------------------------------------------- */

.marketing-hero {
  padding-top: 7rem;
  padding-bottom: 4rem;
  background: var(--hero-bg);
  text-align: center;
}

.marketing-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.marketing-hero-sub {
  font-size: 1.125rem;
  color: var(--hero-muted);
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.6;
}

.marketing-hero-alt {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--hero-muted);
}

.marketing-hero-alt a {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.marketing-hero-alt a:hover {
  border-color: var(--primary);
}

/* Narrow containers for focused forms */
.section-container--narrow-40 {
  max-width: 40rem;
}

.section-container--text-center {
  text-align: center;
}

/* Modifier to reduce the massive gap when a section follows a hero */
.section-padding--tight-top {
  padding-top: 3rem;
}

@media (min-width: 1024px) {
  .section-padding--tight-top {
    padding-top: 4rem;
  }
}

/* Form Panel Card */
.card-elevated--form-panel {
  padding: 1.75rem;
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .card-elevated--form-panel {
    padding: 2.5rem;
  }
}

.form-field--mb {
  margin-bottom: 1.5rem;
}

/* Form Sectioning */
.pc-form-section {
  border: none;
  margin: 0;
  padding: 0;
  margin-bottom: 2rem;
}

.pc-form-section__title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Form labels with icons */
.form-label-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.form-label-icon .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.form-label-block {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}

.form-required {
  color: var(--destructive);
  margin-left: 0.125rem;
}

.form-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted-foreground);
  margin-left: 0.25rem;
}

/* Select wrapper with custom chevron */
.pc-form-select-wrap {
  position: relative;
}

.form-select-native {
  padding-right: 3rem;
  appearance: none;
  -webkit-appearance: none;
}

.form-select-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

/* Status Banners (Hidden by default) */
.pc-form-banner-error {
  display: none;
  padding: 1rem;
  background: hsl(0 84% 60% / 0.1);
  border: 1px solid hsl(0 84% 60% / 0.2);
  color: var(--destructive);
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.pc-form-banner-error.is-visible {
  display: block;
}

.pc-form-success {
  display: none;
  padding: 1.5rem;
  background: hsl(142 71% 45% / 0.1);
  border: 1px solid hsl(142 71% 45% / 0.2);
  color: hsl(142 71% 45%);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  text-align: center;
}

.pc-form-success.is-visible {
  display: block;
}

.pc-form-success strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

/* Individual field errors */
.form-error {
  display: none;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--destructive);
}
