.logo1 {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.logo-icons {
  width: 60px;
  height: 60px;
  position: relative;       /* BUG FIX: anchor for ::before pseudo-element */
}

.logo-icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;       /* BUG FIX: sit above the ::before badge */
  z-index: 1;
}

.logo-icons::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  z-index: 0;               /* BUG FIX: stays behind the logo image */
  pointer-events: none;
}

/* ===== MAIN CARD ===== */
.contact-card {
  display: flex;
  max-width: 1100px;
  margin: 80px auto 40px;
  padding: 30px;
  border-radius: 24px;
  gap: 40px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);

  animation: fadeUp 0.8s ease;
}

/* ===== LEFT CONTENT ===== */
.content-side {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.title-header h2 {
  font-size: 28px;
  font-weight: bold;
  background: linear-gradient(135deg, #4a6741, #7ca982);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;    /* BUG FIX: standard property for Firefox */
  color: transparent;
}

.description {
  color: #6b7280;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* ===== FORM =====
   BUG FIX: scoped to text-like inputs so checkboxes/radios aren't stretched. */
.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #f9fafb;
  transition: border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease;   /* BUG FIX: was `transition: 0.3s` (all props) */
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4a6741;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(74,103,65,0.1);
  outline: none;
}

.contact-form button {
  background: linear-gradient(135deg, #4a6741, #7ca982);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;  /* BUG FIX: scoped */
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(74,103,65,0.4);
}

/* ===== IMAGE ===== */
.image-side {
  flex: 1;
  overflow: hidden;
  border-radius: 20px;
  align-self: stretch;      /* BUG FIX: match card height on desktop */
  min-height: 250px;        /* BUG FIX: stays visible when stacked on mobile */
}

.image-side img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;           /* BUG FIX: avoid inline-image whitespace gap */
  transition: transform 0.6s ease;   /* BUG FIX: was animating ALL properties */
}

.image-side:hover img {
  transform: scale(1.1);
}

/* ===== INFO CARDS ===== */
.info-section {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.info-card {
  flex: 1;
  display: flex;
  gap: 15px;
  background: #000078;
  color: white;
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;  /* BUG FIX: scoped */
  position: relative;
  overflow: hidden;
  isolation: isolate;       /* BUG FIX: keep ::after shine within this card */
}

.info-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;  /* BUG FIX: was animating every property */
  pointer-events: none;        /* BUG FIX: don't block clicks on card content */
  z-index: 0;
}

.info-card > * { position: relative; z-index: 1; }  /* content above the shine */

.info-card:hover::after { left: 100%; }

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(228, 30, 38, 0.3);
}

.info-card h3 {
  margin-bottom: 10px;
}

/* ===== ANIMATION ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .contact-card {
    flex-direction: column-reverse;
    margin: 40px 16px;          /* BUG FIX: don't touch screen edges */
    padding: 20px;
  }

  .image-side {
    width: 100%;
    min-height: 240px;
  }

  .info-section {
    flex-direction: column;
  }
}