/* ==========================================================================
   Honda Express - Common Styles
   ========================================================================== */

:root {
  --he-primary: #D30F15;
  --he-primary-hover: #b20c11;
  --he-primary-active: #910a0e;
  --he-primary-dark: #b20c11;
  --he-slate-50: #f8fafc;
  --he-slate-200: #e2e8f0;
  --he-slate-300: #cbd5e1;
  --he-slate-400: #94a3b8;
  --he-slate-500: #64748b;
  --he-slate-600: #475569;
  --he-slate-700: #334155;
  --he-slate-800: #1e293b;
  --he-slate-900: #0f172a;
  --he-slate-950: #020617;
  --he-white: #ffffff;
  --he-font: "Inter", "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
  --he-header-h: 4rem;
  --he-container: 80rem;
  --he-container-wide: 96rem;
  --he-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --he-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --he-shadow-lg: 0 10px 24px rgba(15, 23, 42, 0.12);
  --he-transition: 0.15s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.he-body {
  margin: 0;
  font-family: var(--he-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--he-slate-800);
  background: var(--he-slate-50);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.he-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--he-slate-200);
  overflow-x: hidden;
}

.he-main {
  flex: 1;
  padding-top: var(--he-header-h);
}

::selection {
  background: var(--he-primary);
  color: var(--he-white);
}

/* Layout */
.he-container {
  width: 100%;
  max-width: var(--he-container);
  margin: 0 auto;
  padding: 0 1rem;
}

.he-container-wide {
  width: 100%;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .he-container, .he-container-wide { padding: 0 2rem; }
}

@media (min-width: 768px) {
  .he-container, .he-container-wide { padding: 0 3rem; }
}

@media (min-width: 1024px) {
  .he-main { padding-top: 5rem; }
  :root { --he-header-h: 5rem; }
  .he-container, .he-container-wide { padding: 0 4rem; }
}

@media (min-width: 1280px) {
  .he-container, .he-container-wide { padding: 0 6rem; }
}

.he-section { padding: 5rem 0; }

/* Typography helpers */
.he-section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--he-primary);
  margin-bottom: 0.5rem;
}

.he-section-label--light { color: rgba(255,255,255,0.95); }

.he-section-title {
  margin: 1rem 0 1.5rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--he-slate-900);
  letter-spacing: -0.02em;
}

.he-section-line {
  width: 4rem;
  height: 0.25rem;
  background: var(--he-primary);
  margin-bottom: 1.5rem;
}

.he-section-line--light { background: var(--he-white); }

.he-section-line--center { margin-left: auto; margin-right: auto; }

.he-section-desc {
  color: var(--he-slate-600);
  font-size: 1rem;
  line-height: 1.75;
}

.he-section-heading--center {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 4rem;
}

.he-section-heading--center .he-section-line { margin-left: auto; margin-right: auto; }

.he-text-primary { color: var(--he-primary); }

/* Icons (Lucide CDN) */
.he-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.he-icon--sm { width: 1rem; height: 1rem; }
.he-icon--md { width: 1.25rem; height: 1.25rem; }
.he-icon--lg { width: 1.5rem; height: 1.5rem; }

/* Lucide replaces <i> with <svg> */
svg.he-icon {
  display: inline-block;
}

/* Buttons */
.he-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--he-transition);
  text-align: center;
}

.he-btn--primary {
  background: var(--he-primary);
  color: var(--he-white);
  box-shadow: var(--he-shadow-md);
}

.he-btn--primary:hover { background: var(--he-primary-hover); box-shadow: var(--he-shadow-lg); }
.he-btn--primary:active { background: var(--he-primary-active); }

.he-btn--white {
  width: 100%;
  background: var(--he-white);
  color: var(--he-primary);
  box-shadow: var(--he-shadow-md);
}

.he-btn--white:hover {
  background: #fef2f2;
  transform: translateY(-2px);
  box-shadow: var(--he-shadow-lg);
}

.he-btn--dark {
  width: 100%;
  background: var(--he-slate-950);
  color: var(--he-white);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  box-shadow: var(--he-shadow-md);
}

.he-btn--dark:hover {
  background: var(--he-slate-900);
  transform: translateY(-2px);
  box-shadow: var(--he-shadow-lg);
}

.he-btn--block { width: 100%; }

.he-btn--pulse .he-icon { animation: he-pulse 2s infinite; }

@keyframes he-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Logo */
.he-logo { display: inline-flex; align-items: center; height: 2.5rem; }
.he-logo img { height: 100%; width: auto; object-fit: contain; }

@media (min-width: 640px) {
  .he-logo { height: 3rem; }
}

/* Header */
.he-site-header-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  box-shadow: var(--he-shadow-sm);
}

.he-site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--he-slate-300);
}

.he-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--he-header-h);
  padding: 0 1rem;
}

@media (min-width: 640px) { .he-header-inner { padding: 0 2rem; } }
@media (min-width: 768px) { .he-header-inner { padding: 0 3rem; } }
@media (min-width: 1024px) { .he-header-inner { padding: 0 4rem; } }
@media (min-width: 1280px) { .he-header-inner { padding: 0 6rem; } }

.he-nav-desktop { display: none; align-items: center; gap: 1.5rem; }

@media (min-width: 1024px) {
  .he-nav-desktop { display: flex; }
}

.he-nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--he-slate-700);
  transition: color var(--he-transition);
}

.he-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--he-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.he-nav-link:hover,
.he-nav-link.is-active { color: var(--he-primary); }

.he-nav-link:hover::after,
.he-nav-link.is-active::after { transform: scaleX(1); }

.he-nav-cta { margin-left: 0.5rem; padding: 0.625rem 1.5rem; border-radius: 0.375rem; }

.he-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--he-slate-600);
  border-radius: 0.375rem;
  cursor: pointer;
}

.he-mobile-menu-btn:hover { color: var(--he-slate-900); }
.he-mobile-menu-btn:focus-visible { outline: 2px solid var(--he-primary); outline-offset: 2px; }

.he-mobile-menu-btn .he-icon-close { display: none; }
.he-site-header.is-menu-open .he-mobile-menu-btn .he-icon-menu { display: none; }
.he-site-header.is-menu-open .he-mobile-menu-btn .he-icon-close { display: block; }

@media (min-width: 1024px) {
  .he-mobile-menu-btn { display: none; }
}

.he-mobile-drawer {
  overflow: hidden;
  background: var(--he-white);
  border-top: 1px solid var(--he-slate-300);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
  max-height: 0;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.he-site-header.is-menu-open .he-mobile-drawer {
  max-height: 600px;
  opacity: 1;
}

.he-mobile-drawer[hidden] { display: block; }

.he-mobile-drawer-inner { padding: 0.5rem 1rem 1.5rem; }

.he-mobile-drawer-label {
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--he-slate-200);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--he-slate-400);
}

.he-mobile-nav-link {
  display: block;
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--he-slate-700);
  transition: background var(--he-transition), color var(--he-transition);
}

.he-mobile-nav-link:hover,
.he-mobile-nav-link.is-active {
  background: #fef2f2;
  color: var(--he-primary);
}

.he-mobile-drawer-phone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--he-slate-300);
}

.he-phone-label { display: flex; flex-direction: column; text-align: left; margin-left: 0.75rem; }
.he-phone-label-sub { font-size: 0.6875rem; line-height: 1.2; }
.he-phone-label-num { font-size: 1rem; line-height: 1.2; }

/* Footer */
.he-site-footer {
  background: var(--he-slate-950);
  border-top: 1px solid var(--he-slate-900);
  color: var(--he-slate-400);
  padding: 3rem 0 1.5rem;
}

.he-footer-inner {
  padding: 0 1rem;
}

@media (min-width: 640px) { .he-footer-inner { padding: 0 2rem; } }
@media (min-width: 768px) { .he-footer-inner { padding: 0 3rem; } }
@media (min-width: 1024px) { .he-footer-inner { padding: 0 4rem; } }
@media (min-width: 1280px) { .he-footer-inner { padding: 0 6rem; } }

.he-footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--he-slate-900);
}

@media (min-width: 1024px) {
  .he-footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
  }
}

.he-footer-desc {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.75;
  color: var(--he-slate-400);
}

@media (min-width: 640px) { .he-footer-desc { font-size: 1rem; } }

.he-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .he-footer-contact { flex-direction: row; gap: 2rem; }
}

@media (min-width: 1024px) { .he-footer-contact { gap: 3rem; } }

.he-footer-contact-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: var(--he-white);
}

.he-footer-contact-item p { margin: 0; font-size: 0.8125rem; color: #cbd5e1; }
@media (min-width: 640px) { .he-footer-contact-item p { font-size: 1rem; } }

.he-footer-contact-item a:hover { color: var(--he-white); }

.he-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--he-slate-500);
}

@media (min-width: 640px) { .he-footer-bottom { padding-top: 3rem; gap: 1rem; } }

.he-footer-link {
  font-weight: 700;
  color: var(--he-slate-400);
  transition: color var(--he-transition);
}

.he-footer-link:hover { color: var(--he-white); }

.he-footer-copy { margin: 0; font-weight: 700; }

/* Page hero (subpages) */
.he-page-hero {
  position: relative;
  background: var(--he-primary);
  color: var(--he-white);
  padding: 3rem 0;
  overflow: hidden;
}

@media (min-width: 640px) { .he-page-hero { padding: 8rem 0; } }

.he-page-hero__marquee {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.he-page-hero__marquee-track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: he-marquee 30s linear infinite;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
  line-height: 1;
}

.he-page-hero__marquee-track span { padding-right: 4rem; }

@keyframes he-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.he-page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.25));
  pointer-events: none;
  z-index: 1;
}

.he-page-hero__content { position: relative; z-index: 2; max-width: 56rem; }

.he-page-hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.075em;
}

.he-page-hero__desc {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
  color: rgba(254, 226, 226, 0.95);
}

@media (min-width: 640px) { .he-page-hero__desc { font-size: 1.125rem; } }

/* Contact section (shared) */
.he-contact-section {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--he-slate-300);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .he-contact-section { flex-direction: row; align-items: stretch; }
}

.he-contact-section__visual {
  position: relative;
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .he-contact-section__visual { width: 50%; min-height: auto; padding: 4rem 5rem; }
}

.he-contact-section__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.he-contact-section__visual-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(220, 38, 38, 0.15);
  background-image:
    linear-gradient(
      to top,
      rgba(153, 27, 27, 0.6),
      rgba(220, 38, 38, 0.35),
      transparent
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.2),
      transparent 60%
    );
  }

.he-contact-section__visual-content {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  width: 100%;
  text-align: center;
}

@media (min-width: 1024px) { .he-contact-section__visual-content { text-align: left; } }

.he-contact-section__title {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--he-white);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.he-contact-section__text {
  margin: 0;
  color: var(--he-white);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.75;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.he-contact-section__actions {
  width: 100%;
  background: var(--he-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) { .he-contact-section__actions { width: 50%; padding: 4rem 5rem; } }

.he-contact-section__actions::before,
.he-contact-section__actions::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.he-contact-section__actions::before { right: -3rem; bottom: -3rem; background: rgba(239,68,68,0.1); }
.he-contact-section__actions::after { left: -3rem; top: -3rem; background: rgba(255,255,255,0.05); }

.he-contact-section__actions-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
}

.he-contact-section__block { margin-bottom: 1.5rem; }
.he-contact-section__block:last-child { margin-bottom: 0; }

.he-contact-section__block-heading {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  color: var(--he-white);
}

.he-contact-section__block-heading h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) { .he-contact-section__block-heading h3 { font-size: 1.25rem; } }

.he-contact-section__divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.5rem 0;
}

.he-contact-section__note {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(254, 226, 226, 0.5);
}

@media (min-width: 640px) { .he-contact-section__note { font-size: 0.6875rem; } }

/* Service area (shared) */
.he-service-area {
  background: var(--he-white);
  position: relative;
  overflow: hidden;
}

.he-service-area::after {
  content: "";
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(254, 226, 226, 0.1);
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

.he-service-area__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.he-area-card {
  background: var(--he-white);
  border: 1px solid var(--he-slate-300);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--he-shadow-sm);
}

@media (min-width: 640px) { .he-area-card { padding: 2rem; } }

.he-area-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.he-area-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.he-area-card__title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--he-slate-900);
}

@media (min-width: 640px) { .he-area-card__title h3 { font-size: 1.5rem; } }

.he-area-card__tag {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--he-primary);
  background: var(--he-white);
  border: 1px solid #fecaca;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

.he-area-card__label {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--he-slate-400);
}

.he-area-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.he-area-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--he-slate-600);
}

.he-area-card__list li:last-child { margin-bottom: 0; }

/* Animations */
.he-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

.he-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.he-animate--fade-left {
  transform: translateX(30px);
}

.he-animate--fade-left.is-visible {
  transform: translateX(0);
}

.he-animate--scale {
  transform: scale(0.95);
}

.he-animate--scale.is-visible {
  transform: scale(1);
}

/* Subpage layout */
.he-subpage { background: var(--he-slate-200); min-height: 100vh; }

.he-page-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 900;
  color: var(--he-slate-900);
}

.he-content { line-height: 1.8; }

/* CF7 form style hooks */
.he-form .wpcf7-form { margin: 0; }

.he-form .he-form-group,
.he-form .wpcf7-form p { margin-bottom: 1.5rem; }

.he-form .he-form-group > label,
.he-form .wpcf7-form label { display: block; font-size: 0.875rem; font-weight: 900; color: var(--he-slate-900); margin-bottom: 0.5rem; }

.he-form .he-required { color: #ef4444; font-weight: 700; margin-left: 0.25rem; }
.he-form .he-optional { color: var(--he-slate-400); font-weight: 500; font-size: 0.75rem; }

.he-form .he-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

.he-form .he-form-grid .he-form-group { margin-bottom: 0; }

.he-form .he-form-agreement {
  padding: 1rem;
  background: rgba(254, 242, 242, 0.5);
  border: 1px solid #fecaca;
  border-radius: 0.75rem;
}

.he-form .he-form-agreement label,
.he-form .wpcf7-form .he-form-agreement .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .he-form .he-form-agreement label,
  .he-form .wpcf7-form .he-form-agreement .wpcf7-list-item label { font-size: 0.875rem; }
}

.he-form .he-form-agreement a { color: var(--he-primary); }
.he-form .he-form-agreement a:hover { text-decoration: underline; }

.he-form .wpcf7-form .wpcf7-list-item { margin: 0; }

.he-form .wpcf7-form input[type="text"],
.he-form .wpcf7-form input[type="email"],
.he-form .wpcf7-form input[type="tel"],
.he-form .wpcf7-form input[type="url"],
.he-form .wpcf7-form select,
.he-form .wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--he-slate-200);
  border: 1px solid var(--he-slate-300);
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--he-slate-900);
  transition: box-shadow var(--he-transition), background var(--he-transition);
  box-sizing: border-box;
}

.he-form .wpcf7-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath fill='%2364748b' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.he-form .wpcf7-form input:focus,
.he-form .wpcf7-form select:focus,
.he-form .wpcf7-form textarea:focus {
  outline: none;
  background: var(--he-white);
  box-shadow: 0 0 0 2px var(--he-primary);
}

.he-form .wpcf7-form .wpcf7-not-valid {
  border-color: #ef4444;
}

.he-form .wpcf7-form .wpcf7-not-valid:focus {
  box-shadow: 0 0 0 2px #ef4444;
}

.he-form .wpcf7-form .wpcf7-form-control-wrap .wpcf7-not-valid-tip {
  color: #ef4444;
}

.he-form .wpcf7-form input[type="submit"],
.he-form .wpcf7-form .wpcf7-submit {
  width: 100%;
  padding: 1rem;
  background: var(--he-primary);
  color: var(--he-white);
  border: none;
  border-radius: 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(211, 15, 21, 0.1);
  transition: background var(--he-transition);
}

.he-form .wpcf7-form input[type="submit"]:hover,
.he-form .wpcf7-form .wpcf7-submit:hover { background: var(--he-primary-hover); }

/* CF7 response output (sibling of form in CF7 5.x) */
.he-form .wpcf7 .wpcf7-response-output {
  display: none;
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.he-form .wpcf7.sent .wpcf7-response-output {
  display: block;
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.he-form .wpcf7.invalid .wpcf7-response-output,
.he-form .wpcf7.unaccepted .wpcf7-response-output,
.he-form .wpcf7.failed .wpcf7-response-output,
.he-form .wpcf7 form.invalid .wpcf7-response-output,
.he-form .wpcf7 form.unaccepted .wpcf7-response-output,
.he-form .wpcf7 form.failed .wpcf7-response-output {
  display: block;
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* Field-level validation tips */
.he-form .wpcf7 .wpcf7-not-valid-tip {
  display: none;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
  color: #ef4444;
}

.he-form .wpcf7.invalid .wpcf7-not-valid-tip,
.he-form .wpcf7 form.invalid .wpcf7-not-valid-tip,
.he-form .wpcf7.unaccepted .wpcf7-not-valid-tip {
  display: block;
}

.he-form .wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.he-form .wpcf7 .screen-reader-response {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
}

.he-form .wpcf7-spinner { margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .he-animate { opacity: 1; transform: none; transition: none; }
  .he-page-hero__marquee-track { animation: none; }
  .he-btn--pulse .he-icon { animation: none; }
}
