#page-5 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Header'ı üstte tutmak için */
    align-items: stretch; /* Header'ın full-width olması için */
    text-align: center;
    min-height: 100vh;
    background-color: #E0E8F0; /* Partners & Clients ile aynı arka plan */
    padding: 0;
}

#page-5 .a-contact-header {
    width: 100%;
    flex-shrink: 0; /* Header'ın küçülmesini önler */
    margin: 0;
}


#page-5 .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Yüksekliği eşitler */
    padding: 3rem;
}

#page-5 .left-column,
#page-5 .contact-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#page-5 #map {
    max-width: 90% ;
}

#page-5 .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 0; /* Alt marjı küçülttüm */
}

#page-5 .contact-item {
    flex: 1 1 45%;
    max-width: 45%;
    margin: 0; /* Üst ve alt marjı küçülttüm */
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #333;
}

#page-5 .contact-form {
    flex: 1;
    max-width: 30%; /* Genişliği aynı tutuyoruz */
    margin-right: 27px;
    padding: 9px; /* Padding'i küçülttük */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    border-radius: 9px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* İçeriği dikeyde yaymak için */

}

#page-5 .contact-form form input[type="text"],
#page-5 .contact-form form input[type="email"],
#page-5 .contact-form form input[type="tel"],
#page-5 .contact-form form textarea {
    margin-top: 6px; /* Inputlar arasındaki boşluğu küçülttük */
    margin-bottom: 6px;
    padding: 11px; /* İç boşlukları koruduk */
    border: 1px solid #ccc;
    border-radius: 9px;
    font-size: 16px;
}

/* Textarea resizing and limits */
#page-5 .contact-form form textarea {
    resize: vertical; /* Vertical resizing */
    min-height: 99px; /* Minimum height */
    max-height: 153px; /* Maximum height */
}

#page-5 .contact-form form input[type="submit"] {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 18px;
    font-size: 16px;
    margin-bottom: 0; /* Alt marjin kaldırıldı */
}

/* Formu daha kompakt hale getirmek için */
#page-5 .contact-form form {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Input alanları arasındaki boşluğu kontrol etmek için */
}

/* Harita düzenlemeleri */
#page-5 #map iframe {
    width: 100%;
    height: 400px;
    border-radius: 9px;
}

@media (max-width: 768px) {
    #page-5 .container {
        flex-direction: column;
    }

    #page-5 .left-column,
    #page-5 .contact-form {
        max-width: 100%;
        margin: 0;
    }
}

/* Contact Us Başlık Stilleri */
.a-contact-header {
  background-image: url('../images/backgroundheader.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  padding: 8rem 0 5rem 0;
  color: white;
  margin-top: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Gradient Overlay */
.a-contact-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(2, 0, 53, 0.85) 0%, rgba(0, 174, 239, 0.4) 100%);
  z-index: -1;
}

.a-contact-heading {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  display: inline-block;
}

.a-contact-heading::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #00aeef, transparent);
  border-radius: 2px;
  animation: fadeIn 1s ease-out 0.3s both;
}

.a-contact-subheading {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .a-contact-header {
    padding: 6rem 0 4rem 0;
    background-attachment: scroll;
  }
  
  .a-contact-heading {
    font-size: 2.5rem;
  }
  
  .a-contact-subheading {
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .a-contact-heading {
    font-size: 2rem;
  }
  
  .a-contact-subheading {
    font-size: 1rem;
  }
}