/* Contact Section Styles */
.contact {
  background-color: var(--gray-100);
  position: relative;
}

.contact-wrapper {
  display: flex;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-lg);
}

.contact-info {
  flex: 1;
  padding: var(--space-5);
  background-color: var(--navy-900);
  color: var(--white);
  display: flex;
  flex-direction: column;
}

.contact-info .section-title {
  color: var(--white);
}

.contact-text {
  color: var(--gray-300);
  margin-bottom: var(--space-4);
}

.contact-details {
  margin-top: auto;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-right: var(--space-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact Icons */
.location-icon:before,
.phone-icon:before,
.email-icon:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.location-icon:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.phone-icon:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
}

.email-icon:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'%3E%3C/rect%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'%3E%3C/path%3E%3C/svg%3E");
}

.contact-item h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.contact-item p {
  color: var(--gray-300);
  margin-bottom: 0;
}

.contact-social {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--orange-500);
  transform: translateY(-3px);
}

/* Social Icons */
.facebook:before,
.instagram:before,
.linkedin:before,
.twitter:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.facebook:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");
}

.instagram:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='20' x='2' y='2' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' x2='17.51' y1='6.5' y2='6.5'%3E%3C/line%3E%3C/svg%3E");
}

.linkedin:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z'%3E%3C/path%3E%3Crect width='4' height='12' x='2' y='9'%3E%3C/rect%3E%3Ccircle cx='4' cy='4' r='2'%3E%3C/circle%3E%3C/svg%3E");
}

.twitter:before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z'%3E%3C/path%3E%3C/svg%3E");
}

.contact-form-container {
  flex: 1.2;
  padding: var(--space-5);
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  width: 100%;
}

.form-group {
  flex: 0 0 calc(50% - var(--space-1));
  margin-bottom: var(--space-1);
}

.form-group-contact {
  flex: 0 0 calc(48% - var(--space-smol));
  margin-bottom: var(--space-1);
}

.form-group.full-width {
  flex: 0 0 100%;
}

.form-group label,
.form-group-contact label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea,
.form-group-contact input,
.form-group-contact select,
.form-group-contact textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-group-contact input:focus,
.form-group-contact select:focus,
.form-group-contact textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

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

.contact-form button {
  margin-top: var(--space-2);
}

/* Form Animations */
@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes infoSlideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-info.animated {
  animation: infoSlideIn 0.8s forwards;
}

.contact-form-container.animated {
  animation: formSlideIn 0.8s forwards;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .contact-wrapper {
    flex-direction: column;
  }
  
  .contact-info {
    padding: var(--space-4);
  }
  
  .contact-details {
    margin-top: var(--space-4);
  }
}

@media screen and (max-width: 768px) {
  .form-group {
    flex: 0 0 100%;
  }
}

@media screen and (max-width: 576px) {
  .contact-info,
  .contact-form-container {
    padding: var(--space-3);
  }
  
  .contact-form {
    gap: var(--space-2);
  }
}
