.pagecontact {
  margin-top: 130px;
  text-align: center;
}

.contactpagetitle {
  background: url(../assets/banner/b2.jpg);
  background-size: cover; /* This property ensures that the background image covers the entire container */
  background-position: center; /* This property centers the background image within the container */
  height: 300px;
}

.contactpagetitle h1 {
  padding-top: 150px;
  font-family: "Lato", sans-serif;
  font-size: 50px;
}

/* /////////////////////////// */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #2c3e50;
  --accent-color: #2c3e50;
  --text-dark: #2c3e50;
  --text-light: #2c3e50;
  --white: #ffffff;
  --light-gray: #f7fafc;
  --border-color: #e2e8f0;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
  --gradient: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  --gradient-light: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
}

.pagecontact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  margin: 40px;
}

.section-header {
  text-align: center;
  padding: 3rem 0 2rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 40px;
  /* align-items: start; */
}

/* Form Styles */
form {
  background: var(--gradient-light);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.form-control {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  margin-bottom: 1.5rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.send-button {
  background: var(--gradient);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.send-button::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;
}

.send-button:hover::before {
  left: 100%;
}

.send-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.alt-send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Contact Info Styles */
.direct-contact-container {
  /* padding: 1rem; */
}

.contact-list {
  list-style: none;
  margin-bottom: 2rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--light-gray);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.list-item:hover {
  background: var(--gradient-light);
  transform: translateX(5px);
}

.list-item i {
  color: var(--primary-color);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-text {
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.5;
}

.contact-text a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: var(--primary-color);
}

/* Social Media */
.social-media-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  justify-content: center;
  margin: 2rem 0;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  color: var(--white);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.contact-icon:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow);
  color: white;
}

/* Divider */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-color),
    transparent
  );
  margin: 2rem 0;
}

/* Map Section */
.contact-map {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.contact-map .containers {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* body {
                padding: 1rem 0;
            } */

  .contact-wrapper {
    grid-template-columns: 1fr;
    justify-content: center;
    place-items: center;
    align-items: center;
  }

  .section-header {
    padding: 2rem 0 1rem;
  }

  form {
    padding: 1.5rem;
  }

  .social-media-list {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .list-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .list-item i {
    align-self: center;
  }
}

@media (max-width: 480px) {
  /* .contact-wrapper {
                padding: 1rem;
            } */

  .form-control {
    padding: 0.8rem 1rem;
  }

  .send-button {
    padding: 0.8rem 1.5rem;
  }

  .contact-map iframe {
    height: 300px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeInUp 0.6s ease-out;
}

.contact-map .containers {
  animation: fadeInUp 0.8s ease-out;
}

/* Loading state for form */
.send-button.loading {
  background: var(--text-light);
  cursor: not-allowed;
  pointer-events: none;
}

.send-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--white);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Focus styles for accessibility */
.form-control:focus,
.send-button:focus,
.contact-icon:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
