/* =========================================
   Contact Page – VisionAI
   White Theme + Rainbow Style
   Author: Zabiullah
   Version: 2.0
========================================= */

/* ===== CONTACT HERO ===== */
.contact-hero {
  padding: 60px 0 40px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.contact-hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.contact-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
}

/* ===== CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.contact-info,
.contact-form {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.contact-info:hover,
.contact-form:hover {
  box-shadow: var(--shadow-md);
}

/* ===== CONTACT INFO ===== */
.contact-info h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 24px 0 6px;
  font-weight: 700;
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info h3:last-of-type {
  margin-bottom: 4px;
}

.contact-info p {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-info a {
  transition: all 0.2s;
  font-weight: 600;
  color: var(--text);
}

.contact-info a:hover {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-info .icon-text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.contact-info .icon-text span {
  font-size: 18px;
}

/* ===== SOCIAL LINKS ===== */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--rainbow);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124,77,255,0.25);
}

/* ===== CONTACT FORM ===== */
.contact-form h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--text);
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
  color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #7c4dff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 18px;
  width: 100%;
}

/* ===== CONTACT ADDITIONAL ===== */
.contact-additional {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.contact-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-box p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-box p strong {
  color: var(--text);
}

.contact-box a {
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s;
}

.contact-box a:hover {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== MAP SECTION ===== */
.map-section {
  padding: 60px 0 40px;
  background: var(--bg-soft);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

.map-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--rainbow);
  border-radius: calc(var(--radius-lg) + 2px);
  z-index: -1;
  opacity: 0.3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-additional {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-container iframe {
    height: 300px;
  }
}

@media (max-width: 720px) {
  .contact-hero {
    padding: 40px 0 24px;
    text-align: center;
  }

  .contact-hero p {
    margin: 0 auto;
  }

  .contact-info,
  .contact-form {
    padding: 24px 20px;
  }

  .contact-additional {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: center;
  }

  .map-container iframe {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .contact-info h3 {
    font-size: 12px;
  }

  .contact-info p {
    font-size: 14px;
  }

  .contact-form button {
    padding: 12px;
    font-size: 14px;
  }

  .social-links a {
    padding: 6px 12px;
    font-size: 12px;
  }
}