/* ==========================================================================
   Nexus — Contact page
   ========================================================================== */

.contact-page {
  --ct-radius: var(--nx-radius-lg);
  --ct-gap: clamp(32px, 5vw, 56px);
  background: var(--nx-white);
}

.ct-section {
  padding: clamp(56px, 8vw, 80px) 0;
}

.ct-main {
  background: var(--nx-white);
}

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--ct-gap);
  align-items: start;
}

/* ---- Info column ---- */
.ct-info__head {
  max-width: 34rem;
  margin-bottom: 28px;
}

.ct-info__head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.625rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--nx-navy);
}

.ct-info__head p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--nx-muted);
}

.ct-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 18px;
}

.ct-card svg {
  flex-shrink: 0;
  color: var(--nx-navy);
}

.ct-card p,
.ct-card a {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--nx-navy);
}

.ct-card a {
  font-weight: 600;
  text-decoration: none;
}

.ct-card a:hover {
  color: var(--nx-navy-light);
}

.ct-support-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(5, 48, 92, 0.14);
  border-radius: var(--nx-radius);
  background: #eef4fb;
}

.ct-support-note p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--nx-muted);
}

.ct-support-note strong {
  color: var(--nx-navy);
}

/* ---- Form panel ---- */
.ct-form-panel {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--nx-border);
  border-radius: var(--ct-radius);
  background: var(--nx-white);
  box-shadow: var(--nx-shadow);
}

.ct-form-panel__head {
  margin-bottom: 24px;
}

.ct-form-panel__head h2 {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nx-navy);
}

.ct-form-panel__head p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--nx-muted);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  margin-bottom: 18px;
}

.form-row .form-field {
  margin-bottom: 0;
}

.form-row + .form-field {
  margin-top: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--nx-navy);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-sm);
  background: var(--nx-white);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--nx-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
  min-height: 148px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #94a3b8;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--nx-navy);
  box-shadow: 0 0 0 3px rgba(5, 48, 92, 0.12);
}

.contact-form__submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
  border-radius: 999px;
}

/* Solid buttons on contact page (no gradients) */
.contact-page .btn-primary {
  background: var(--nx-navy);
  border: 1px solid var(--nx-navy);
  box-shadow: none;
}

.contact-page .btn-primary:hover {
  background: var(--nx-navy-light);
  border-color: var(--nx-navy-light);
  box-shadow: none;
}

.contact-page .btn-primary:focus-visible {
  outline: 2px solid var(--nx-navy);
  outline-offset: 3px;
}

.contact-page .btn-ghost {
  border-radius: 999px;
}

.contact-page .btn-ghost:hover {
  background: #eef4fb;
}

/* ---- Map section ---- */
.ct-map-section {
  background: #f4f6f9;
  border-top: 1px solid var(--nx-border);
}

.ct-map__head {
  max-width: 40rem;
  margin-bottom: 28px;
}

.ct-map__head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--nx-navy);
}

.ct-map__head p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--nx-muted);
}

.ct-map {
  overflow: hidden;
  border: 1px solid var(--nx-border);
  border-radius: var(--ct-radius);
  background: #dbe4ee;
  aspect-ratio: 21 / 9;
  min-height: 280px;
  box-shadow: var(--nx-shadow);
}

.ct-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.ct-map__actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.ct-map__directions {
  min-width: 10rem;
  justify-content: center;
}

/* ---- Notifications ---- */
.contact-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: var(--nx-radius);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--nx-shadow-lg);
  animation: ct-slide-in 0.3s ease-out;
}

.contact-notification.success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.contact-notification.error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

@keyframes ct-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes ct-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .ct-grid {
    grid-template-columns: 1fr;
  }

  .ct-form-panel {
    order: 2;
  }
}

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

  .form-row .form-field {
    margin-bottom: 18px;
  }

  .form-row .form-field:last-child {
    margin-bottom: 0;
  }

  .form-row + .form-field {
    margin-top: 18px;
  }

  .ct-map {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .ct-form-panel {
    padding: 22px 18px;
  }

  .ct-card {
    padding: 10px 18px;
  }

  .form-field input,
  .form-field textarea {
    font-size: 16px;
  }
}
