/**
 * ═══════════════════════════════════════════════════════════════════════════
 * BacAI – Contact v2.0
 * Modern contact page with split layout
 * ═══════════════════════════════════════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1521;
  --bg-card: linear-gradient(145deg, rgba(21, 28, 44, 0.9), rgba(15, 21, 33, 0.95));
  
  --accent-cyan: #00d4ff;
  --accent-violet: #8b5cf6;
  --accent-magenta: #ec4899;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-cta: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-violet);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */

.bg-gradient {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 92, 246, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 212, 255, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 16px 24px;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
}

.brand-letter {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: 48px 24px;
  gap: 32px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  width: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEFT SIDE - INFO
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-info {
  padding: 40px 32px;
  background: 
    radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, 0.1), transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(0, 212, 255, 0.08), transparent 60%);
  border-right: 1px solid var(--border-subtle);
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.contact-info h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Methods */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-method:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.method-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
}

.method-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.method-details {
  display: flex;
  flex-direction: column;
}

.method-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.method-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Schedule */
.info-schedule {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.info-schedule svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
}

/* Trust */
.info-trust {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: auto;
}

.info-trust svg {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RIGHT SIDE - FORM
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-form-wrap {
  padding: 40px 32px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.required {
  color: var(--accent-red);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.input {
  width: 100%;
  padding: 14px 16px;
  padding-left: 46px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.input::placeholder {
  color: var(--text-muted);
}

.input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input.valid {
  border-color: var(--accent-green);
}

.input.error {
  border-color: var(--accent-red);
}

.textarea {
  padding-left: 16px;
  min-height: 140px;
  resize: vertical;
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.field-error {
  font-size: 12px;
  color: var(--accent-red);
}

.char-count {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.char-count.warning {
  color: var(--accent-red);
}

/* Status */
.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}

.form-status.visible {
  display: block;
  animation: fadeUp 0.2s ease;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

/* Submit Button */
.btn-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--gradient-cta);
  background-size: 200% 100%;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
  transition: all var(--transition-medium);
}

.btn-submit:hover:not(:disabled) {
  background-position: 100% 0;
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-text,
.btn-submit.loading .btn-icon {
  display: none;
}

.btn-submit.loading .btn-spinner {
  display: block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form Note */
.form-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.form-note a {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BACK LINK
   ═══════════════════════════════════════════════════════════════════════════ */

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--text-secondary);
}

.back-link svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .contact-container {
    padding: 32px 16px;
  }
  
  .contact-card {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .contact-info h1 {
    font-size: 26px;
  }
  
  .contact-form-wrap {
    padding: 32px 24px;
  }
  
  .info-trust {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .contact-info {
    padding: 24px 20px;
  }
  
  .contact-form-wrap {
    padding: 24px 20px;
  }
  
  .contact-method {
    padding: 12px 14px;
  }
  
  .method-icon {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ═══════════════════════════════════════════════════════════════════════════
   NAV ACTIVE STATE (pentru Contact)
   ═══════════════════════════════════════════════════════════════════════════ */

nav a.active {
  color: var(--accent-cyan, #00d4ff);
  background: rgba(0, 212, 255, 0.1);
}

nav a.active::after {
  width: 20px;
  background: var(--accent-cyan, #00d4ff);
}

/* Footer contact active */
.chip-link.contact-active {
  color: var(--accent-cyan, #00d4ff);
  background: rgba(0, 212, 255, 0.1);
}

.chip-link.contact-active .dot {
  background: var(--accent-cyan, #00d4ff);
}

/* Ajustări pentru a face loc header-ului și footer-ului */
.contact-container {
  padding-top: 100px;
  padding-bottom: 60px;
}

/* Ascunde back-link (nu mai e nevoie cu nav complet) */
.back-link {
  display: none;
}