@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&display=swap");

@keyframes contact2FadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact2 {
  position: relative;
  width: 100%;
  background:
    radial-gradient(circle at 15% 10%, rgba(212, 162, 76, 0.1), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(30, 58, 95, 0.1), transparent 45%),
    linear-gradient(150deg, #eef4ff 0%, #e6edfb 45%, #f3ecdf 100%);
  padding: 80px 48px;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  overflow: hidden;
}

.contact2__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.contact2__glow--one {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -110px;
  background: radial-gradient(circle, rgba(212, 162, 76, 0.2), transparent 70%);
}

.contact2__glow--two {
  width: 440px;
  height: 440px;
  bottom: -150px;
  right: -120px;
  background: radial-gradient(circle, rgba(30, 58, 95, 0.16), transparent 70%);
}

.contact2__inner {
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- badge (minimal inline label, matches other sections) ---------- */
.contact2__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(28px);
}

.contact2--visible .contact2__badge {
  animation: contact2FadeInUp 0.7s ease forwards;
  animation-delay: 0.05s;
}

.contact2__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(145deg, #f0c37a, #d4a24c);
  color: #1e3a5f;
  border-radius: 6px;
  flex-shrink: 0;
}

.contact2__badge-text {
  color: #1e3a5f;
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: "Inter", sans-serif;
  padding-left: 10px;
  border-left: 2px solid #d4a24c;
}

/* ---------- open grid (no white wrapper) ---------- */
.contact2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  width: 100%;
}

/* ---------- LEFT: info ---------- */
.contact2__left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(28px);
}

.contact2--visible .contact2__left {
  animation: contact2FadeInUp 0.8s ease forwards;
  animation-delay: 0.15s;
}

.contact2__heading {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #1e3a5f;
  margin: 0 0 12px 0;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.contact2__heading--accent {
  color: #d4a24c;
}

@keyframes contact2Pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(212, 162, 76, 0.1); }
}

.contact2__underline {
  display: block;
  width: 50px;
  height: 3px;
  border-radius: 2px;
  background: #d4a24c;
  margin-bottom: 20px;
  position: relative;
}

.contact2__underline::after {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d4a24c;
  animation: contact2Pulse 2.4s ease-in-out infinite;
}

.contact2__para {
  font-size: 16px;
  line-height: 1.7;
  color: #4a5568;
  margin: 0 0 14px 0;
  max-width: 420px;
}

.contact2__paraBold {
  font-size: 16px;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 28px 0;
}

.contact2__infoList {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.contact2__infoItem {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 162, 76, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateX(-24px);
}

.contact2--visible .contact2__infoItem {
  animation: contact2SlideIn 0.6s ease forwards;
  animation-delay: calc(var(--i) * 0.12s + 0.35s);
}

@keyframes contact2SlideIn {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

.contact2__infoItem:hover {
  transform: translateX(4px);
  border-color: rgba(212, 162, 76, 0.55);
  box-shadow: 0 8px 20px rgba(30, 58, 95, 0.1);
}

.contact2__infoIcon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e3a5f, #2d5480);
  color: #d4a24c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact2__infoItem:hover .contact2__infoIcon {
  transform: scale(1.08);
}

.contact2__infoText {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a5f;
  word-break: break-word;
}

.contact2__mapFrame {
  border-radius: 18px;
  padding: 3px;
  background: linear-gradient(160deg, #d4a24c, #f0c878 45%, #d4a24c 100%);
  box-shadow: 0 16px 34px rgba(30, 58, 95, 0.16);
  opacity: 0;
  transform: translateY(24px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact2--visible .contact2__mapFrame {
  animation: contact2FadeInUp 0.7s ease forwards;
  animation-delay: 0.75s;
}

.contact2__mapWrap {
  width: 100%;
  flex: 1;
  min-height: 200px;
  border-radius: 16px;
  overflow: hidden;
}

.contact2__map {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(15%);
}

/* ---------- RIGHT: form (glass card, matches other sections) ---------- */
.contact2__right {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 162, 76, 0.28);
  border-top: 3px solid #d4a24c;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  padding: 36px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  transform: translateY(28px);
}

.contact2--visible .contact2__right {
  animation: contact2FadeInUp 0.8s ease forwards;
  animation-delay: 0.25s;
}

.contact2__form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.contact2__field {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(212, 162, 76, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact2__field:focus-within {
  border-color: #d4a24c;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.14);
}

.contact2__field--textarea {
  align-items: flex-start;
  flex: 1;
}

.contact2__fieldIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8792a3;
  padding: 0 0 0 18px;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.contact2__field--textarea .contact2__fieldIcon {
  padding-top: 16px;
}

.contact2__field:focus-within .contact2__fieldIcon {
  color: #d4a24c;
}

.contact2__field input,
.contact2__field textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: #1e3a5f;
  padding: 15px 16px;
}

.contact2__field textarea {
  resize: vertical;
  min-height: 160px;
  height: 100%;
}

.contact2__field input::placeholder,
.contact2__field textarea::placeholder {
  color: #97a2b5;
}

.contact2__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e3a5f, #28407c);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  font-family: "Plus Jakarta Sans", sans-serif;
  border: none;
  border-radius: 10px;
  padding: 15px 22px 15px 32px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 12px 26px rgba(30, 58, 95, 0.28);
}

.contact2__btnIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d4a24c;
  color: #1e3a5f;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.contact2__btn:hover .contact2__btnIcon {
  transform: translateX(3px);
}

.contact2__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(30, 58, 95, 0.36);
}

/* ---------- reCAPTCHA v2 wrapper ---------- */
.contact2__captcha {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact2__captcha > div {
  transform-origin: left top;
}

.contact2__captchaError {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  padding-left: 2px;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1300px) {
  .contact2 {
    padding: 72px 36px;
  }

  .contact2__grid {
    gap: 44px;
  }
}

/* Large tablet: stack columns */
@media (max-width: 1100px) {
  .contact2 {
    padding: 68px 28px;
  }

  .contact2__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  /* columns are stacked now, so equal-height flex isn't needed */
  .contact2__left {
    height: auto;
  }

  .contact2__mapFrame {
    flex: none;
  }

  .contact2__mapWrap {
    flex: none;
    height: 200px;
    min-height: 0;
  }

  .contact2__para,
  .contact2__paraBold {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .contact2__right {
    padding: 28px;
  }
}

/* Small tablet / phone landscape */
@media (max-width: 768px) {
  .contact2 {
    padding: 60px 20px 40px;
  }

  .contact2__badge-text {
    font-size: 12.5px;
  }

  .contact2__heading {
    font-size: 24px;
  }

  .contact2__mapWrap {
    height: 180px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .contact2 {
    padding: 52px 16px 40px;
  }

  .contact2__heading {
    font-size: 22px;
  }

  .contact2__para,
  .contact2__paraBold {
    font-size: 14.5px;
  }

  .contact2__infoText {
    font-size: 14px;
  }

  .contact2__right {
    padding: 22px;
    border-radius: 16px;
  }

  .contact2__field input,
  .contact2__field textarea {
    font-size: 14px;
    padding: 13px 14px;
  }

  .contact2__field textarea {
    min-height: 130px;
  }

  .contact2__mapWrap {
    height: 160px;
  }

  .contact2__btn {
    width: 100%;
    text-align: center;
    padding: 15px 32px;
  }
}

/* Extra small phones */
@media (max-width: 400px) {
  .contact2 {
    padding: 44px 12px 32px;
  }

  .contact2__heading {
    font-size: 19px;
  }

  .contact2__underline {
    margin-bottom: 16px;
  }

  .contact2__para,
  .contact2__paraBold {
    font-size: 14px;
  }

  .contact2__infoIcon {
    width: 32px;
    height: 32px;
  }

  .contact2__infoText {
    font-size: 13px;
  }

  .contact2__right {
    padding: 16px;
  }

  .contact2__field input,
  .contact2__field textarea {
    font-size: 13.5px;
    padding: 12px;
  }

  /* Google widget is fixed ~304px wide; scale it down on very small screens */
  .contact2__captcha > div {
    transform: scale(0.9);
  }
}
