.hero-section {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.login-btn button {
  background-color: white !important;
  color: black !important;
  border: 1px solid var(--primary-color);
  border-radius: 25px;
  padding: 8px 25px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.dark-mode .login-btn button {
  background-color: var(--secondary-color) !important;
  color: white !important;
  border: 1px solid var(--primary-color);
  border-radius: 25px;
  padding: 8px 25px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-section {
  background-color: white;
  padding: 10px 1%;
  color: black;
}

.dark-mode .contact-section {
  background-color: var(--secondary-color);
  padding: 10px 1%;
  color: white;
}

.section-header {
  align-items: center !important;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: black;
}

.dark-mode .section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.section-header p {
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.dark-mode .section-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Make cards narrower and square while preserving layout */
.contact-left .contact-card {
  max-width: 320px;
  /* control card width */
  height: 300px;
  margin: 0 auto;
  /* center inside left column */
  aspect-ratio: 1 / 1;
  /* make the card square */
  display: flex;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  justify-content: center;
  /* vertically center content */
  padding: 24px;
  /* slightly reduced padding for square fit */
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.contact-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, var(--primary-color), #CF1819);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  transition: all 0.3s ease;
}

.card-icon-whatsapp {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: linear-gradient(135deg, #00bc22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  transition: all 0.3s ease;
}

.card-icon-social {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
  transform: rotate(15deg) scale(1.1);
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: black;
  position: relative;
}

.dark-mode .contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: white;
  position: relative;
}

.contact-card h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), #CF1819);
  transition: width 0.4s;
}

.contact-card:hover h3::after {
  width: 80px;
}

.contact-card p {
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: color 0.4s;
}

.dark-mode .contact-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: color 0.4s;
}

.contact-card:hover p {
  color: black;
}

.dark-mode .contact-card:hover p {
  color: white;
}

.contact-btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(90deg, var(--primary-color), #CF1819);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-btn.disabled {
  background: rgba(0, 0, 0, 0.1);
  cursor: default;
}

.contact-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}

.status-open {
  color: #4caf50;
  font-weight: bold;
}

.contact-btn i {
  margin-left: 8px;
  transition: transform 0.3s;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(163, 41, 25, 0.4);
}

.contact-btn:hover i {
  transform: translateX(5px);
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #CF1819, var(--primary-color));
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  border-radius: 30px;
}

.contact-btn:hover::before {
  opacity: 1;
}

.social-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.social-btn.fb {
  background-color: #3b5998;
}

.social-btn.ig {
  /* Instagram-style gradient updated to provided palette */
  background: linear-gradient(45deg,
      #feda75,
      /* yellow */
      #fa7e1e,
      /* orange */
      #d62976,
      /* pink */
      #962fbf,
      /* purple */
      #4f5bd5
      /* blue */
    );
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Ensure contact layout uses a single column for cards and the map matches height */
.contact-grid {
  display: flex;
  gap: 24px;
  align-items: stretch;
  /* let columns stretch to same height */
}

.contact-left {
  /* make left (cards) narrower */
  flex: 0 0 38%;
  min-width: 260px;
}

.contact-right {
  /* make right (map) wider */
  flex: 0 0 62%;
  min-width: 280px;
}

.contact-left .contact-cards {
  display: grid;
  grid-template-columns: 1fr !important;
  /* force one card per row */
  gap: 30px;
  margin: 0;
  /* take full width of left column */
  max-width: none;
}

.contact-right .map-container {
  height: 100%;
  /* fill the column height which matches left column */
  min-height: 200px;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
    text-align: center !important;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

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

  .contact-card {
    padding: 30px 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}