/* ==========================================================================
   Contact Page - Modern SaaS Style
   ========================================================================== */

.pd-contact {
  padding: 60px 20px 100px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  min-height: calc(100vh - 200px);
}

.pd-contact__container {
  max-width: 760px;
  margin: 0 auto;
}

/* Header */
.pd-contact__header {
  text-align: center;
  margin-bottom: 40px;
}

.pd-contact__title {
  color: #1e293b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.pd-contact__subtitle {
  color: #64748b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0;
}

/* Card Container */
.pd-contact__card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
  padding: 40px;
}

/* Contact Methods */
.pd-contact__methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.pd-contact__method {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pd-contact__method:hover {
  background: #f1f5f9;
}

.pd-contact__method-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3b82f6;
  color: #fff;
  border-radius: 12px;
}

.pd-contact__method-content {
  flex: 1;
  min-width: 0;
}

.pd-contact__method-title {
  color: #1e293b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.pd-contact__method-desc {
  color: #64748b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  margin: 0 0 12px;
}

/* CTA Button */
.pd-contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.pd-contact__cta--primary {
  background: #3b82f6;
  color: #fff;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
}

.pd-contact__cta--primary:hover,
.pd-contact__cta--primary:focus {
  background: #2563eb;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25), 0 8px 16px rgba(59, 130, 246, 0.2);
}

.pd-contact__cta--primary:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Address */
.pd-contact__address {
  color: #334155;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.5;
  margin: 0 0 12px;
}

.pd-contact__map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3b82f6;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.pd-contact__map-link:hover,
.pd-contact__map-link:focus {
  color: #2563eb;
  text-decoration: underline;
}

.pd-contact__map-link:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Divider */
.pd-contact__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  color: #94a3b8;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
}

.pd-contact__divider::before,
.pd-contact__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Form */
.pd-contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pd-contact__form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pd-contact__form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-contact__label {
  color: #334155;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
}

.pd-contact__required {
  color: #ef4444;
}

.pd-contact__input,
.pd-contact__select,
.pd-contact__textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #1e293b;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.pd-contact__input:hover,
.pd-contact__select:hover,
.pd-contact__textarea:hover {
  border-color: #94a3b8;
}

.pd-contact__input:focus,
.pd-contact__select:focus,
.pd-contact__textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pd-contact__input--error,
.pd-contact__select--error,
.pd-contact__textarea--error,
.pd-contact__input[aria-invalid="true"],
.pd-contact__select[aria-invalid="true"],
.pd-contact__textarea[aria-invalid="true"] {
  border-color: #ef4444;
}

.pd-contact__input--error:focus,
.pd-contact__select--error:focus,
.pd-contact__textarea--error:focus,
.pd-contact__input[aria-invalid="true"]:focus,
.pd-contact__select[aria-invalid="true"]:focus,
.pd-contact__textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.pd-contact__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 44px;
  cursor: pointer;
}

.pd-contact__textarea {
  resize: vertical;
  min-height: 120px;
}

.pd-contact__textarea::placeholder {
  color: #94a3b8;
}

/* Checkbox */
.pd-contact__form-group--checkbox {
  margin-top: 4px;
}

.pd-contact__checkbox-label {
  display: flex;
  gap: 12px;
  cursor: pointer;
  min-height: 44px;
  align-items: flex-start;
  padding: 8px 0;
}

.pd-contact__checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.pd-contact__checkbox:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.pd-contact__checkbox-text {
  color: #475569;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

.pd-contact__checkbox-text a {
  color: #3b82f6;
  text-decoration: underline;
}

.pd-contact__checkbox-text a:hover {
  color: #2563eb;
}

/* Error Message */
.pd-contact__error {
  color: #ef4444;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pd-contact__error--visible {
  opacity: 1;
  min-height: auto;
}

/* Submit Button */
.pd-contact__form-actions {
  margin-top: 8px;
}

.pd-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 14px 32px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #3b82f6;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.2), 0 4px 12px rgba(59, 130, 246, 0.15);
}

.pd-contact__submit:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25), 0 8px 20px rgba(59, 130, 246, 0.2);
}

.pd-contact__submit:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.pd-contact__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pd-contact__submit--loading .pd-contact__submit-text {
  display: none;
}

.pd-contact__submit-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

.pd-contact__submit--loading .pd-contact__submit-loading {
  display: flex;
}

.pd-contact__spinner {
  animation: pd-spin 1s linear infinite;
}

@keyframes pd-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Form Status */
.pd-contact__form-status {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-radius: 10px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 8px;
}

.pd-contact__form-status--success,
.pd-contact__form-status--error {
  display: flex;
}

.pd-contact__form-status--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.pd-contact__form-status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.pd-contact__form-status svg {
  flex-shrink: 0;
}

/* Privacy Note */
.pd-contact__privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.pd-contact__privacy-note svg {
  flex-shrink: 0;
  color: #94a3b8;
}

/* Screen Reader Only */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Directional Info Note (above message field)
   Calmer guidance for users looking for practitioners
   ========================================================================== */
.pd-contact__info-note {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 20px;
}

.pd-contact__info-note svg {
  flex-shrink: 0;
  color: #64748b;
  margin-top: 2px;
}

.pd-contact__info-note-content {
  flex: 1;
}

.pd-contact__info-note-content strong {
  display: block;
  color: #334155;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pd-contact__info-note-content p {
  color: #64748b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

.pd-contact__info-link {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.pd-contact__info-link:hover,
.pd-contact__info-link:focus {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  text-decoration: none;
}

/* ==========================================================================
   Support Notice (below message field)
   Subtle, non-alarmist safety information
   ========================================================================== */
.pd-contact__support-notice {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pd-contact__support-notice svg {
  flex-shrink: 0;
  color: #94a3b8;
  margin-top: 1px;
}

.pd-contact__support-notice-content {
  flex: 1;
}

.pd-contact__support-notice-content strong {
  display: block;
  color: #475569;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.pd-contact__support-notice-content p {
  color: #64748b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  line-height: 1.55;
  margin: 0;
}

.pd-contact__support-notice-content a {
  color: #475569;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted #94a3b8;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.pd-contact__support-notice-content a:hover,
.pd-contact__support-notice-content a:focus {
  color: #1e293b;
  border-bottom-color: #64748b;
}

/* ==========================================================================
   Client Support Redirect Message
   ========================================================================== */
.pd-contact__client-redirect {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-radius: 12px;
  border: 1px solid #bfdbfe;
}

.pd-contact__client-redirect[hidden] {
  display: none;
}

.pd-contact__client-redirect-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
  border-radius: 50%;
  color: #fff;
  margin-bottom: 20px;
}

.pd-contact__client-redirect-title {
  color: #1e293b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.pd-contact__client-redirect-text {
  color: #475569;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.pd-contact__client-redirect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all 0.2s ease;
  margin: 8px 0 24px;
}

.pd-contact__client-redirect-btn:hover,
.pd-contact__client-redirect-btn:focus {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.pd-contact__client-redirect-note {
  color: #64748b;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  margin: 0;
}

.pd-contact__client-redirect-link {
  background: none;
  border: none;
  padding: 0;
  color: #3b82f6;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.pd-contact__client-redirect-link:hover,
.pd-contact__client-redirect-link:focus {
  color: #1d4ed8;
}

/* ==========================================================================
   Honeypot (Hidden from real users)
   ========================================================================== */
.pd-contact__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pd-contact {
    padding: 40px 16px 80px;
  }

  .pd-contact__title {
    font-size: 1.875rem;
  }

  .pd-contact__subtitle {
    font-size: 1rem;
  }

  .pd-contact__card {
    padding: 24px;
    border-radius: 12px;
  }

  .pd-contact__methods {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pd-contact__method {
    padding: 20px;
  }

  .pd-contact__cta--primary {
    width: 100%;
    text-align: center;
  }

  .pd-contact__form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pd-contact__form {
    gap: 16px;
  }

  .pd-contact__submit {
    min-height: 52px;
  }

  .pd-contact__divider {
    margin: 24px 0;
  }

  .pd-contact__privacy-note {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  /* Info note and support notice mobile */
  .pd-contact__info-note {
    padding: 12px 14px;
    gap: 10px;
  }

  .pd-contact__support-notice {
    padding: 10px 14px;
    gap: 8px;
  }

  /* Client redirect mobile */
  .pd-contact__client-redirect {
    padding: 28px 20px;
  }

  .pd-contact__client-redirect-icon {
    width: 56px;
    height: 56px;
  }

  .pd-contact__client-redirect-title {
    font-size: 1.25rem;
  }

  .pd-contact__client-redirect-text {
    font-size: 0.9375rem;
  }

  .pd-contact__client-redirect-btn {
    width: 100%;
    padding: 14px 24px;
  }

  /* Disclaimer mobile */
  .pd-contact__disclaimer {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .pd-contact__method {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pd-contact__method-icon {
    width: 44px;
    height: 44px;
  }
}
