/* =========================================
   Contact Page Styles — Enhanced Modern
   ========================================= */

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(50deg, rgba(34, 181, 115, 0.1) 0%, rgba(139, 198, 63, 0.05) 100%);
  padding: 80px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

/* Animated gradient mesh */
.contact-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 181, 115, 0.06) 0%, transparent 65%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morphBg 10s ease-in-out infinite;
  pointer-events: none;
}

.contact-hero::after {
  content: '';
  position: absolute;
  bottom: 5%;
  left: 5%;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(34, 181, 115, 0.05);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphBg 12s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes morphBg {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  line-height: 1.2;
}

.contact-hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 500;
  line-height: 1.7;
}

/* Contact Content Area */
.contact-content {
  padding: 80px 0;
}

/* Form Wrapper — Glassmorphism */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: 24px;
  padding: 50px;
  border: 1px solid rgba(34, 181, 115, 0.1);
  box-shadow: 0 20px 60px rgba(34, 181, 115, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-wrapper:hover {
  box-shadow: 0 30px 80px rgba(34, 181, 115, 0.12);
  border-color: rgba(34, 181, 115, 0.18);
}

/* Gradient progress bar at top */
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary-color), var(--primary-light), var(--primary-color), var(--primary-dark));
  background-size: 200% 100%;
  animation: formShimmer 3s linear infinite;
  border-radius: 24px 24px 0 0;
}

@keyframes formShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Decorative background circle */
.contact-form-wrapper::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34, 181, 115, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-form-wrapper h2 {
  font-size: 1.9rem;
  margin-bottom: 30px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

/* Form Layout - Grid */
.contact-form-wrapper form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form-wrapper form input[type="hidden"] {
  display: none;
}

/* Form Group — Animated Focus */
.form-group {
  margin-bottom: 0;
  /* Handled by grid gap */
  position: relative;
  z-index: 1;
}

/* Message field spans full width */
.form-group:nth-of-type(5) {
  grid-column: 1 / -1;
}

/* Button spans full width */
.btn-contact {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.form-group:focus-within label {
  color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group .form-control,
.form-group .form-select {
  width: 100%;
  border: 2px solid rgba(34, 181, 115, 0.15);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group .form-control:focus,
.form-group .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(34, 181, 115, 0.08);
  background: white;
}

.form-group textarea,
.form-group textarea.form-control {
  min-height: 120px;
  resize: vertical;
  font-family: 'Lato', sans-serif;
}

/* Submit Button — Enhanced */
.btn-contact,
.contact-form-wrapper .custom-btn,
.contact-form-wrapper .btn-primary {
  width: 100%;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  background: linear-gradient(50deg, var(--primary-color), var(--primary-light));
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(34, 181, 115, 0.25);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-contact::before,
.contact-form-wrapper .custom-btn::before,
.contact-form-wrapper .btn-primary::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;
  z-index: -1;
}

.btn-contact:hover,
.contact-form-wrapper .custom-btn:hover,
.contact-form-wrapper .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(34, 181, 115, 0.35);
}

.btn-contact:hover::before,
.contact-form-wrapper .custom-btn:hover::before,
.contact-form-wrapper .btn-primary:hover::before {
  left: 100%;
}

.btn-contact:active,
.contact-form-wrapper .custom-btn:active,
.contact-form-wrapper .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(34, 181, 115, 0.2);
}

.contact-form-wrapper .custom-btn:hover::before,
.contact-form-wrapper .btn-primary:hover::before {
  left: 100%;
}

.contact-form-wrapper .custom-btn:hover,
.contact-form-wrapper .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(34, 181, 115, 0.35);
}

.contact-form-wrapper .custom-btn:active,
.contact-form-wrapper .btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(34, 181, 115, 0.2);
}

/* Info Cards — Glassmorphism + Staggered */
.info-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border-radius: 20px;
  padding: 35px;
  border: 1px solid rgba(34, 181, 115, 0.08);
  box-shadow: 0 8px 30px rgba(34, 181, 115, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

/* Animated left border */
.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background: linear-gradient(50deg, var(--primary-color), var(--primary-light));
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(34, 181, 115, 0.12);
  border-color: rgba(34, 181, 115, 0.15);
}

.info-card:hover::before {
  height: 100%;
}

/* Alternating info card accents */
.info-card:nth-child(2)::before {
  background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

.info-card:nth-child(3)::before {
  background: linear-gradient(180deg, var(--slate), #5a7faa);
}

/* Icon — Spin on hover */
/* Icon — Spin on hover */
.info-card-icon i {
  width: 55px;
  height: 55px;
  background: linear-gradient(50deg, var(--primary-color), var(--primary-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(34, 181, 115, 0.2);
}

.info-card:hover .info-card-icon i {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(34, 181, 115, 0.3);
}

/* Social Links - Horizontal Row */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}

.social-link i {
  width: 42px;
  height: 42px;
  background: white;
  border: 1px solid rgba(34, 181, 115, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 181, 115, 0.05);
}

.social-link:hover i {
  background: linear-gradient(50deg, var(--primary-color), var(--primary-light));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 181, 115, 0.2);
  border-color: transparent;
}

.info-card h3,
.info-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.info-card p,
.info-card a {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 500;
}

.info-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.info-card a:hover {
  color: var(--primary-light);
}

/* Map Section */
.map-section {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(34, 181, 115, 0.08);
  margin-top: 50px;
  border: 1px solid rgba(34, 181, 115, 0.08);
  transition: box-shadow 0.5s ease;
}

.map-section:hover {
  box-shadow: 0 20px 60px rgba(34, 181, 115, 0.12);
}

.map-section iframe {
  border: none;
  display: block;
}

/* =========================================
   Responsive Design for Contact Page
   ========================================= */

@media (max-width: 992px) {
  .contact-hero {
    padding: 70px 0 40px;
    margin-top: 60px;
  }

  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-form-wrapper {
    padding: 40px;
  }

  .contact-content {
    padding: 60px 0;
  }

  .info-card {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 60px 0 35px;
    margin-top: 50px;
  }

  .contact-hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
    border-radius: 18px;
  }

  .contact-form-wrapper form {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-group:nth-of-type(5),
  .btn-contact {
    grid-column: span 1;
  }

  .contact-form-wrapper h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
  }

  .form-group .form-control,
  .form-group .form-select {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  .contact-content {
    padding: 50px 0;
  }

  .info-card {
    padding: 25px;
    margin-bottom: 18px;
    border-radius: 16px;
  }

  .info-card .icon,
  .info-card i:first-child {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .info-card h3,
  .info-card h5 {
    font-size: 1.1rem;
  }

  .info-card p,
  .info-card a {
    font-size: 0.9rem;
  }

  .map-section {
    border-radius: 18px;
    margin-top: 35px;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 50px 0 30px;
    margin-top: 40px;
  }

  .contact-hero h1 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .contact-hero p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .contact-form-wrapper {
    padding: 25px 16px;
    border-radius: 16px;
  }

  .contact-form-wrapper h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    font-size: 0.88rem;
    margin-bottom: 6px;
  }

  .form-group .form-control,
  .form-group .form-select {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .contact-form-wrapper .custom-btn,
  .contact-form-wrapper .btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 12px;
  }

  .contact-content {
    padding: 40px 0;
  }

  .info-card {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 14px;
  }

  .info-card .icon,
  .info-card i:first-child {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .info-card h3,
  .info-card h5 {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .info-card p,
  .info-card a {
    font-size: 0.85rem;
  }

  .map-section {
    border-radius: 14px;
    margin-top: 25px;
  }
}