/* ============================================================
   Contact — page.css
   Extends ../style.css
   ============================================================ */

/* ── Service hero (self-contained — does not inherit ecommerce-consulting/page.css) */
.svc-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding-top: 4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.svc-hero-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.svc-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-example-img {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: center;
}

.hero-example-img img {
  width: 100%;
  height: auto;
  display: block;
}

#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.svc-hero-h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-size: clamp(2rem, min(4.5vw, 8svh), 3.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.15;
  margin: 0.375rem 0 0.5rem;
}

.svc-hero-sub {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.svc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}

.svc-bc-home {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s;
}

.svc-bc-home:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.svc-bc-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.875rem;
  background: var(--accent);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
  white-space: nowrap;
}

.svc-bc-arrow {
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.8;
}

.hero-price-block {
  margin: 0.25rem 0 0.875rem;
}

.hero-price-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.nav-dropdown a.nav-active {
  color: var(--accent);
}


/* ── Contact form section ──────────────────────────────────── */
.contact-form-section {
  background: var(--surface);
}

.contact-form-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 5rem;
  align-items: start;
}

.send-panel-wrap {
  position: sticky;
  top: 5.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.form-section-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.form-label .req {
  color: var(--accent);
  margin-left: 0.2rem;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  padding: 0.875rem 1.125rem;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
  opacity: 0.55;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a9e' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--surface2);
  color: var(--text);
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  cursor: pointer;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.form-fine {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.65;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  display: none;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.form-message.visible {
  display: block;
}


/* ── Send info panel ────────────────────────────────────────── */
.send-panel {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 2rem;
}

.send-panel-label {
  display: block;
  font-size: 0.575rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.375rem;
}

.send-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.send-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.send-panel-list li::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.65em;
}

.send-panel-hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.send-panel-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
}

.send-panel-note a {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}


/* ── What Happens Next ──────────────────────────────────────── */
.next-section {
  background: var(--bg);
}

.next-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.next-step {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
}

.next-step:last-child {
  border-right: none;
}

.next-step-num {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.next-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.next-step-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.85;
}


/* ── Common Reasons ─────────────────────────────────────────── */
.reasons-section {
  background: var(--surface);
}

.reasons-head {
  margin-bottom: 3.5rem;
  max-width: 640px;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.reason-card {
  background: var(--surface);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
}

.reason-card:hover {
  background: var(--surface2);
}

.reason-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.reason-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}


/* ── Service Routing ────────────────────────────────────────── */
.routing-section {
  background: var(--surface2);
}

.routing-head {
  margin-bottom: 3rem;
  max-width: 640px;
}

.routing-intro {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 0.75rem;
}

.routing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.routing-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 1.625rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.2s, background 0.2s;
  color: var(--white);
  -webkit-text-fill-color: var(--white);
}

.routing-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: var(--bg);
}

.routing-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.routing-card-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  -webkit-text-fill-color: var(--accent);
}

.routing-card:hover .routing-card-arrow {
  transform: translateX(4px);
}


/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .svc-hero-inner {
    display: block;
  }

  .hero-example-img {
    display: none;
  }
}

@media (max-width: 1100px) {
  .contact-form-layout {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }

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

  .next-step:nth-child(2) {
    border-right: none;
  }

  .next-step:nth-child(3),
  .next-step:nth-child(4) {
    border-top: 1px solid var(--border);
  }

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

@media (max-width: 900px) {
  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .send-panel-wrap {
    position: static;
  }

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

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

  .next-grid {
    grid-template-columns: 1fr;
  }

  .next-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .next-step:last-child {
    border-bottom: none;
  }

  .next-step:nth-child(3),
  .next-step:nth-child(4) {
    border-top: none;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
  }

  .routing-grid {
    grid-template-columns: 1fr;
  }
}
