/* ============================================================
   PAGE-CONTACT.CSS — AutoRoy AI Contact Page Styles
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────── */
.contact-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 80% 60% at 40% -10%,
    rgba(139, 92, 246, 0.22) 0%,
    rgba(6, 182, 212, 0.10) 60%,
    transparent 100%);
  overflow: hidden;
}

.contact-hero .hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: mesh-drift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  pointer-events: none;
}
.contact-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  top: -80px; right: 15%;
  animation: orb-drift-1 11s ease-in-out infinite alternate;
}
.contact-orb-2 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  bottom: 20px; left: 5%;
  animation: orb-drift-2 14s ease-in-out infinite alternate;
}

/* ── Radar Rings ──────────────────────────────────────── */
.contact-radar {
  position: absolute;
  top: 52%;
  right: 22%;
  pointer-events: none;
  z-index: 0;
}
.contact-radar span {
  position: absolute;
  width: 90px; height: 90px;
  border-radius: 50%;
  border: 1.5px solid rgba(139, 92, 246, 0.4);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  animation: radar-ring 4.8s ease-out infinite;
}
.contact-radar span:nth-child(1) {
  animation-delay: 0s;
  border-color: rgba(139, 92, 246, 0.4);
}
.contact-radar span:nth-child(2) {
  animation-delay: 1.6s;
  border-color: rgba(99, 102, 241, 0.3);
}
.contact-radar span:nth-child(3) {
  animation-delay: 3.2s;
  border-color: rgba(6, 182, 212, 0.25);
}

@keyframes radar-ring {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(7);   opacity: 0; }
}

/* ── Dual Path Section ────────────────────────────────── */
.contact-paths-section {
  padding: 80px 0 60px;
}

.contact-paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

/* WhatsApp path */
.path-card {
  border-radius: 24px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.path-card:hover { transform: translateY(-8px); }

.path-card--wa {
  background: linear-gradient(135deg,
    rgba(37, 211, 102, 0.12) 0%,
    rgba(18, 140, 126, 0.06) 100%);
  border: 1px solid rgba(37, 211, 102, 0.25);
}
.path-card--wa:hover {
  box-shadow: 0 24px 60px rgba(37, 211, 102, 0.15);
}

.path-card--form {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.path-card--form:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 24px 60px rgba(139, 92, 246, 0.10);
}

.path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.path-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s;
}
.path-card:hover .path-icon { transform: scale(1.1) rotate(-5deg); }

.path-card--wa .path-icon {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #4ade80;
}
.path-card--form .path-icon {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.20);
  color: #a78bfa;
}
.path-icon svg { width: 26px; height: 26px; }

.path-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 14px;
}
.path-card--wa .path-badge {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #4ade80;
}
.path-card--form .path-badge {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.20);
  color: #c4b5fd;
}

.path-title {
  font-size: 24px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 10px;
  line-height: 1.2;
}
.path-desc {
  font-size: 14px;
  color: rgba(203, 213, 225, 0.85);
  line-height: 1.70;
  margin-bottom: 28px;
}

.path-perks {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.path-perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(203, 213, 225, 0.85);
}
.path-perk-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.path-card--wa .path-perk-dot { background: #4ade80; }
.path-card--form .path-perk-dot { background: #a78bfa; }

.path-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.path-cta:hover { transform: translateY(-2px); }

.path-cta--wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.30);
}
.path-cta--wa:hover {
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.path-cta--form {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.30);
}
.path-cta--form:hover {
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45);
}
.path-cta svg { width: 18px; height: 18px; }

/* ── Contact Form Section ─────────────────────────────── */
.contact-form-section {
  padding: 80px 0 100px;
  position: relative;
}
.contact-form-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%,
    rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  margin-top: 60px;
}

/* Left column — info */
.cf-info {
  position: sticky;
  top: 100px;
}

.cf-info-title {
  font-size: 26px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 14px;
  line-height: 1.25;
}
.cf-info-desc {
  font-size: 14px;
  color: rgba(203, 213, 225, 0.80);
  line-height: 1.75;
  margin-bottom: 36px;
}

.cf-contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.cf-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}
.cf-contact-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.10);
  border: 1px solid rgba(139, 92, 246, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  flex-shrink: 0;
}
.cf-contact-icon svg { width: 16px; height: 16px; }
.cf-contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.60);
  margin-bottom: 2px;
}
.cf-contact-value {
  color: #e2e8f0;
  font-weight: 500;
}
.cf-contact-value a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.2s;
}
.cf-contact-value a:hover { color: #a78bfa; }

/* Availability badge */
.cf-availability {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.20);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cf-avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.10); }
}
.cf-avail-text {
  font-size: 13px;
  color: rgba(203, 213, 225, 0.90);
  line-height: 1.5;
}
.cf-avail-text strong {
  color: #34d399;
  display: block;
  margin-bottom: 2px;
}

/* Right column — form */
.cf-form-wrap {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}
.cf-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cf-form-title {
  font-size: 22px;
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.cf-form-sub {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.70);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form fields */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.80);
}
.cf-label .required {
  color: #f87171;
  margin-right: 2px;
}

.cf-input,
.cf-select,
.cf-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #f1f5f9;
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.cf-input::placeholder,
.cf-textarea::placeholder {
  color: rgba(148, 163, 184, 0.40);
}
.cf-input:focus,
.cf-select:focus,
.cf-textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.60);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
.cf-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 24 24' fill='none' stroke='%2394a3b8' 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: left 12px center;
  padding-left: 36px;
}
.cf-select option {
  background: #1e293b;
  color: #f1f5f9;
}
.cf-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.cf-input.error,
.cf-select.error,
.cf-textarea.error {
  border-color: rgba(248, 113, 113, 0.60);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.10);
}

.cf-note {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.55);
  line-height: 1.5;
}

.cf-submit {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Heebo', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
  position: relative;
  overflow: hidden;
}
.cf-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cf-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.50);
}
.cf-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ── FAQ mini ─────────────────────────────────────────── */
.contact-faq-section {
  padding: 80px 0 100px;
  position: relative;
  background: radial-gradient(ellipse 60% 40% at 20% 60%,
    rgba(6, 182, 212, 0.05) 0%, transparent 70%);
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.cfaq-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.cfaq-card:hover {
  border-color: rgba(139, 92, 246, 0.20);
  transform: translateY(-3px);
}
.cfaq-q {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
  line-height: 1.35;
}
.cfaq-a {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.80);
  line-height: 1.70;
}

/* ── Counter Stats Section ────────────────────────────── */
.contact-counters-section {
  padding: 0 0 72px;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.cs-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%,
    rgba(139, 92, 246, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cs-item {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  cursor: default;
  transition: background 0.3s;
}
.cs-item:last-child { border-right: none; }
.cs-item:hover { background: rgba(139, 92, 246, 0.05); }

.cs-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.cs-count {
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #a78bfa 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cs-item:hover .cs-count { transform: scale(1.10); }

.cs-unit {
  font-size: 20px;
  font-weight: 700;
  color: rgba(167, 139, 250, 0.65);
  line-height: 1;
  padding-bottom: 4px;
}

.cs-label {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.cs-sub {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.55);
  line-height: 1.45;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-paths-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .contact-form-layout { grid-template-columns: 1fr; }
  .cf-info { position: static; }
  .contact-faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-paths-section { padding: 60px 0 40px; }
  .path-card { padding: 36px 28px; }
  .cf-form-wrap { padding: 32px 24px; }
  .cf-field-row { grid-template-columns: 1fr; }

  .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-item { padding: 36px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .cs-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06); }
  .cs-item:nth-last-child(-n+2) { border-bottom: none; }
  .cs-count { font-size: 44px; }
}

@media (max-width: 480px) {
  .contact-paths-grid { max-width: 100%; }
  .path-card { padding: 28px 20px; }
}

/* ── Reveal failsafe (inner pages only) ─────────────────── */
@keyframes reveal-fallback {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.visible)      { animation: reveal-fallback 0.65s 1.8s cubic-bezier(0.4,0,0.2,1) both; }
  .reveal-left:not(.visible) { animation: reveal-fallback 0.65s 1.9s cubic-bezier(0.4,0,0.2,1) both; }
}
