/* Astrologer Sandeep - Legal & Information Pages Shared Stylesheet */
:root {
  --astro-maroon: #680514;
  --astro-maroon-dark: #3a020a;
  --astro-maroon-light: #8e0b1f;
  --astro-gold: #d4af37;
  --astro-gold-light: #f5d77f;
  --astro-gold-dark: #aa8214;
  --astro-wa-green: #25D366;
  --astro-wa-dark: #128C7E;
  --astro-cream: #fdfaf4;
  --astro-paper: #fffdf8;
  --astro-text-dark: #221516;
  --astro-text-muted: #5e4f50;
  --astro-card-border: rgba(212, 175, 55, 0.35);
  --astro-shadow-md: 0 10px 30px rgba(60, 2, 11, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--astro-text-dark);
  background-color: var(--astro-cream);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header & Topbar */
.topbar {
  background: linear-gradient(90deg, #240106, #680514, #240106);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 100;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 15px;
}

.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--astro-gold-light);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.top-phone span {
  color: var(--astro-gold);
}

.topbar-center-msg {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.mini-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--astro-wa-green);
  color: #ffffff !important;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.mini-whatsapp:hover {
  background: #1eb857;
  transform: translateY(-1px);
}

.brand-strip {
  background: #ffffff;
  padding: 10px 0;
  border-bottom: 2px solid rgba(104, 5, 20, 0.08);
}

.brand-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.3fr 1.3fr;
  align-items: center;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card img {
  width: 100%;
  height: auto;
  max-height: 82px;
  object-fit: contain;
}

/* Secondary Navigation Bar */
.subpage-nav {
  background: linear-gradient(90deg, #38030b, #5a040f);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 8px 0;
}

.subpage-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #f7e6c4;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-quick-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f7d377, #d4af37);
  color: #3b020a;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* Page Header Banner */
.page-banner {
  background: linear-gradient(135deg, #2b0208 0%, #540512 50%, #240106 100%);
  color: #ffffff;
  padding: 48px 0 52px;
  position: relative;
  text-align: center;
  border-bottom: 3px solid var(--astro-gold);
}

.page-banner::before {
  content: "ॐ";
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 216, 107, 0.08);
  font-size: 180px;
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--astro-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.page-banner h1 {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(28px, 4.5vw, 44px);
  margin: 0 0 12px;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.page-banner p {
  color: #f7dcdf;
  font-size: clamp(14px, 1.8vw, 17px);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.banner-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* Breadcrumbs */
.breadcrumb-bar {
  background: #fff8e8;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding: 10px 0;
  font-size: 13.5px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666666;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-list a {
  color: var(--astro-maroon);
  font-weight: 600;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

/* Main Legal Content Container */
.legal-main-section {
  padding: 50px 0 80px;
}

.legal-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 44px 48px;
  box-shadow: var(--astro-shadow-md);
  border: 1px solid var(--astro-card-border);
  position: relative;
}

.legal-card h2 {
  font-family: "Cinzel", Georgia, serif;
  color: var(--astro-maroon);
  font-size: clamp(21px, 2.5vw, 26px);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.3);
  font-weight: 700;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card h3 {
  font-family: "Cinzel", Georgia, serif;
  color: var(--astro-maroon-dark);
  font-size: 18px;
  margin: 22px 0 10px;
  font-weight: 700;
}

.legal-card p {
  color: #2b1f20;
  font-size: 15.5px;
  line-height: 1.8;
  margin: 0 0 16px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 24px;
  margin: 0 0 20px;
  color: #2b1f20;
}

.legal-card li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-card li strong {
  color: var(--astro-maroon-dark);
}

/* Highlighted Warning / Compliance Disclaimers */
.notice-box {
  background: #fff8eb;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-left: 5px solid var(--astro-maroon);
  padding: 18px 22px;
  border-radius: 10px;
  margin: 24px 0;
}

.notice-box strong {
  display: block;
  color: var(--astro-maroon);
  font-size: 16px;
  margin-bottom: 6px;
}

.notice-box p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #3b2b2c;
}

.important-badge {
  display: inline-block;
  background: var(--astro-maroon);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

/* Legal Contact Table / Box */
.official-info-card {
  background: #faf5ee;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
}

.official-info-card h3 {
  margin-top: 0;
  color: var(--astro-maroon);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.info-item {
  background: #ffffff;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.info-item span {
  display: block;
  font-size: 12px;
  color: #777777;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-item strong,
.info-item a {
  display: block;
  font-size: 15px;
  color: var(--astro-maroon);
  font-weight: 700;
}

/* Contact Page Specific Styles */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: flex-start;
}

.contact-card-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--astro-shadow-md);
  border: 1.5px solid var(--astro-card-border);
}

.contact-card-box h2 {
  font-family: "Cinzel", Georgia, serif;
  color: var(--astro-maroon);
  font-size: 26px;
  margin: 0 0 12px;
}

.contact-channels {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fffdf9;
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-channel:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(60, 2, 11, 0.08);
}

.channel-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7d377, #d4af37);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--astro-maroon);
  flex-shrink: 0;
}

.channel-icon.green {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
}

.channel-text {
  min-width: 0;
  flex: 1;
}

.channel-text span {
  display: block;
  font-size: 12px;
  color: #777777;
  text-transform: uppercase;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.channel-text strong {
  display: block;
  font-size: clamp(14px, 3.8vw, 17px);
  color: var(--astro-maroon);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Contact Form */
.form-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--astro-shadow-md);
  border: 2px solid var(--astro-maroon);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--astro-maroon-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid #d5c5b5;
  background: #fffdfa;
  font-size: 15px;
  font-family: inherit;
  color: #221516;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--astro-maroon);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(104, 5, 20, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8e0b1f, #540512);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  border: 1px solid var(--astro-gold);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(60, 2, 11, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #680514, #3a020a);
  transform: translateY(-2px);
}

/* Footer Section */
footer {
  background: linear-gradient(140deg, rgba(42, 1, 7, 0.98), rgba(84, 5, 18, 0.96)), url('../images/bg0.webp') center/cover;
  color: #d8c2c5;
  padding-top: 54px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.footer-brand strong {
  font-family: "Cinzel", Georgia, serif;
  font-size: 18px;
  color: var(--astro-gold-light);
  display: block;
}

.footer-brand span {
  font-size: 11px;
  color: #cccccc;
}

.footer-about p {
  max-width: 330px;
  line-height: 1.7;
  font-size: 13px;
  color: #e5cfd2;
}

footer h3 {
  color: #ffffff;
  font-family: "Cinzel", Georgia, serif;
  font-size: 16px;
  margin: 0 0 16px;
  position: relative;
}

footer h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--astro-gold);
  margin-top: 6px;
}

.footer-grid > div:not(.footer-about) {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}

.footer-grid a {
  color: #e5cfd2;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-grid a:hover {
  color: var(--astro-gold);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #090001;
  padding: 18px 0;
  text-align: center;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.legal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.legal-nav a {
  color: var(--astro-gold-light);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-nav a:hover {
  color: #ffffff;
}

.legal-nav span {
  color: rgba(255, 255, 255, 0.35);
}

.disclaimer-statement {
  max-width: 780px;
  margin: 4px auto 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.5;
}

/* Floating Actions & Sticky Bar (Identical to Home) */
.desktop-float-dock {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn .float-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.float-btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.float-btn-call {
  background: linear-gradient(135deg, #9b0b1e, #5a040f);
  box-shadow: 0 8px 24px rgba(155, 11, 30, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.float-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ff334b;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  border: 2px solid #ffffff;
  z-index: 3;
}

.float-tooltip {
  position: absolute;
  right: 70px;
  background: rgba(26, 2, 6, 0.94);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.mobile-sticky-bar {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .desktop-float-dock {
    display: none !important;
  }

  .mobile-sticky-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(22, 2, 6, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1.5px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.6);
  }

  body {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  }

  .mobile-call-btn {
    background: linear-gradient(135deg, #a8172d, #5a040f);
    color: #ffffff;
    border: 1px solid rgba(245, 215, 127, 0.4);
  }

  .mobile-wa-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
  }

  .action-icon-wrap {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .action-icon-wrap svg {
    width: 17px;
    height: 17px;
    fill: #ffffff;
  }

  .action-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
  }

  .action-btn-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  .action-btn-sub {
    font-size: 10px;
    opacity: 0.9;
  }

  .topbar-center-msg {
    display: none;
  }

  .topbar-inner {
    padding: 8px 12px;
  }

  .legal-card {
    padding: 26px 18px;
    border-radius: 14px;
  }

  .contact-card-box,
  .form-card {
    padding: 22px 14px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-about p {
    margin: 0 auto;
  }

  footer h3::after {
    margin: 6px auto 0;
  }

  .nav-links {
    display: none; /* Keep clean on mobile, breadcrumb and topbar handle navigation */
  }

  .subpage-nav-inner {
    justify-content: center;
  }
}
