:root {
  --font: "Segoe UI", Roboto, sans-serif;
  --primary: #4169e1;
  --pink: #fce7f5;
  --blue: #e0f0ff;
  --line-color: #ccc;
  --indian-font-stack: "Segoe UI", system-ui, Roboto, sans-serif;
  --gradient-head: linear-gradient(90deg, #764ba2, #667eea);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--indian-font-stack);
}

body {
  -webkit-text-size-adjust: 100%;
  font-family: var(--indian-font-stack);
  background: linear-gradient(120deg, #d0e6f7, #f3e8ff, #d0e6f7);
  background-attachment: fixed;
  padding: 0;
  margin: 0;
}

.header {
  background: linear-gradient(to right, #3949ab, #1e88e5);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  flex-wrap: wrap;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  padding: 15px;
  background: white;
  border-radius: 15px;
}

.matching-container {
  max-width: 800px;
  margin: auto;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  /* overflow: hidden; */
}

.matching-header {
  background: linear-gradient(90deg, var(--pink), var(--blue));
  /* color: purple; */
  background: linear-gradient(90deg, rgb(250, 101, 205), rgb(137, 137, 247));
  color: rgb(1, 1, 94);
  text-align: center;
  padding: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  /* Important for positioning the pseudo-element */
}

.match-wrapper {
  display: flex;
  flex-direction: row;
  position: relative;
}

.divider {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, #a2d2ff 0%, #90caf9 40%, #f48fb1 60%, #f8bbd0 100%);
  border-radius: 10px;
  box-shadow:
    0 0 10px rgba(144, 202, 249, 0.6),
    0 0 20px rgba(248, 187, 208, 0.4);
}

/* Heart container circle to match the line's style */
.divider::after {
  content: "❤";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #90caf9 0%, #f48fb1 100%);
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  box-shadow:
    0 0 15px #90caf9aa,
    0 0 15px #f48fb1aa inset;
  text-align: center;
  font-weight: 900;
  filter: drop-shadow(0 0 5px #f48fb1cc);
  transition: transform 0.3s ease;
  cursor: default;
}

/* Subtle heartbeat animation on hover */
.divider::after:hover {
  animation: heartbeat 1.2s infinite;
  transform: translate(-50%, -50%) scale(1.15);
}

@keyframes heartbeat {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.25);
  }
}

/* Autocomplete suggestions */
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #ccd;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.autocomplete-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 15px;
  color: #222;
}

.autocomplete-item:hover {
  background: #eef4ff;
  color: #0033cc;
}

.card {
  flex: 1;
  padding: 30px;
}

.girl-section {
  background-color: var(--pink);
  color: purple;
  border: 2px dotted #f8bbd0;
  border-right: none;
}

.boy-section {
  background-color: var(--blue);
  color: darkblue;
  border: 2px dotted #90caf9;
  border-left: none;
}

@media (max-width: 768px) {
  .girl-section {
    border-right: 2px dotted #f8bbd0;
    border-bottom: none;
  }

  .boy-section {
    border-left: 2px dotted #90caf9;
    border-top: none;
  }
}

.card h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
}

input,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 1rem;
}

.row3,.row3-boy {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.row3 select {
  flex: 1;
   min-height: 35px;color: purple;
  background-color: white;border: pink;
}
.row3-boy select {
  flex: 1;
   min-height: 35px;color: darkblue;border: darkblue;
  background-color: white;
}

.btn-container {
  text-align: center;
  margin: 10px 0;
}

.btn-submit {
  display: inline-block;
  width: 200px;
  padding: 10px 0;
  margin: 4px auto 6px;
  background: linear-gradient(90deg, rgb(6, 80, 122), rgb(97, 9, 238));
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: transform .25s;
  font-size: 15px;
}

.btn-submit:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .match-wrapper {
    flex-direction: column;
  }

  .divider {
    height: 1px;
    width: 100%;
    top: auto;
    left: 0;
    bottom: 50%;
    transform: translateY(50%);
  }
}

#girlName,
#girlPlace {
  color: purple; border: none;
}
#girlName::placeholder,
#girlPlace::placeholder {
  color: purple;
}

#girlName::placeholder {
  color: purple;
}

#boyName,
#boyPlace {
  color: darkblue; border: none;
}
#boyName::placeholder,
#boyPlace::placeholder {
  color: darkblue;
}

.birth-chart-title {
  font-size: 1.6rem;
  /* background: linear-gradient(90deg, #42a5f5, #1e88e5); */
  color: darkblue;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 15px;
  background: linear-gradient(90deg, rgb(231, 209, 253), rgb(182, 195, 252), rgb(159, 176, 250));
}

.birth-chart-description {
  font-size: 1rem;
  color: #333;
  text-align: left;
}

.birth-chart-heading {
  font-size: 1.4rem;
  color: #0d47a1;
  margin-top: 30px;
  text-align: left;
}

.birth-chart-list {
  list-style: none;
  padding: 0;
}

.birth-chart-list li {
  margin: 10px 0;
  font-size: 1rem;
}

.birth-chart-faq-list {
  list-style: none;
  padding-left: 0;
}

.birth-chart-faq-list li {
  margin-bottom: 10px;
}

.birth-chart-subtitle {
  font-size: 1.1rem;
  color: #1e3a8a;
  margin-top: 25px;
}

.logo {
  font-size: 26px;
  width: 300px;
  background: linear-gradient(to right, #FF9A9E, #FECFEF, #FAD0C4, #FECF7D, #F8E8A8, #B9FBC0, #E3F9F5, #D0F4C9, #C2E0FF, #B9E5F2, #AEEEEE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  /* 💥 This solves it */
}

/* Navigation Styles */
.nav {
  display: flex;
  gap: 30px;
  font-size: 16px;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  font-weight: 500;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 25px;
  height: 18px;
}

.hamburger div {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 5px;
}

/* Mobile Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -70%;
  width: 70%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a8a, #5c6bc0);
  /* cosmic blue gradient */
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: right 0.35s ease;
  z-index: 1000;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
  font-family: var(--indian-font-stack);
}

.mobile-nav a {
  display: block;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  margin: 6px 0;
  font-size: 17.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s, transform 0.2s;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.mobile-nav.active {
  right: 0;
  /* Slide in */
}

/* Close button positioned top-right inside panel */
.close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 30px;
  color: #f8bbd0;
  /* soft pink to match the site's palette */
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ffccdc;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav.active {
    display: flex;
  }
}
.side-ad{display:none}
@media (min-width:1200px){
  .side-ad{display:block; position:fixed; top:140px; width:160px; z-index:1050}
  /* place side ads into the gutters assuming .container max-width:900px */
  .side-ad.left{ left: calc((100% - 900px)/2 - 180px); }
  .side-ad.right{ right: calc((100% - 900px)/2 - 180px); }
}
/* Reserve a minimum height to reduce layout shift as ads load */
.side-ad, .ad-slot { min-height: 280px; }
/* Upgrade to 300px when viewport is wide enough to fit without overlap */
@media (min-width:1500px){
  .side-ad{ width:300px; }
  .side-ad.left{ left: calc((100% - 900px)/2 - 320px); }
  .side-ad.right{ right: calc((100% - 900px)/2 - 320px); }
}
/* Hide side ads on mobile and tablet for better UX */
@media (max-width:1199px){
  .side-ad{ display: none !important; }
}

/* Google AdSense inline ads styling */
ins.adsbygoogle {
  display: block;
  margin: 2px auto;
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Prevent auto ads inside input/matching container */
.matching-container ins.adsbygoogle,
.matching-container .google-auto-placed,
.matching-container .adsbygoogle,
.matching-container iframe[id^="aswift"],
.matching-container div[data-google-container-id],
.matching-container div[data-ad-slot] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}

