/* ═══════════════════════════════════════
   CONTACT PAGE — contact.css
   Imports base design tokens from styles.css
═══════════════════════════════════════ */

/* ── Hero ── */
.contact-hero {
  position: relative;
  padding: 160px 24px 80px;
  background: #ffffff;
  overflow: hidden;
  text-align: center;
}

.contact-hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  border-radius: 9999px;
  background: radial-gradient(
    ellipse 60% 55% at 50% 50%,
    rgba(16, 185, 129, 0.13) 0%,
    rgba(16, 185, 129, 0) 70%
  );
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

/* Subtle dot-grid texture */
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(16,185,129,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
}

.contact-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #d1fae5;
  color: #0b2e26;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.contact-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

.contact-hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  color: #111827;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.contact-hero h1 .hero-accent {
  color: #047857;
}

.contact-hero-sub {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 10px;
}

.contact-hero-support {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
}

/* ── Main Layout ── */
.contact-main {
  background: #F6F7F6;
  padding: 80px 24px 120px;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: flex-start;
}

/* ── Form Card ── */
.contact-form-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 4px 32px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  padding: 48px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.25s forwards;
}

/* ── Form Sections ── */
.form-section {
  margin-bottom: 36px;
}

.form-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #10b981;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.07);
  border-radius: 1px;
}

.form-divider {
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 32px 0;
}

/* Grid layouts for form rows */
.form-row {
  display: grid;
  gap: 16px;
}

.form-row.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.form-row.cols-1 {
  grid-template-columns: 1fr;
}

/* ── Form Field ── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: -0.01em;
}

.form-label span {
  font-weight: 400;
  color: #9ca3af;
  margin-left: 3px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 15px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #10b981;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ── Multi-select chips ── */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.chip {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  user-select: none;
}

.chip:hover {
  border-color: #10b981;
  color: #047857;
  background: #ecfdf5;
}

.chip.selected {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
  font-weight: 600;
}

.chip.selected::before {
  content: '✓ ';
}

/* ── Submit CTA ── */
.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.contact-submit-note {
  font-size: 12.5px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-submit-note svg {
  flex-shrink: 0;
}

.btn-contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: #10b981;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 10px rgba(16,185,129,0.35);
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}

.btn-contact-submit:hover {
  background: #0ea570;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16,185,129,0.45);
}

.btn-contact-submit:active {
  transform: scale(0.98);
}

.btn-arrow {
  transition: transform 0.15s ease;
}

.btn-contact-submit:hover .btn-arrow {
  transform: translateX(3px);
}

/* ── Right Sidebar ── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.75s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}

/* Wide illustration box */
.contact-illustration-card {
  background: #0b2e26;
  border-radius: 20px;
  padding: 36px 28px;
  border: 1px solid rgba(16,185,129,0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
  position: relative;
}

.contact-illustration-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.illustration-svg-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.illustration-svg-wrap svg {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(16,185,129,0.15));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.illustration-tagline {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.illustration-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

/* Process card */
.contact-process-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 28px;
}

.process-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10b981;
  margin-bottom: 20px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  gap: 14px;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 30px;
  bottom: -4px;
  width: 1.5px;
  background: linear-gradient(to bottom, rgba(16,185,129,0.3), rgba(16,185,129,0.05));
}

.process-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1.5px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  margin-top: 1px;
  position: relative;
  z-index: 1;
}

.process-step-body {
  padding-bottom: 22px;
}

.process-step-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.process-step-body p {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

/* Who we work with card */
.contact-who-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 28px;
}

.who-card-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10b981;
  margin-bottom: 18px;
}

.who-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.who-item:last-child { border-bottom: none; padding-bottom: 0; }
.who-item:first-child { padding-top: 0; }

.who-icon {
  width: 36px;
  height: 36px;
  background: #ecfdf5;
  border-radius: 10px;
  border: 1px solid rgba(16,185,129,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.who-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.who-text p {
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Success state ── */
.contact-success {
  text-align: center;
  padding: 64px 32px;
  display: none;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: #ecfdf5;
  border: 2px solid rgba(16,185,129,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.success-p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

  .contact-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .contact-illustration-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 40px;
  }

  .contact-hero-sub {
    font-size: 16px;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .form-row.cols-2 {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    grid-template-columns: 1fr;
  }

  .contact-submit-row {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .btn-contact-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 130px 16px 60px;
  }

  .contact-hero h1 {
    font-size: 34px;
  }

  .contact-main {
    padding: 48px 16px 80px;
  }
}
