:root {
  --color: #c82624;
  --dark-color: #810806;
}
 
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
 
/* ── SINGLE PAGE — no scroll ── */
html, body {
  height: 100%;
  overflow: hidden;
}
 
body {
  font-family: 'Poppins', Arial, sans-serif;
  background: url("https://bhagwatimachines.com/img/bg-portfolio-2.webp") center/cover no-repeat fixed;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
 
/* ═══════════════ NAVBAR ═══════════════ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  height: 78px;
  flex-shrink: 0;
}
.logo img { height: 60px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 52px; }
.nav-links a {
  text-decoration: none;
  color: #dcdcdc;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  transition: color .3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--color);
  transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }
.menu-toggle { display: none; font-size: 26px; cursor: pointer; color: #fff; }
 
/* ═══════════════ MAIN SECTION — fills remaining height with bottom gap ═══════════════ */
.contact-section {
  flex: 1;
  min-height: 0;
  padding: 14px 60px 20px;
  display: flex;
  align-items: center;  
  justify-content: center;
  min-height: calc(100vh - 100px);
}
 
.contact-container {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 1600px;  
  margin: 0 auto;      
  align-items: stretch;
   min-height: 520px;
}
/* ═══════════════ BOTH PANELS ═══════════════ */
.about-company,
.contact-form {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  overflow-y: auto;
  transition: box-shadow .3s;
  /* scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.about-company::-webkit-scrollbar,
.contact-form::-webkit-scrollbar { width: 4px; }
.about-company::-webkit-scrollbar-thumb,
.contact-form::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
 
.about-company:hover,
.contact-form:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 18px rgba(200,38,36,0.25);
}
 
/* ── ABOUT — FIX 1: top-aligned ── */
.about-company {
  padding: 32px 36px;
  border-left: 4px solid var(--color);
  color: #fff;
  display: flex;
  flex-direction: column;
    justify-content: center;
  border-left: 4px solid var(--color);
  box-shadow: inset 4px 0 12px rgba(200,38,36,0.25);
}
.about-company h2 { font-size: 22px; margin-bottom: 18px; }
.about-company p  { color: #cfcfcf; line-height: 1.75; margin-bottom: 14px; font-size: 13.5px;  max-width: 700px; }
 
 
.about-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  color: #bbb;
}
 
.about-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* ── FORM PANEL ── */
.contact-form { padding: 26px 32px 28px; }
.contact-form h2 { color: #fff; margin-bottom: 14px; font-size: 20px; }
 
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
/* FIX 4: flex-start stops sibling jump when error appears */
.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
 
.field-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
 
.input-field {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 0 12px;
  height: 42px;
  width: 100%;
  border: 1px solid transparent;
  transition: border-color .2s;
}
.input-field i {
  color: #888;
  margin-right: 9px;
  font-size: 13px;
  width: 15px;
  flex-shrink: 0;
}
.input-field input,
.input-field select {
  border: none;
  background: transparent;
  color: #fff;
  width: 100%;
  height: 100%;
  outline: none;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
}
.input-field input::placeholder { color: #666; }
 
/* FIX 9: select options dark background */
.input-field select option {
  background: #1e1e1e;
  color: #fff;
}
 
.textarea-field { align-items: flex-start; height: auto; padding: 8px 12px; }
textarea {
  background: transparent;
  border: none;
  color: #fff;
  width: 100%;
  height: 66px;
  resize: none;
  outline: none;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  padding-top: 4px;
}
select { appearance: none; cursor: pointer; }
 
/* ── FIELD STATES ── */
.input-field.error { border-color: #ff6b6b; }
.input-field.valid { border-color: transparent; }
 
/* FIX 4: fixed height always reserved — no layout jump */
.field-error {
  font-size: 10.5px;
  color: #ff6b6b;
  padding-left: 4px;
  height: 15px;
  line-height: 15px;
  display: block;
  visibility: hidden;
  font-family: 'Poppins', sans-serif;
  margin-top: 2px;
}
.field-error.show { visibility: visible; }
 
/* ── FORM ERROR BANNER ── */
.form-error-msg {
  font-size: 11.5px;
  color: #ff6b6b;
  text-align: center;
  padding: 6px 10px;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: 6px;
  display: none;
}
.form-error-msg.show { display: block; }
 
/* hide old status box */
#submitStatus { display: none !important; }
 
/* ── SUBMIT BUTTON ── */
button[type="submit"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #c82624, #810806);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, opacity .25s;
  margin-top: 2px;
}
button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(200,38,36,0.5);
}
button[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
 
/* ═══════════════ TOAST — FIX 5 ═══════════════ */
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  min-width: 300px;
  max-width: 500px;
  padding: 13px 18px;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#toast.success { background: #155c32; border-left: 4px solid #2ecc71; }
#toast.error   { background: #5c1515; border-left: 4px solid #ff6b6b; }
#toast.loading { background: #2a2a2a; border-left: 4px solid #888; }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg  { flex: 1; white-space: normal; line-height: 1.4; }
.toast-close {
  background: none; border: none;
  color: rgba(255,255,255,0.55);
  font-size: 15px; cursor: pointer;
  padding: 0 0 0 8px; line-height: 1; flex-shrink: 0;
}
.toast-close:hover { color: #fff; }
 
/* ═══════════════ AUTOCOMPLETE ═══════════════ */
.ac-wrap { position: relative; overflow: visible !important; }
.ac-list {
  display: none;
  position: absolute;
  top: calc(100% + 3px); left: 0;
  width: 100%;
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  max-height: 160px;
  overflow-y: auto;
  z-index: 9999;
  list-style: none;
  padding: 4px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}
.ac-list.open { display: block; }
.ac-list li { padding: 8px 14px; color: #ddd; font-size: 13px; cursor: pointer; }
.ac-list li:hover, .ac-list li.active { background: var(--color); color: #fff; }
.ac-list::-webkit-scrollbar { width: 4px; }
.ac-list::-webkit-scrollbar-thumb { background: #555; border-radius: 4px; }
 
/* ═══════════════ AUTOFILL ═══════════════ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #2a2a2a inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}
.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}
 
/* ═══════════════ WHATSAPP ═══════════════ */
.whatsapp-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 99999;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.whatsapp-btn svg { width: 28px; height: 28px; fill: #fff; }
 
/* ═══════════════ RESPONSIVE — FIX 3 ═══════════════ */
@media (max-width: 1200px) {
  .navbar { padding: 0 40px; }
  .contact-section { padding: 12px 40px 18px; }
  .nav-links { gap: 32px; }
}
@media (max-width: 1024px) {
  .navbar { padding: 0 28px; }
  .contact-section { padding: 12px 28px 16px; }
  .contact-container { gap: 22px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 12px; }
}
@media (max-width: 900px) {
  html, body { overflow: auto; height: auto; }
  .navbar { padding: 0 20px; height: 64px; position: relative; }
  .nav-links {
    display: none; flex-direction: column; align-items: center; gap: 18px;
    position: absolute; top: 64px; left: 0; width: 100%;
    background: #1a1a1a; padding: 24px 0; z-index: 10000;
  }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  .contact-section { flex: unset; padding: 16px 20px 24px; }
  .contact-container { flex-direction: column; gap: 18px; align-items: stretch; }
  .about-company, .contact-form { overflow-y: visible; }
}
@media (max-width: 600px) {
  .navbar { padding: 0 14px; }
  .logo img { height: 44px; }
  .about-company { padding: 22px 18px; }
  .contact-form  { padding: 20px 18px; }
  .about-company h2, .contact-form h2 { font-size: 17px; }
  .form-row { flex-direction: column; gap: 0; }
  #toast { min-width: 260px; font-size: 12px; top: 12px; }
}