/* ===== Load Local OTF Font ===== */
@font-face {
  font-family: 'Blauer Nue';
  src: url('assets/fonts/BlauerNue-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Blauer Nue';
  src: url('assets/fonts/BlauerNue-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Blauer Nue', sans-serif;
}
html, body {
  height: 100%;
  position: relative;
  background: #102039;
}

/* ===== Desktop: Homes logo top-right ===== */
.logo-top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 200px;
  height: auto;
  z-index: 10;
}
/* ===== Desktop: RERA text ===== */
.top-right-text {
  position: absolute;
  top: 100px;
  right: 20px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-align: right;
  z-index: 10;
}

/* ===== Layout ===== */
.container {
  display: flex;
  height: 100vh;
}
.left,
.right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* ===== Left Side ===== */
.left {
  background: #102039;
  color: #fff;
  text-align: left;
}
.content {
  max-width: 550px;
  margin-top: 80px;
}
.logo-corner {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 150px;
  height: auto;
}
.left h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.1;   /* reduced line height */
}
.left p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  font-weight: 400;
}
.highlight { color: #C42026; }

/* ===== Right Side (image background) ===== */
.right {
  background: url('assets/right-bg7.webp') no-repeat;
  background-size: cover;
  color: #fff;
  flex-direction: column;
  position: relative;
}
.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* ===== Message Box ===== */
.message-box {
  background: rgba(16,32,57,0.6);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.message-box h2 {
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}
.message-box input,
.message-box textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.message-box textarea { height: 120px; resize: none; }
.message-box input::placeholder,
.message-box textarea::placeholder { color: #D1D1D1; opacity: 1; }
.message-box button {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  background: #F16521;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.message-box button:hover { background: #fff; color: #F16521; }

.honeypot-field {
  display: none !important;
}

#formStatus {
  margin-top: 0.75rem;
  color: #fff;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

/* ===== Contact & Social (desktop at right-bottom) ===== */
.right .contact-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #102039;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 2;
}
.right .contact-text p { margin-bottom: 0.5rem; }
.contact-text a { color: #102039; text-decoration: none; transition: color 0.2s; }
.right .social-icons a {
  display: inline-block;
  margin-left: 10px;
  font-size: 20px;
  color: #102039;
  transition: transform 0.2s, color 0.2s;
}
.right .social-icons a:hover { transform: scale(1.2); color: #F16521; }

/* ===== Mobile-only brand on the image (hidden on desktop) ===== */
.mobile-brand-right { display: none; }

/* ===== Mobile layout ===== */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  .container {
    flex-direction: column;
    height: auto;
  }

  /* Stack Madineni Group logo above text */
  .left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .logo-corner {
    position: static;
    display: block;
    margin: 0 auto 1.5rem auto; /* space below logo */
    width: 120px;
  }
  .content {
    margin: 0 0 1.25rem 0; /* extra margin below text */
  }
  .left h1 { 
    font-size: clamp(1.5rem, 5vw, 2.5rem); 
    line-height: 1;   /* tighter headline spacing */
  }
  .left p { font-size: clamp(0.9rem, 3vw, 1.2rem); }

  /* Hide desktop top-right Homes brand on mobile */
  .logo-top-right,
  .top-right-text { display: none !important; }

  /* Show Homes brand ON the image section, above the form */
  .mobile-brand-right {
    display: block;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 1rem 0 0.75rem 0; /* added top margin */
  }
  .mobile-brand-logo {
    width: 150px;
    height: auto;
    display: inline-block;
  }
  .mobile-rera {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-top: 0.25rem;
  }

  .right {
    background: url('assets/right-bg8.webp') no-repeat;
    background-size: cover;          /* fills container */
    background-position: top center; /* aligns important parts */
  }
  .message-box {
    max-width: 80%;        /* narrower box */
    margin: 1rem auto;     /* more breathing space */
    padding: 1rem 1.25rem; /* less padding */
    border-radius: 6px;    /* slightly smaller corners */
  }

  .message-box h2 {
    font-size: 1.1rem;     /* smaller heading */
    margin-bottom: 0.75rem;
  }

  .message-box input,
  .message-box textarea {
    font-size: 0.9rem;     /* shrink form fields */
    padding: 0.6rem;       /* smaller input padding */
  }

  .message-box button {
    font-size: 0.95rem;
    padding: 0.7rem;
  }

  /* Contact info first, social icons last */
  .right .contact-info {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
  }
  .right .contact-text { order: 1; }
  .right .social-icons { order: 2; margin-top: 0.25rem; }
  .right .social-icons a { font-size: 1.5rem; margin: 0 8px; }
}