/* Contact Page Specific Styles */

/* Active nav item */
.nav-menu a.active {
  color: var(--color-primary);
  position: relative;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
}

.navbar-desktop.scrolled .nav-menu a.active {
  color: var(--color-primary);
}

.mobile-nav a.active {
  color: var(--color-primary) !important;
  border-left-color: var(--color-primary);
  background: rgba(22, 119, 255, 0.05);
}

/* Contact Hero Section */
.contact-hero {
  position: relative;
  height: 55vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.contact-hero-content h1 {
  font-size: 64px;
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.contact-hero-content p {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Contact Methods */
.contact-methods {
  padding: 120px 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #e8e8e803;
  border: 1px solid var(--color-border);
}

.contact-card {
  background: #fff;
  padding: 56px 32px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--color-primary);
  transition: height 0.3s ease;
}

.contact-card:hover {
  background: rgba(26, 26, 26, 0.02);
}

.contact-card:hover::before {
  height: 3px;
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-text);
}

.contact-value {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.contact-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
  padding: 120px 0;
  background: var(--color-bg);
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.form-info {
  padding: 64px 48px;
  background: 
    linear-gradient(135deg, rgba(22, 119, 255, 0.85) 0%, rgba(255, 255, 255, 0.75) 100%),
    url('../images/simulator.jpg') center/cover no-repeat;
  color: #fff;
  position: relative;
}

.form-info h2 {
  font-size: 40px;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
}

.form-info > p {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 56px;
  line-height: 1.8;
  font-weight: 300;
}

.form-benefits {
  margin-bottom: 56px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 16px;
  padding-left: 20px;
  position: relative;
}

.benefit-item::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.5);
}

.benefit-item span {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.8;
  font-weight: 300;
}

.contact-qr {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-qr img {
  width: 160px;
  height: 160px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: block;
}

.contact-qr p {
  font-size: 14px;
  opacity: 0.95;
}

.form-container {
  padding: 60px 48px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 14px 20px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
}

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

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

.btn-submit {
  grid-column: span 2;
  padding: 16px 48px;
  background: var(--color-primary);
  color: #fff;

  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  letter-spacing: 0.5px;
}

.btn-submit:hover {
  background: transparent;
  color: var(--color-text);
}

/* Bases Map */
.bases-map {
  padding: 100px 0;
  background: #fff;
}

.map-container {
  margin-top: 60px;
  position: relative;
  background: var(--color-bg);
  border-radius: 8px;
  overflow: hidden;
  padding: 60px;
}

.map-placeholder {
  max-width: 800px;
  margin: 0 auto;
}

.map-placeholder img {
  width: 100%;
  height: auto;
  opacity: 0.8;
}

.map-locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--color-border);
}

.location-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.location-dot {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.location-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  opacity: 0.2;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.location-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text-primary);
}

.location-info p {
  font-size: 14px;
  color: var(--color-text-light);
}

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

.faq-list {
  max-width: 900px;
  margin: 60px auto 0;
}

.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-question {
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  user-select: none;
}

.faq-item.active .faq-question {
  background: transparent;
}

.faq-question h3 {
  font-size: 18px;
  color: var(--color-text-primary);
  margin: 0;
  transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3,
.faq-item.active .faq-question h3 {
  color: var(--color-text);
}

.faq-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: border-color 0.3s ease;
}

.faq-icon svg {
  width: 20px;
  display: none;
  height: 20px;
  stroke: var(--color-text-light);
  transition: stroke 0.3s ease;
}

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

.faq-item:hover .faq-icon::before,
.faq-item.active .faq-icon::before {
  border-color: var(--color-text);
}

.faq-item.active .faq-icon svg {
  stroke: var(--color-text);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 32px 24px 32px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-light);
  margin: 0;
}

/* Contact CTA */
.contact-cta {
  padding: 160px 0;
  background:url('../images/coop.jpg') center/cover no-repeat;
  text-align: center;
  color: #fff;
}

.contact-cta .cta-content h2 {
  font-size: 56px;
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.contact-cta .cta-content p {
  font-size: 18px;
  margin-bottom: 56px;
  opacity: 0.7;
  font-weight: 300;
}

.contact-cta .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  letter-spacing: 0.5px;
}

.contact-cta .btn-primary:hover {
  background: #fff;
  color: var(--color-text);
  border-color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-info {
    padding: 48px 32px;
  }

  .form-container {
    padding: 48px 32px;
  }

  .map-locations {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    height: 40vh;
    min-height: 350px;
  }

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

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

  .contact-methods,
  .contact-form-section,
  .bases-map,
  .faq-section {
    padding: 80px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-icon {
    width: 64px;
    height: 64px;
  }

  .contact-icon svg {
    width: 32px;
    height: 32px;
  }

  .form-info h2 {
    font-size: 28px;
  }

  .form-info > p {
    font-size: 15px;
  }

  .contact-qr img {
    width: 140px;
    height: 140px;
  }

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

  .form-group-full {
    grid-column: span 1;
  }

  .btn-submit {
    grid-column: span 1;
  }

  .map-container {
    padding: 40px 24px;
  }

  .map-locations {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-question {
    padding: 20px 24px;
  }

  .faq-question h3 {
    font-size: 16px;
  }

  .faq-answer p {
    padding: 0 24px 20px 24px;
    font-size: 14px;
  }

  .contact-cta {
    padding: 100px 0;
  }

  .contact-cta .cta-content h2 {
    font-size: 32px;
  }

  .contact-cta .cta-content p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contact-hero-content h1 {
    font-size: 28px;
  }

  .contact-hero-content p {
    font-size: 14px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .form-info {
    padding: 40px 24px;
  }

  .form-container {
    padding: 40px 24px;
  }

  .form-info h2 {
    font-size: 24px;
  }

  .contact-cta .cta-content h2 {
    font-size: 28px;
  }
}
