/* Prevent white border when embedded in PHP pages */
html, body {
  margin: 0;
  padding: 0;
  background: #050617;
}

/* SCOPE WRAPPER */
.genx9-contact-page {
  background: #050617;
  color: #fff;
}

/* RESET ONLY INSIDE CONTACT PAGE */
.genx9-contact-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

/* CONTACT SECTION */
.genx9-contact-page .contact-section {
  position: relative;
  min-height: 50vh;
  padding: 40px 15px;
  background: linear-gradient(135deg, #04051a, #080b3a);
  overflow: hidden;
}

/* MOSAIC BACKGROUND */
.genx9-contact-page .contact-section::before {
  content: "";
  position: absolute;
  inset: -200%;
  background-image:
    linear-gradient(rgba(122,60,255,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76,125,255,0.35) 1px, transparent 1px);
  background-size: 45px 45px;
  animation: mosaicMove 30s linear infinite;
}

@keyframes mosaicMove {
  to { transform: translate(240px, 240px); }
}

/* TITLE */
.genx9-contact-page .section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #7a3cff, #4c7dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.genx9-contact-page .title-underline {
  display: block;
  width: 110px;
  height: 4px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #7a3cff, #4c7dff, #7a3cff);
  background-size: 200% 100%;
  animation: underlineMove 2.5s linear infinite;
}

@keyframes underlineMove {
  to { background-position: 200% 50%; }
}

/* WRAPPER */
.genx9-contact-page .contact-wrapper {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  position: relative;
  z-index: 1;
}

/* Marketing Manager Profile */
.genx9-contact-page .manager-profile {
  text-align: center;
  margin-bottom: 20px;
}

.genx9-contact-page .manager-profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #7a3cff;
}

.genx9-contact-page .manager-profile h4 {
  margin-top: 10px;
  font-size: 14px;
  color: #9db6ff;
}


/* CARDS */
.genx9-contact-page .contact-info,
.genx9-contact-page .contact-form {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(15px);
  padding: 25px;
  border-radius: 18px;
}

/* BRAND */
.genx9-contact-page .contact-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.genx9-contact-page .contact-brand img {
  width: 75px;
  border-radius: 12px;
}

/* INFO */
.genx9-contact-page .info {
  margin-bottom: 12px;
  font-size: 14px;
}

.genx9-contact-page .info i {
  color: #7a3cff;
  margin-right: 8px;
}

/* FORM */
.genx9-contact-page form {
  display: grid;
  gap: 12px;
}

.genx9-contact-page form input,
.genx9-contact-page form textarea {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #0b0d2b;
  color: #fff;
}

.genx9-contact-page form textarea {
  height: 80px;
}

.genx9-contact-page form button {
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #7a3cff, #4c7dff);
  color: #fff;
  cursor: pointer;
}

.genx9-contact-page form select {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #0b0f2e, #151a3c);
  color: #fff;
  appearance: none;
  cursor: pointer;
}

.genx9-contact-page form select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(122, 60, 255, 0.5);
}

.genx9-contact-page form select option {
  background: #0b0f2e;
  color: #fff;
}


/* FOOTER */
.genx9-contact-page .footer {
  background: linear-gradient(135deg, #04051a, #080b3a);
  padding: 60px 20px 0;
}

.genx9-contact-page .footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

/* QUICK LINKS */
.genx9-contact-page .footer-box h3,
.genx9-contact-page .footer-box h4 {
  margin-bottom: 15px;
  color: #9db6ff;
}

.genx9-contact-page .footer-box p,
.genx9-contact-page .footer-box li,
.genx9-contact-page .footer-box a {
  font-size: 14px;
  color: #ccc;
}

.genx9-contact-page .footer-box ul {
  list-style: none;
}

.genx9-contact-page .footer-box ul li {
  margin-bottom: 10px;
}

.genx9-contact-page .footer-box ul li a {
  text-decoration: none;
  color: #ccc;
}

.genx9-contact-page .footer-box ul li a:hover {
  color: #7a3cff;
}

/* Center text inside Quick Links only (no movement) */
.genx9-contact-page .footer-box:nth-child(2) h4,
.genx9-contact-page .footer-box:nth-child(2) ul li {
  text-align: center;
}


/* FOLLOW US - SOCIAL ICONS */
.genx9-contact-page .social-icons a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  margin-right: 10px;
  color: #ffffff;
  text-decoration: none;
}

.genx9-contact-page .social-icons a:hover {
  background: linear-gradient(135deg, #7a3cff, #4c7dff);
  color: #ffffff;
}

/* COPYRIGHT */
.genx9-contact-page .footer-bottom {
  margin-top: 40px;
  padding: 15px;
  text-align: center;
  background: rgba(0,0,0,0.4);
  font-size: 13px;
}

/* ========================================= */
/* CENTER SERVICES & FOLLOW US (ALL SCREENS) */
/* ========================================= */

/* Services section */
.genx9-contact-page .footer-box:nth-child(3) {
  text-align: center;
}

/* Follow Us section */
.genx9-contact-page .footer-box:nth-child(4) {
  text-align: center;
}

/* Center social icons properly */
.genx9-contact-page .footer-box:nth-child(4) .social-icons {
  display: flex;
  justify-content: center;
}


/* RESPONSIVE */
@media (max-width: 768px) {

  .genx9-contact-page .contact-wrapper {
    grid-template-columns: 1fr;
  }

  /* Ensure correct vertical order */
  .genx9-contact-page .contact-info {
    order: 1;
  }

  .genx9-contact-page .contact-form {
    order: 2;
    margin-top: 20px;
  }
}



/* FORCE STACKING ON MOBILE */
@media (max-width: 768px) {

  .genx9-contact-page .contact-wrapper {
    display: flex;
    flex-direction: column;
  }

  .genx9-contact-page .contact-info,
  .genx9-contact-page .contact-form {
    width: 100%;
  }

  .genx9-contact-page .contact-form {
    margin-top: 20px;
  }
}



/* ============================= */
/* CENTER TEXT ON MOBILE & TABLET */
/* ============================= */
@media (max-width: 768px) {

  /* CONTACT INFO TEXT */
  .genx9-contact-page .contact-info {
    text-align: center;
  }

  .genx9-contact-page .contact-brand {
    justify-content: center;
  }

  .genx9-contact-page .info {
    justify-content: center;
    text-align: center;
  }

  /* FORM HEADING */
  .genx9-contact-page .contact-form h3 {
    text-align: center;
  }

  /* FOOTER CONTENT */
  .genx9-contact-page .footer-box {
    text-align: center;
  }

  .genx9-contact-page .footer-box ul {
    padding: 0;
  }

  .genx9-contact-page .social-icons {
    justify-content: center;
  }
}

