/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
  padding-top: var(--nav-height);
  min-height: 100svh;
}

/* ── Contact Hero ── */
.contact-hero {
  padding: var(--space-24) 0 var(--space-16);
  text-align: center;
  max-width: 640px;   /* fixed: was fit-content which clips on mobile */
  margin: 0 auto;
}

.contact-hero__eyebrow {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.contact-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 6vw, var(--text-4xl));
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
}

.contact-hero__body {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-md));
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Contact Layout ── */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-16);
  align-items: start;
  padding-bottom: var(--space-32);
}

/* ── Form ── */
.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  outline: none;
  transition: border-color var(--dur-fast),
              box-shadow var(--dur-fast),
              background var(--dur-fast);
  -webkit-appearance: none;
  appearance: none;
  cursor: text;  /* fixed: was cursor:none which breaks usability */
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Error state */
.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--color-error);
  background: var(--color-error-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  cursor: text;
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}
.form-select option {
  background: var(--color-bg-card);
  color: var(--color-text-primary);
}

/* First/Last name row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Submit button */
.form-submit {
  width: 100%;
  padding: 16px;
  min-height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform var(--dur-normal) var(--ease-spring),
              box-shadow var(--dur-normal),
              background var(--dur-fast);
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12);
}
.form-submit:active      { transform: translateY(0); }
.form-submit:disabled    { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-submit:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Success state */
.form-submit--success {
  background: var(--color-accent);
  color: var(--color-black);
}

/* Live region for screen readers */
#form-status {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-3);
  min-height: 20px;
  line-height: var(--leading-relaxed);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* ── Contact Sidebar ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-8));
}

.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--dur-normal);
}
.contact-info-card:hover { border-color: var(--color-border-hover); }

.contact-info-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}
.contact-info-card__sub {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  word-break: break-all;
  transition: color var(--dur-fast),
              border-color var(--dur-fast),
              background var(--dur-fast),
              transform var(--dur-fast);
}
.contact-link:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-hover);
  background: var(--color-surface);
  transform: translateX(4px);
}
.contact-link__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(0, 217, 126, 0.06);
  border: 1px solid rgba(0, 217, 126, 0.15);
  border-radius: var(--radius-md);
  margin-top: var(--space-4);
}
.contact-availability-dot {
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
.contact-availability-text {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

/* ── Responsive Contact ── */
@media (max-width: 1024px) {
  .contact-body { grid-template-columns: 1fr 340px; gap: var(--space-10); }
}
@media (max-width: 768px) {
  .contact-body  { grid-template-columns: 1fr; gap: var(--space-8); }
  .contact-info  { position: static; }
  .contact-hero  { padding: var(--space-16) 0 var(--space-10); max-width: 100%; }
}
@media (max-width: 480px) {
  .contact-form  { padding: var(--space-6); }
  .form-row      { grid-template-columns: 1fr; }
  .contact-hero__headline { font-size: var(--text-2xl); }
}
