/* Contact Page Styles — inherits theme vars from styles.css */

/* Modern Animated Background */
.contact-section {
  position: relative;
}

.contact-section::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(57, 255, 20, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.02) 0%, transparent 60%);
  animation: bgShift 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.contact-section>* {
  position: relative;
  z-index: 1;
}

@keyframes bgShift {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(2%, -2%) rotate(1deg);
  }

  66% {
    transform: translate(-1%, 1%) rotate(-0.5deg);
  }
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 26, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1rem 0;
}

.header.scrolled {
  padding: 0.7rem 0;
  background: rgba(26, 26, 36, 0.98);
  box-shadow: var(--shadow-light);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: var(--shadow-light);
}

.logo-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-cyan);
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-cta {
  background: var(--primary-gradient);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
}

.nav-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger-line {
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Contact Hero Section */
.contact-hero {
  background: radial-gradient(circle at top right, #1a1a24 0%, #0a0a0f 70%);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.contact-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-hero-badge {
  display: inline-block;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.contact-hero-title {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.contact-hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--color-bg-base);
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Info */
.contact-info {
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 120px;
}

.contact-info-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-info-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-light);
}

.contact-item-content h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-item-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-item-content a {
  color: var(--color-accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-item-content a:hover {
  color: var(--color-accent-green);
}

/* Contact Form */
.contact-form-container {
  background: var(--color-surface);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.contact-form-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.contact-form-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(0, 229, 255, 0.15);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition-smooth);
  background: var(--color-surface);
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

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

.form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent-cyan);
}

.form-checkbox-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-checkbox-label a {
  color: var(--color-accent-cyan);
  text-decoration: none;
}

.form-checkbox-label a:hover {
  text-decoration: underline;
}

.form-submit {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 auto;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Map Section */
.map-section {
  padding: 6rem 0;
  background: var(--color-surface);
}

.map-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.map-header {
  text-align: center;
  margin-bottom: 4rem;
}

.map-title {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.map-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-heavy);
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="mapgrid" width="30" height="30" patternUnits="userSpaceOnUse"><path d="M 30 0 L 0 0 0 30" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23mapgrid)"/></svg>');
  opacity: 0.3;
}

.map-content {
  position: relative;
  z-index: 2;
}

.map-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
  background: var(--color-bg-base);
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 4rem;
}

.faq-title {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.faq-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  box-shadow: var(--shadow-heavy);
}

.faq-question {
  padding: 2rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.faq-question:hover {
  background: rgba(102, 126, 234, 0.05);
}

.faq-icon {
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  color: var(--color-accent-cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 2rem 2rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--dark-gradient);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
}

.footer-logo-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
}

.footer-section h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-contact-icon {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
  color: white;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 55px;
  height: 55px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
  box-shadow: var(--shadow-heavy);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

/* Success Message */
.success-message {
  background: #10b981;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  display: none;
  align-items: center;
  gap: 0.8rem;
}

.success-message.show {
  display: flex;
}

.success-message i {
  font-size: 1.2rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    position: static;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 36, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-heavy);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .contact-hero {
    padding: 6rem 0 3rem;
  }

  .contact-hero-container,
  .contact-container,
  .map-container,
  .faq-container,
  .footer-container {
    padding: 0 1rem;
  }

  .contact-info,
  .contact-form-container {
    padding: 2rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .contact-hero-title {
    font-size: 2rem;
  }

  .contact-info,
  .contact-form-container {
    padding: 1.5rem;
  }

  .map-placeholder {
    height: 300px;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }
}

/* Multi-step Form Styles */
.form-step {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.form-step.active {
  display: block;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glass-border);
  z-index: 1;
}

.step-dot {
  width: 30px;
  height: 30px;
  background: var(--color-surface);
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.step-dot.completed {
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
  color: var(--color-bg-base);
  box-shadow: var(--shadow-glow-green);
}

.step-dot.active {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
  box-shadow: var(--shadow-glow);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn-prev {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  transition: var(--transition-smooth);
}

.btn-prev:hover {
  border-color: var(--color-accent-cyan);
  color: var(--color-accent-cyan);
}

.btn-next,
.form-submit {
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: bold;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

.btn-next:hover,
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Floating Particles */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent-cyan);
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
  animation: floatParticle 10s infinite linear;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

.contact-hero,
.contact-section {
  position: relative;
  z-index: 1;
}

.validation-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.validation-success {
  border-color: var(--color-accent-green) !important;
  box-shadow: var(--shadow-glow-green);
}

.error-text {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}