/**
 * Sachin Tonte - Contact Page Styles
 * AI-Powered Smart Telemetry Form, Progress Bar, Hover Effects, Live Verification Ticks & Thank You Panel
 */

.contact-hero-section {
  padding: 6.2rem 0 3.5rem;
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.45fr;
  gap: 3rem;
  margin-top: 2rem;
  perspective: 1200px;
  align-items: start;
}

/* Contact Info Column */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

.contact-card-item:hover {
  transform: perspective(800px) translate3d(6px, 0, 10px);
  border-color: var(--color-cyan);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 211, 238, 0.15);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(108, 77, 255, 0.12);
  border: 1px solid rgba(108, 77, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item-title {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-item-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   AI-POWERED SMART CONTACT FORM CARD
   ========================================================================== */
.contact-form-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius-xl);
  padding: 2.35rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(124, 92, 255, 0.14);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card:hover {
  border-color: rgba(255, 79, 216, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 42px rgba(34, 211, 238, 0.22);
}

.ai-form-header-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ai-form-badge-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 79, 216, 0.16), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--color-cyan);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
  animation: aiDotPulse 1.6s infinite ease-in-out;
}

@keyframes aiDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.ai-form-badge-secondary {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-amber-light);
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.35);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

/* ==========================================================================
   ABOVE-FORM LIVE PROGRESS BAR & STEP DOTS
   ========================================================================== */
.ai-form-progress-box {
  background: rgba(10, 14, 36, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .ai-form-progress-box {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(124, 92, 255, 0.28);
}

.ai-form-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
}

.ai-progress-title {
  color: var(--text-main);
  font-family: var(--font-display);
}

.ai-progress-pct {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-cyan);
}

.ai-form-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .ai-form-progress-track {
  background: rgba(15, 23, 42, 0.1);
}

.ai-form-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #FF4FD8 0%, #22D3EE 50%, #34D399 100%);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-progress-steps {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin-top: 0.6rem;
}

.ai-step-dot {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

[data-theme="light"] .ai-step-dot {
  background: rgba(15, 23, 42, 0.15);
}

.ai-step-dot.completed {
  background: #34D399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

/* ==========================================================================
   AI FIELD HOVER EFFECT & LIVE GREEN TICK (✓) BADGE
   ========================================================================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.ai-field-wrap {
  position: relative;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(14, 18, 44, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 1rem;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease,
              box-shadow 0.22s ease,
              background 0.22s ease;
}

[data-theme="light"] .ai-field-wrap {
  background: rgba(248, 250, 252, 0.85);
  border-color: rgba(15, 23, 42, 0.1);
}

/* AI Hover & Focus Effect */
.ai-field-wrap:hover,
.ai-field-wrap:focus-within {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(18, 24, 58, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32), 0 0 18px rgba(34, 211, 238, 0.16);
}

[data-theme="light"] .ai-field-wrap:hover,
[data-theme="light"] .ai-field-wrap:focus-within {
  background: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(124, 92, 255, 0.12);
}

/* Verified Field State (Green Border + Green Tick) */
.ai-field-wrap.is-valid {
  border-color: rgba(52, 211, 153, 0.55);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08) 0%, rgba(14, 18, 44, 0.55) 100%);
}

[data-theme="light"] .ai-field-wrap.is-valid {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, #FFFFFF 100%);
  border-color: rgba(16, 185, 129, 0.55);
}

.ai-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.ai-label-row .form-label {
  margin-bottom: 0;
  font-size: 0.83rem;
  font-weight: 700;
}

/* Green Checkmark Tick Badge */
.ai-field-tick {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #34D399;
  opacity: 0;
  transform: scale(0.75) translateY(3px);
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

[data-theme="light"] .ai-field-tick {
  color: #047857;
  background: rgba(16, 185, 129, 0.16);
}

.ai-field-wrap.is-valid .ai-field-tick {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Smart Backend AI Captcha Row */
.ai-captcha-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.ai-captcha-challenge-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.68rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.18), rgba(124, 92, 255, 0.22));
  border: 1px solid rgba(255, 79, 216, 0.5);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 79, 216, 0.2);
}

[data-theme="light"] .ai-captcha-challenge-badge {
  color: #0F172A;
  background: linear-gradient(135deg, rgba(255, 79, 216, 0.15), rgba(34, 211, 238, 0.18));
}

.captcha-refresh-btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-cyan);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.2s ease;
}

.captcha-refresh-btn:hover {
  transform: rotate(180deg);
  background: rgba(34, 211, 238, 0.25);
}

/* Smart Submit Button (Locked vs Active) */
.ai-submit-btn {
  margin-top: 0.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: rgba(100, 116, 139, 0.35);
  color: var(--text-muted);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: none !important;
}

.ai-submit-btn.is-unlocked {
  background: linear-gradient(135deg, #FF4FD8 0%, #7C5CFF 50%, #22D3EE 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(255, 79, 216, 0.45), 0 0 24px rgba(34, 211, 238, 0.35);
}

/* ==========================================================================
   POST-SUBMISSION THANK YOU PANEL
   ========================================================================== */
.ai-thankyou-panel {
  text-align: center;
  padding: 2.2rem 1rem;
  animation: thankYouReveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes thankYouReveal {
  0% { opacity: 0; transform: translateY(16px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-thankyou-icon-ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0A0B1E;
  background: linear-gradient(135deg, #34D399 0%, #22D3EE 100%);
  box-shadow: 0 0 35px rgba(52, 211, 153, 0.55);
}

.ai-thankyou-title {
  font-size: 1.75rem;
  margin-bottom: 0.65rem;
}

.ai-thankyou-lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.ai-thankyou-sla-note {
  background: linear-gradient(135deg, rgba(255, 176, 32, 0.14), rgba(255, 79, 216, 0.12));
  border: 1px solid rgba(255, 176, 32, 0.45);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.sla-note-header {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-amber-light);
  margin-bottom: 0.35rem;
}

.ai-thankyou-sla-note p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.55;
}

.ai-thankyou-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.thankyou-meta-pill {
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--color-cyan);
}

.honeypot-field {
  display: none !important;
  visibility: hidden;
}

/* Submit status notification */
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-feedback.success {
  display: block;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.4);
  color: #4ADE80;
}

.form-feedback.error {
  display: block;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #F87171;
}

@media (max-width: 991px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 1.5rem;
  }
  .ai-captcha-row {
    flex-direction: column;
    align-items: stretch;
  }
}
