/* Contact page */

.contact-section {
  position: relative;
  background: #05070f;
  color: #f0f6ff;
  overflow: hidden;
  padding-bottom: 0;
}

.contact-section-grid {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  z-index: 0;
}

.contact-section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0.92) 0%, rgba(5, 7, 15, 0.98) 100%);
  z-index: 1;
}

.contact-wrap {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Hero */
.contact-hero {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5a70;
  margin-bottom: 28px;
}

.contact-breadcrumb a {
  color: #4b5a70;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-breadcrumb a:hover {
  color: #f97316;
}

.contact-breadcrumb span:last-child {
  color: #8b9bb4;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: #f97316;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.contact-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: contactPulse 2s infinite;
}

@keyframes contactPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.contact-hero h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
  max-width: 680px;
  text-transform: none;
}

.contact-hero h1 em {
  font-style: normal;
  color: #f97316;
}

.contact-hero-sub {
  font-size: 17px;
  color: #8b9bb4;
  max-width: 560px;
  margin: 0;
  line-height: 1.7;
}

/* Stats strip */
.contact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #1e2a3a;
  border: 1px solid #1e2a3a;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 56px;
}

.contact-stat-cell {
  background: #0d1117;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.2s;
}

.contact-stat-cell:hover {
  background: #111827;
}

.contact-stat-icon {
  width: 40px;
  height: 40px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-stat-label {
  font-size: 13px;
  color: #4b5a70;
  margin-bottom: 2px;
}

.contact-stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #f0f6ff;
}

/* Form layout — centered single column */
.contact-form-layout {
  display: flex;
  justify-content: center;
  padding-bottom: 64px;
}

.contact-form-layout .contact-form-card {
  width: 100%;
  max-width: 640px;
}

/* Support panel */
.contact-support-panel {
  background: #0d1117;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.contact-support-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.contact-support-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #fb923c, #ea580c);
}

.contact-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-panel-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #f0f6ff;
  margin: 0;
  text-transform: none;
}

.contact-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-live-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #10b981;
  border-radius: 50%;
}

.contact-panel-body {
  font-size: 14px;
  color: #8b9bb4;
  line-height: 1.65;
  margin-bottom: 14px;
}

.contact-panel-path {
  background: #111827;
  border: 1px solid #1e2a3a;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  color: #4b5a70;
  margin-bottom: 20px;
}

.contact-panel-path strong {
  color: #f97316;
}

.contact-btn-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f97316;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.2s;
}

.contact-btn-dashboard:hover {
  gap: 10px;
}

/* Channels */
.contact-channels-card {
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-radius: 16px;
  overflow: hidden;
}

.contact-channels-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid #1e2a3a;
}

.contact-channels-header h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #f0f6ff;
  margin: 0;
  text-transform: none;
}

.contact-channel-item {
  padding: 20px 28px;
  border-bottom: 1px solid #1e2a3a;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.15s;
}

.contact-channel-item:last-child {
  border-bottom: none;
}

.contact-channel-item:hover {
  background: #111827;
}

.contact-channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-icon-blue { background: rgba(249, 115, 22, 0.12); }
.contact-icon-orange { background: rgba(249, 115, 22, 0.12); }
.contact-icon-green { background: rgba(16, 185, 129, 0.12); }

.contact-channel-name {
  font-size: 14px;
  font-weight: 600;
  color: #f0f6ff;
  margin-bottom: 3px;
}

.contact-channel-desc {
  font-size: 13px;
  color: #4b5a70;
  margin-bottom: 8px;
  line-height: 1.5;
}

.contact-channel-email {
  font-size: 13.5px;
  font-weight: 600;
  color: #f97316;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-channel-email:hover {
  color: #fb923c;
}

/* Module links */
.contact-module-links {
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-radius: 16px;
  padding: 24px 28px;
}

.contact-module-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5a70;
  margin: 0 0 16px;
}

.contact-module-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-module-tag {
  display: inline-block;
  background: #111827;
  border: 1px solid #1e2a3a;
  color: #8b9bb4;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 9999px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.contact-module-tag:hover {
  border-color: rgba(249, 115, 22, 0.25);
  color: #f97316;
}

/* Form card */
.contact-form-card {
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-radius: 24px;
  padding: 40px 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 24px rgba(0, 0, 0, 0.25);
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ea580c, #f97316, #fb923c);
  opacity: 0.8;
}

.contact-form-top {
  margin-bottom: 28px;
  text-align: center;
}

.contact-form-top h2 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-transform: none;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form-group {
  margin-bottom: 20px;
}

.contact-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #8b9bb4;
  margin-bottom: 7px;
}

.contact-form-label .req {
  color: #ef4444;
  margin-left: 2px;
}

.contact-form-label .optional {
  color: #4b5a70;
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

.contact-form-control {
  width: 100%;
  background: #111827;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 11px 14px;
  color: #f0f6ff;
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form-control::placeholder {
  color: #4b5a70;
}

.contact-form-control:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

select.contact-form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5A70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
  padding-right: 38px;
}

textarea.contact-form-control {
  resize: vertical;
  min-height: 108px;
  line-height: 1.6;
}

.contact-char-hint {
  font-size: 12px;
  color: #4b5a70;
  text-align: right;
  margin-top: 4px;
}

.contact-sector-group {
  margin-bottom: 20px;
}

.contact-sector-label {
  font-size: 13px;
  font-weight: 600;
  color: #8b9bb4;
  margin-bottom: 10px;
  display: block;
}

.contact-sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-sector-btn {
  background: #111827;
  border: 1px solid #1e2a3a;
  color: #4b5a70;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.contact-sector-btn:hover {
  border-color: rgba(249, 115, 22, 0.25);
  color: #8b9bb4;
}

.contact-sector-btn.selected {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.contact-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  background: #111827;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
}

.contact-consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #f97316;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.contact-consent-row label {
  font-size: 13px;
  color: #4b5a70;
  line-height: 1.5;
  cursor: pointer;
}

.contact-consent-row a {
  color: #f97316;
  text-decoration: none;
}

.contact-consent-row a:hover {
  text-decoration: underline;
}

.contact-btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.contact-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.35);
}

.contact-btn-submit:active {
  transform: translateY(0);
}

.contact-validation-summary,
.contact-field-error {
  display: block;
  color: #f87171;
  font-size: 13px;
  line-height: 1.4;
}

.contact-validation-summary {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
}

.contact-field-error {
  margin-top: 6px;
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 16px;
}

.contact-success.show {
  display: flex;
}

.contact-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
}

.contact-success h3 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #f0f6ff;
  margin: 0;
  text-transform: none;
}

.contact-success p {
  font-size: 14px;
  color: #8b9bb4;
  margin: 0;
  line-height: 1.6;
}

.contact-success a {
  color: #f97316;
  text-decoration: none;
}

.contact-success a:hover {
  text-decoration: underline;
}

.contact-trust-row {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #1e2a3a;
  flex-wrap: wrap;
}

.contact-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #4b5a70;
}

.contact-trust-dot {
  width: 6px;
  height: 6px;
  background: #f97316;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Compliance strip */
.contact-compliance {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 80px;
}

.contact-compliance-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5a70;
  margin-right: 4px;
}

.contact-compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #8b9bb4;
}

.contact-compliance-badge .dot {
  width: 5px;
  height: 5px;
  background: #f97316;
  border-radius: 50%;
}

/* Animations */
.contact-section .animate-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.contact-section .animate-ready.animate-appear {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-stats {
    grid-template-columns: 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 28px 24px;
  }

  .contact-wrap {
    padding: 0 24px;
  }

  .contact-hero {
    padding-top: 32px;
  }
}

@media (max-width: 600px) {
  .contact-trust-row {
    flex-direction: column;
    gap: 12px;
  }
}
