/* ═══════════════════════════════════════════════════════════════════════════
   PGI-Data — Contact Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Active nav CTA (on contact page itself) ─────────────────────────────── */
.nav__active-cta {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

/* ── Contact hero — network graph animation ──────────────────────────────── */
.contact-ambient {
  position: relative;
}

/* SVG fills the ambient area */
.cnet__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Connection lines — drawn with stroke-dasharray animation */
.cnet__line {
  stroke: rgba(0, 200, 255, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 1.8s ease forwards;
}

.cnet__line--1 { animation-delay: 0.2s; }
.cnet__line--2 { animation-delay: 0.4s; }
.cnet__line--3 { animation-delay: 0.6s; }
.cnet__line--4 { animation-delay: 0.8s; }
.cnet__line--5 { animation-delay: 1.0s; }
.cnet__line--6 { animation-delay: 1.2s; stroke: rgba(0,200,255,0.12); }
.cnet__line--7 { animation-delay: 1.4s; stroke: rgba(0,200,255,0.12); }
.cnet__line--8 { animation-delay: 1.6s; stroke: rgba(0,200,255,0.12); }

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Travelling pulse dots along lines — use SMIL animateMotion */
.cnet__pulse--1 {
  opacity: 0;
  animation: pulseAppear 0.3s ease 2s forwards;
}
.cnet__pulse--2 {
  opacity: 0;
  animation: pulseAppear 0.3s ease 2.4s forwards;
}
.cnet__pulse--3 {
  opacity: 0;
  animation: pulseAppear 0.3s ease 2.8s forwards;
}

@keyframes pulseAppear {
  to { opacity: 1; }
}

/* Network nodes — positioned absolutely over the SVG */
.cnet__node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cnet__node-dot {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.7);
  animation: nodePulse 2.5s ease-in-out infinite;
}

.cnet__node--hub .cnet__node-dot {
  width: 16px;
  height: 16px;
  background: var(--white);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.9);
}

/* Expanding ring on the hub node */
.cnet__node-ring {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(0, 200, 255, 0.4);
  border-radius: 50%;
  animation: hubRing 2.5s ease-out infinite;
}

@keyframes hubRing {
  0%   { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0;   }
}

.cnet__node-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  animation: nodeFadeIn 0.5s ease backwards;
}

.cnet__node--hub .cnet__node-label {
  color: var(--cyan);
  font-weight: 600;
  font-size: 12px;
}

.cnet__node--1 .cnet__node-label { animation-delay: 0.8s; }
.cnet__node--2 .cnet__node-label { animation-delay: 1.0s; }
.cnet__node--3 .cnet__node-label { animation-delay: 1.2s; }
.cnet__node--4 .cnet__node-label { animation-delay: 1.4s; }
.cnet__node--5 .cnet__node-label { animation-delay: 1.6s; }

@keyframes nodePulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(1.35); opacity: 0.7; }
}

@keyframes nodeFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ── Offices section ─────────────────────────────────────────────────────── */
.offices-section {
  background: var(--white);
  padding: var(--section-pad);
}

.offices-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.offices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 960px) { .offices-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offices-grid { grid-template-columns: 1fr; } }

.office-card {
  background: var(--blue-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}

.office-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 171, 0.08);
  transform: translateY(-2px);
}

.office-card__icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 171, 0.07);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 8px;
}

.office-card__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.office-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.office-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
}

.office-card p a {
  color: var(--blue-mid);
  display: block;
}

.office-card p a:hover {
  color: var(--blue);
}

.office-card__map {
  font-size: 12px;
  font-weight: 500;
  color: var(--blue-mid);
  margin-top: 8px;
  transition: color var(--transition);
}

.office-card__map:hover {
  color: var(--blue);
}

.office-card__response {
  font-size: 12px !important;
  color: var(--ink-light) !important;
  font-style: italic;
  margin-top: 4px !important;
}

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

.contact-form-section__inner {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form-section__header {
  margin-bottom: 48px;
}

.contact-form-section__header h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.contact-form-section__header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

/* ── Form layout ─────────────────────────────────────────────────────────── */
.cform {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cform__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.cform__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cform__group label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.2px;
}

.required { color: var(--cyan); }

.cform__group input,
.cform__group select,
.cform__group textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  width: 100%;
  transition: border-color var(--transition), background var(--transition);
}

.cform__group input::placeholder,
.cform__group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cform__group select {
  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 fill='rgba(255,255,255,0.5)' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.cform__group select option {
  background: var(--dark-bg-2);
  color: var(--white);
}

.cform__group input:focus,
.cform__group select:focus,
.cform__group textarea:focus {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.12);
}

.cform__group input.is-invalid,
.cform__group select.is-invalid,
.cform__group textarea.is-invalid {
  border-color: #F87171;
}

.cform__error {
  font-size: 12px;
  color: #F87171;
  min-height: 16px;
}

.cform__group textarea {
  resize: vertical;
  min-height: 130px;
}

/* hCaptcha wrapper */
.h-captcha {
  margin-top: 4px;
}

/* ── Status messages ─────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

.cform__status {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.cform__status:not([hidden]) { display: flex; }

.cform__status--success {
  background: rgba(8, 80, 65, 0.3);
  border: 1px solid rgba(8, 80, 65, 0.5);
  color: #6EE7B7;
}

.cform__status--success svg { color: #6EE7B7; flex-shrink: 0; margin-top: 2px; }
.cform__status--success strong { display: block; margin-bottom: 4px; }
.cform__status--success p { margin: 0; opacity: 0.85; }

.cform__status--error {
  background: rgba(120, 30, 30, 0.3);
  border: 1px solid rgba(120, 30, 30, 0.5);
  color: #FCA5A5;
}

.cform__status--error svg { color: #FCA5A5; flex-shrink: 0; margin-top: 2px; }
.cform__status--error strong { display: block; margin-bottom: 4px; }
.cform__status--error p { margin: 0; opacity: 0.85; }
.cform__status--error a { color: var(--cyan); }

/* ── Submit row ──────────────────────────────────────────────────────────── */
.cform__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.cform .btn-submit {
  background: var(--cyan);
  color: var(--dark-bg);
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--transition), transform var(--transition);
}

.cform .btn-submit:hover:not(:disabled) {
  background: #00DEFF;
  transform: translateY(-1px);
}

.cform .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cform__privacy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.cform__privacy a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .offices-section       { padding: var(--section-pad-sm); }
  .contact-form-section  { padding: var(--section-pad-sm); }
}
