/* =========================================================
   RENTAL KIT PAGE – HERO + GUIDE SECTION (NO STICKY)
   Scope: body.site.buy-guide.template27
   ========================================================= */

/* Base page */
body.site.buy-guide.template27 {
  background-color: #191919;
  color: #111827;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* Keep main area transparent so modules control their own backgrounds */
body.site.buy-guide.template27 .page-content {
  background-color: transparent;
}

/* =========================================================
   HERO BANNER
   ========================================================= */

body.site.buy-guide.template27 .md-banner.broker .banner.single {
  position: relative;
  min-height: clamp(380px, 60vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
body.site.buy-guide.template27
  .md-banner.broker
  .banner.single
  .single-picture {
  background-position: center center;
  background-size: cover;
  transform: scale(1.02);
}

/* Dark overlay */
body.site.buy-guide.template27
  .md-banner.broker
  .banner.single
  .banner-mask {
  background: radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.85)
    ) !important;
}

/* Title container */
body.site.buy-guide.template27
  .md-banner.broker
  .banner.single
  .title-container {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
  text-align: center;
}

/* Remove left line decoration */
body.site.buy-guide.template27
  .md-banner.broker
  .banner.single
  .title-container
  .title.after-line::before {
  display: none;
}

/* Subtitle width */
body.site.buy-guide.template27
  .md-banner.broker
  .banner.single
  .title-container
  .sub-title {
  max-width: 720px;
  margin: 0 auto;
}

/* Spacing under hero */
body.site.buy-guide.template27 .md-banner.broker {
  margin-bottom: 24px;
}

/* =========================================================
   GUIDE SECTION (BOOK + FORM CARD)
   ========================================================= */

body.site.buy-guide.template27 .md-guide.standard {
  background: radial-gradient(circle at top, #ffffff 0, #f2f4fb 55%, #eef1f7 100%);
  padding-block: clamp(40px, 6vw, 72px);
}

body.site.buy-guide.template27 .md-guide.standard .mg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

/* Two-column grid: book + form */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 40px);
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
}

/* LEFT: book cover */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .cover {
  align-self: center;
  position: static !important;
  top: auto !important;
}

body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

/* RIGHT: form card */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(209, 213, 219, 0.8);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: static !important;
  top: auto !important;
}

/* Card title */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .title-container {
  margin-bottom: 4px;
}

body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .title-container
  h2 {
  font-size: clamp(26px, 3vw, 32px) !important;
  line-height: 1.2;
  color: #111827 !important;
}

/* Description text */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .message {
  font-size: 16px;
  line-height: 1.7;
  color: #111827;
  max-height: none !important;
  overflow: visible !important;
}

body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .message p {
  margin-bottom: 0.7em;
}

body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .message span {
  color: #111827;
}

/* =========================================================
   SUCCESS PILL ("Submitted successfully...")
   ========================================================= */

body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .lead-info {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;

  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;

  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 0 0 !important;
  padding: 10px 16px !important;
  border-radius: 999px;
  box-sizing: border-box;

  background: rgba(22, 163, 74, 0.06);
  color: #15803d;
  font-size: 14px;
  z-index: 1;
}

body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .lead-info
  .icon-checked {
  font-size: 16px;
  margin-right: 6px;
}

body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .lead-info
  .text {
  white-space: normal !important;
  display: block;
}

/* Toast popup styling */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .form-toast.toast-mark {
  border-radius: 16px;
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.18);
}

/* =========================================================
   FORM FIELDS + SUBMIT BUTTON
   ========================================================= */

/* Make sure inputs are full width */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  input[type="text"],
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  input[type="email"],
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  input[type="tel"] {
  width: 100%;
}

/* Gold pill button – target only real submit elements */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  form
  input[type="submit"],
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  form
  button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(208, 157, 85, 0.9);

  background-image: linear-gradient(135deg, #f6d79a 0%, #d39c4c 100%);
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

/* Hover */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  form
  input[type="submit"]:hover,
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  form
  button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  filter: brightness(1.02);
}

/* Focus */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  form
  input[type="submit"]:focus-visible,
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  form
  button[type="submit"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #111827,
    0 0 0 4px rgba(219, 174, 119, 0.85);
}

/* Disabled */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  form
  input[type="submit"]:disabled,
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  form
  button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

/* =========================================================
   FOOTER POLISH + HIDE GLOBAL COPYRIGHT STRIP
   ========================================================= */

body.site.buy-guide.template27 .md-footer.layout6 {
  padding-top: 72px;
  padding-bottom: 64px;
  background-color: #191919;
}

/* Email field as rounded pill */
body.site.buy-guide.template27
  .md-footer.layout6
  .form-email
  .info-form2
  .input-content
  .input-box
  input[type="email"] {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Subscribe button pill */
body.site.buy-guide.template27
  .md-footer.layout6
  .form-email
  .info-form2
  .submit-box
  .submit {
  border-radius: 999px;
  padding-inline: 20px;
}

/* Hide Lofty global strip under footer */
body.site.buy-guide.template27 .page-foot,
body.site.buy-guide.template27 .footer-bottom,
body.site.buy-guide.template27 .footer-site-info,
body.site.buy-guide.template27 .copyright,
body.site.buy-guide.template27 .site-footer-bottom,
body.site.buy-guide.template27 .site-info,
body.site.buy-guide.template27 .site-info-bar,
body.site.buy-guide.template27 [class*="powered-by"],
body.site.buy-guide.template27 [class*="lofty-footer"],
body.site.buy-guide.template27 footer.md-footer + div {
  display: none !important;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  body.site.buy-guide.template27
    .md-guide.standard
    .square.form-container {
    grid-template-columns: minmax(0, 1fr);
  }

  body.site.buy-guide.template27
    .md-guide.standard
    .square.form-container
    .cover {
    max-width: 320px;
    margin: 0 auto;
  }

  body.site.buy-guide.template27
    .md-guide.standard
    .square.form-container
    .info-right {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  body.site.buy-guide.template27
    .md-banner.broker
    .banner.single
    .title-container {
    padding-inline: 16px;
  }

  body.site.buy-guide.template27
    .md-banner.broker
    .banner.single
    .title-container
    h2 {
    font-size: 30px !important;
  }
}
/* ============================
   BUGFIX: mobile overlap issue
   ============================ */

/* সবকিছু normal flow এ ফিরিয়ে দিচ্ছি */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container,
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container .info-right,
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container .info-right .message {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: auto !important;
}

/* description text নিশ্চিতভাবে block + normal line-height */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .message {
  display: block;
  max-height: none !important;
  overflow: visible !important;
}
/* =========================================
   RENTAL KIT – MOBILE OVERLAP BUGFIX
   Disable transforms + truncation on module
   ========================================= */

/* Remove any transform / special positioning on ancestors */
body.site.buy-guide.template27 .md-guide.standard,
body.site.buy-guide.template27 .md-guide.standard .mg-container,
body.site.buy-guide.template27 .md-guide.standard .square,
body.site.buy-guide.template27 .md-guide.standard .square.form-container,
body.site.buy-guide.template27 .md-guide.standard .square.form-container > *,
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right,
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .message {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
  perspective: none !important;
  z-index: auto !important;
}

/* Make sure the whole guide text always shows (no internal "More" truncation) */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .message {
  display: block;
  max-height: none !important;
  overflow: visible !important;
}

/* Hide the auto "More" link that Lofty injects after the text block */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container
  .info-right
  .message + a {
  display: none !important;
}

/* Ensure the whole card uses normal flow without clipping */
body.site.buy-guide.template27
  .md-guide.standard
  .square.form-container {
  overflow: visible !important;
}


/* =========================================
   MOBILE WORKAROUND: hide long description
   ========================================= */
@media (max-width: 768px) {
  body.site.buy-guide.template27
    .md-guide.standard
    .square.form-container
    .info-right
    .message {
    display: none !important;
  }
}
