:root {
  --primary: #1F4E5F;
  --primary-dark: #163946;
  --accent: #CBB89A;
  --bg: #F7F7F5;
  --cream: #EDEBE7;
  --paper: #FFFFFF;
  --ink: #2E3A3A;
  --muted: #6E7C7C;
  --line: rgba(31, 78, 95, 0.12);
  --shadow: 0 18px 45px rgba(31, 78, 95, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }

/* Typography & Core Layout */
.container { width: min(100% - 32px, 1180px); margin: 0 auto; }
h1, h2, h3 { color: var(--primary); font-family: "Cinzel", serif; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* Buttons */
.btn {
  min-height: 50px; padding: 13px 22px; border-radius: 999px; font-weight: 800; cursor: pointer; border: none;
  transition: transform 180ms ease, box-shadow 180ms ease; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: linear-gradient(135deg, #F97316, #ea580c); color: #fff; animation: pulse 2s infinite; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--primary); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(249,115,22,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(249,115,22,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}

/* Forms & Error Handling (Smooth UX) */
.form-row { margin-bottom: 14px; position: relative; min-height: 80px; } /* Prevents jumping */
.form-row.no-min-height { min-height: auto; }
input { width: 100%; min-height: 52px; border-radius: 15px; border: 1px solid var(--line); padding: 0 15px; }
input:focus { border-color: var(--accent); outline: none; }
.error { display: none; color: #d92d20; font-size: 0.8rem; position: absolute; bottom: -18px; left: 0;}
.form-row.invalid input { border-color: #d92d20; }
.form-row.invalid .error { display: block; }
.success-message { display: none; margin-top: 12px; padding: 12px; background: #ECFDF3; color: #027A48; border-radius: 14px; }
.success-message.show { display: block; }

/* Split Sections */
.split { display: grid; gap: 32px; align-items: center; }
.cream-band { background: var(--cream); padding: 72px 0; }

/* Logo & Partner Cards (Visibility Fix) */
.partner-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.logo-card {
  background: #fff; padding: 30px; border-radius: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px;
}
.logo-card img { height: 80px; object-fit: contain; } /* Enforces high visibility */

/* Chatbot & Overlays */
.mait-chatbot { position: fixed; right: 22px; bottom: 90px; z-index: 9999; }
.mait-chat-toggle { width: 68px; height: 68px; border-radius: 50%; background: #F97316; color: #fff; font-size: 30px; border: none; cursor: pointer; }
.mait-chat-window { display: none; position: absolute; right: 0; bottom: 82px; width: 360px; height: 500px; background: #fff; border-radius: 20px; flex-direction: column; box-shadow: var(--shadow); }
.mait-chat-window.open { display: flex; }
.sticky-cta { position: fixed; bottom: 14px; left: 14px; right: 14px; z-index: 80; display: flex; justify-content: space-between; pointer-events: none; }
.sticky-cta > * { pointer-events: auto; }
.whatsapp-float { background: #25D366; color: #fff; padding: 15px 25px; border-radius: 999px; font-weight: bold; }

/* Mobile Optimizations */
@media (max-width: 768px) {
  .mait-chatbot { bottom: 80px; right: 15px; }
  .whatsapp-float { display: none; } /* Prevents stacking clutter on iPhones */
  .hero-grid, .split { grid-template-columns: 1fr; }
}

/* Language Toggle */
.lang-mr { display: none; }
body.marathi .lang-en { display: none; }
body.marathi .lang-mr { display: inline; }