/* contact.css */
/* CONTACT PAGE SPECIFIC STYLES */

/* WHITE THEME STYLES */
.white-theme {
  background: white !important;
  color: #333 !important;
}

.white-theme .section-bg.contact-bg {
  display: none !important;
}

.white-theme .contact-card,
.white-theme .contact-form-container,
.white-theme .faq-item {
  background: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  color: #333 !important;
}

.white-theme .contact-card h3,
.white-theme .form-title,
.white-theme .section-title h2,
.white-theme .faq-question span {
  color: #333 !important;
}

.white-theme .contact-card p,
.white-theme .section-title p,
.white-theme .faq-answer p,
.white-theme .contact-detail,
.white-theme .contact-detail span:not(.follow-text),
.white-theme .form-label {
  color: #666 !important;
}

.white-theme .contact-icon {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--primary) !important;
}

.white-theme .form-control {
  background: white !important;
  border: 1px solid #e9ecef !important;
  color: #333 !important;
}

.white-theme .form-control:focus {
  outline: 2px solid var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.white-theme .contact-card:hover,
.white-theme .faq-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border-color: #dee2e6 !important;
}

.white-theme .faq-question:hover {
  background: rgba(59, 130, 246, 0.05) !important;
}

/* Contact Link Styling - No Underline */
.contact-link-no-underline {
  color: #3b82f6 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.3s ease !important;
}

.contact-link-no-underline:hover {
  color: #2563eb !important;
  text-decoration: none !important;
}

/* Apply to all contact links */
.contact-detail a[href*="maps"],
.contact-detail a[href*="tel"],
.contact-detail a[href*="mailto"] {
  color: #3b82f6 !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.3s ease !important;
}

.contact-detail a[href*="maps"]:hover,
.contact-detail a[href*="tel"]:hover,
.contact-detail a[href*="mailto"]:hover {
  color: #2563eb !important;
  text-decoration: none !important;
}

/* Social links in contact card - FIXED ALIGNMENT */
.contact-detail.social-media-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.white-theme .contact-detail.social-media-row {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-detail.social-media-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.contact-detail.social-media-row a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.contact-detail.social-media-row .follow-text {
  color: var(--gray);
  font-size: 14px;
  margin-left: 5px;
  white-space: nowrap;
}

.white-theme .contact-detail.social-media-row .follow-text {
  color: #666;
}

/* Desktop: Keep proper alignment */
@media (min-width: 769px) {
  .contact-detail.social-media-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }
  
  .contact-detail.social-media-row .follow-text {
    margin-left: 10px;
  }
}

/* Mobile: Center align with better spacing */
@media (max-width: 768px) {
  .contact-detail.social-media-row {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 10px;
  }
  
  .contact-detail.social-media-row .follow-text {
    margin-left: 0;
    margin-top: 5px;
    width: 100%;
    text-align: center;
  }
}

/* Section Backgrounds */
.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
  transition: opacity 0.8s ease;
}

.contact-bg {
  background: radial-gradient(
      circle at 30% 30%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 40%
    ),
    linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: gradientShift 22s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Contact Hero Section */
.contact-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 150px 40px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-hero-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.contact-hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.contact-hero h1 {
  font-size: 52px;
  line-height: 1.2;
  margin-bottom: 25px;
  background: linear-gradient(to right, var(--light), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  overflow: hidden;
}

.tagline {
  font-size: 14px;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 30px;
  animation: fadeIn 1s ease;
}

.description {
  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1.5s ease;
}

/* Contact Section */
.contact-section {
  padding: 100px 40px;
  position: relative;
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-card {
  background: var(--secondary);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #334155;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
  width: 70px;
  height: 70px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--primary);
  transition: all 0.4s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
  background: rgba(59, 130, 246, 0.2);
}

.contact-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.contact-card p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 15px;
}

.contact-details {
  margin-top: 20px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--gray);
}

.contact-detail i {
  color: var(--primary);
  width: 20px;
}

.contact-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}

.contact-link:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-container {
  background: var(--secondary);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid #334155;
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.form-title {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray);
  font-weight: 500;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #334155;
  border-radius: 10px;
  color: var(--light);
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* Updated Submit Button to match Get Started button */
/* Alternative: Slightly larger but matching style */
.submit-btn {
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 14px 32px; /* Slightly larger than header button */
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-family: "Poppins", sans-serif;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/* Rest of the styles remain the same as above */

/* Keep the hover effects the same */
.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Form States */
.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-control.success {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.error-message {
  color: var(--danger);
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.form-success {
  background: var(--success);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-error {
  background: var(--danger);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease;
}

/* Loading States */
.form-loading {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.form-loading .spinner {
  width: 24px;
  height: 24px;
  border: 3px solid transparent;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.submit-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

/* Map Section */
.map-section {
  padding: 100px 40px;
  position: relative;
}

.map-container {
  max-width: 1400px;
  margin: 0 auto;
}

.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  height: 500px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-align: center;
}

.map-placeholder i {
  font-size: 80px;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 20px;
}

#map {
  width: 100%;
  height: 100%;
  border: none;
}

.map-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.map-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.map-btn:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
  padding: 100px 40px;
  position: relative;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: var(--secondary);
  border-radius: 15px;
  margin-bottom: 20px;
  border: 1px solid #334155;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-item.active {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.faq-question {
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
}

.faq-question h3 {
  font-size: 18px;
  color: var(--light);
  margin: 0;
}

.faq-toggle {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--gray);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding: 0 30px 25px;
  max-height: 500px;
}

/* Mobile Responsive Fixes */
@media (max-width: 1200px) {
  .contact-container {
    gap: 50px;
  }

  .contact-hero h1 {
    font-size: 46px;
  }
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 130px 20px 60px;
  }

  .contact-section,
  .map-section,
  .faq-section {
    padding: 80px 20px;
  }

  .contact-hero h1 {
    font-size: 36px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-form-container {
    padding: 30px 25px;
  }

  .contact-card {
    padding: 25px;
  }

  .map-wrapper {
    height: 400px;
  }

  .faq-question {
    padding: 20px 25px;
  }

  .faq-question h3 {
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
  }

  /* Mobile-specific centering for contact cards */
  .contact-card {
    text-align: center;
  }

  .contact-icon {
    margin-left: auto;
    margin-right: auto;
  }

  /* Center contact details on mobile */
  .contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Center each detail item on mobile */
  .contact-detail {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  /* Social media row specific mobile styling */
  .contact-detail:has(a[href*="linkedin"]) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }

  .contact-detail:has(a[href*="linkedin"]) a {
    order: 1;
  }

  .contact-detail:has(a[href*="linkedin"]) span {
    order: 2;
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }

  /* Fix horizontal scroll issues */
  .contact-container,
  .faq-container,
  .map-container {
    overflow-x: hidden;
    max-width: 100%;
  }

  .map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    margin: 0 -5px;
    width: calc(100% + 10px);
  }

  #map {
    width: 100%;
    height: 100%;
    min-height: 400px;
  }


@media (max-width: 576px) {
  .contact-hero h1 {
    font-size: 32px;
  }

  .contact-form-container {
    padding: 25px 20px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .map-wrapper {
    height: 300px;
  }

  /* Extra small screen adjustments */
  .contact-detail {
    flex-direction: column;
    gap: 5px;
  }

  .contact-detail i {
    margin-bottom: 5px;
  }
}