/* Page Container */
.contact-section {
  text-align: center;
  padding: 60px 20px;
  margin-top: 1rem;
}
/* Get in Touch Section (Top Container) */
.get-touch {
  border-radius: 10px;
  background: var(--sections);
  padding: 1rem;
  text-align: center;
  box-shadow: 0px 1px 15px 0.1px var(--shadows);
  transition: all 0.3s ease;
  max-width: 70%;
}
.contact-section {
  padding: 3rem 1.5rem;
  background-color: var(--background);
}
.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-header h1 {
  font-size: 2.8em;
  color: var(--text);
  margin-bottom: 1rem;
}
.contact-header p {
  font-size: 1.2em;
  color: var(--text);
  line-height: 1.6;
}
.contact-header .email-link {
  color: var(--headers);
  font-weight: bold;
  text-decoration: none;
}
.contact-header .email-link:hover {
  text-decoration: underline;
}
/* Contact Info and Social Icons */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-info {
  flex: 1;
  background: var(--sections);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.contact-info h2 {
  font-size: 2em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.social-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.social-icons a {
  font-size: 2.5rem;
  color: var(--text);
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.3);
}
.social-icons a:nth-child(1):hover {
  color: var(--headers); /* Gmail */
}
.social-icons a:nth-child(2):hover {
  color: #0A66C2; /* LinkedIn */
}
.social-icons a:nth-child(3):hover {
  color: #25D366; /* WhatsApp */
}
.social-icons a:nth-child(4):hover {
  color: #1DA1F2; /* X */
}
.social-icons a:nth-child(5):hover {
  color: #FF0000; /* YouTube */
}
.social-icons a:nth-child(6):hover {
  color: #c13584; /* Instagram */
}
/* Contact Form */
.contact-form {
  flex: 2;
  padding: 2rem;
  background-color: var(--sections);
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form h2 {
  font-size: 2em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.form-group {
  margin-bottom: 1.5rem;
}
.contact-form label {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--headers);
  margin-top: 5px;
}
.contact-form button {
  padding: 15px 25px;
  font-size: 1.2em;
  color: var(--sections);
  background-color: var(--headers);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}
.contact-form button:hover {
  background-color: var(--text);
  color: var(--background);
  font-size: 1.3em;
}
@media (max-width: 768px) {
  .get-touch,
  .contact-content {
    max-width: 100%;
    margin: 1rem 0;
  }
  
  .contact-content {
    flex-direction: column;
    gap: 1.5rem; /* Reduced from 3rem for mobile */
  }
  
  .contact-info,
  .contact-form {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  /* Change social icons to horizontal on mobile */
  .social-icons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .social-icons a {
    font-size: 2rem; /* Slightly smaller icons on mobile */
  }
  
  /* Adjust form elements for mobile */
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
  }
  
  .contact-form button {
    padding: 12px 20px;
  }
  
  /* Style for form alert on mobile */
  #formAlert {
    font-size: 0.9em;
    padding: 10px;
  }
}
@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 2em;
  }
  
  .contact-header p {
    font-size: 1em;
  }
  
  .contact-info h2,
  .contact-form h2 {
    font-size: 1.5em;
  }
  
  .social-icons {
    gap: 1rem;
  }
  
  .social-icons a {
    font-size: 1.75rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
}

#formAlert {
  margin-bottom: 1rem;
  border-radius: 8px;
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
