/* ============================================
   SMITHDIGITAL — Contact Page Styles
   ============================================ */

/* ── PAGE HEADER ──
   Transparent so site-bg (dark grid) shows through.
   Sits below the fixed nav. */
.contact-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  position: relative;
  z-index: 2;
  overflow: hidden; /* contains the particle canvas */
}

/* Particle canvas — same setup as homepage hero */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(168, 199, 255, 0.85);
  margin-bottom: 1.25rem;
}

.contact-hero__label-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  flex-shrink: 0;
}

.contact-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.contact-hero__title em {
  font-style: italic;
  color: rgba(168, 199, 255, 0.9);
}

.contact-hero__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 480px;
  line-height: 1.7;
}

/* ── CONTACT SECTION ──
   White panel that slides over the dark hero. */
.contact-section {
  background: var(--white);
  position: relative;
  z-index: 3;
  padding: 80px 0 100px;
}

/* ── SPLIT GRID ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

/* ────────────────────────────────────────
   FORM
───────────────────────────────────────── */
.contact__form-wrap {}

.contact__form-heading {
  font-size: 1.55rem;
  font-weight: var(--fw-bold);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.contact__form-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

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

/* Two-column row for pairs of short fields */
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__label {
  font-size: 0.82rem;
  font-weight: var(--fw-semi);
  color: var(--text);
  letter-spacing: 0.01em;
}

.contact-form__label span {
  color: var(--text-muted);
  font-weight: var(--fw-regular);
  font-size: 0.78rem;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #c0c6d3;
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 77, 181, 0.1);
}

/* Select arrow */
.contact-form__select-wrap {
  position: relative;
}
.contact-form__select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}
.contact-form__select {
  padding-right: 2.5rem;
  cursor: pointer;
}
.contact-form__select option { color: var(--text); }

/* Textarea */
.contact-form__textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* Submit row */
.contact-form__submit-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.contact-form__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: var(--fw-semi);
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.contact-form__submit:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 77, 181, 0.35);
}
.contact-form__submit svg {
  transition: transform var(--duration) var(--ease);
}
.contact-form__submit:hover svg {
  transform: translateX(3px);
}

/* Success state */
.contact-form__success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #166534;
  font-weight: var(--fw-medium);
  margin-top: 0.5rem;
}
.contact-form__success.is-visible { display: flex; }

/* ────────────────────────────────────────
   INFO PANEL (right column)
───────────────────────────────────────── */
.contact__info {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.contact__info-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 2.25rem;
  color: var(--white);
}

.contact__info-card-label {
  font-size: 0.72rem;
  font-weight: var(--fw-semi);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(168, 199, 255, 0.7);
  margin-bottom: 1.75rem;
}

/* Status badge */
.contact__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: var(--fw-medium);
  color: #86efac;
  margin-bottom: 1.75rem;
}
.contact__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Detail rows */
.contact__detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2rem;
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.contact__detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(168, 199, 255, 0.85);
  flex-shrink: 0;
  margin-top: 1px;
}
.contact__detail-content {}
.contact__detail-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.contact__detail-value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}
.contact__detail-value a {
  color: #7eb8ff;
  transition: color var(--duration);
}
.contact__detail-value a:hover { color: var(--white); }

/* Divider */
.contact__info-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 1.75rem 0;
}

/* Trust stats */
.contact__trust {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact__trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.contact__trust-item svg {
  color: #4ade80;
  flex-shrink: 0;
}

/* ────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

/* Tablet — narrow the info panel */
@media (max-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
  }
}

/* Mobile — stack to single column */
@media (max-width: 768px) {
  .contact-hero {
    padding: calc(var(--nav-h) + 48px) 0 40px;
  }
  .contact-hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .contact-section {
    padding: 60px 0 80px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Info card moves above the form on mobile */
  .contact__info {
    position: static;
    order: -1;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-form__submit-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .contact-hero__title { font-size: clamp(1.8rem, 9vw, 2.4rem); }

  .contact-form { padding: 1.75rem 1.5rem; }

  /* Submit button full width on small phones */
  .contact-form__submit-row .btn { width: 100%; justify-content: center; }

  /* Info items tighter */
  .contact-info-card { padding: 1.5rem; }
}
