/* ================================================================
   style2.css  —  Vinayaka Technology LLC
   FIXED: z-index, margin, width, colours — was overriding style.css
   ================================================================ */

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ----------------------------------------------------------------
   MODAL — Attractive Redesign
   ---------------------------------------------------------------- */

/* Dark full-screen backdrop */
.modal {
  display: none;
  position: fixed;
  z-index: 999999;                   /* highest — nothing bleeds through */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Modal box */
.modal-content {
  background: linear-gradient(135deg, #1a237e 0%, #4a148c 60%, #6a1b9a 100%) !important;
  margin: 40px auto;
  padding: 0;
  width: 92%;
  max-width: 860px;
  border-radius: 16px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12);
  animation-name: modalSlideIn;
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

/* Slide-in animation */
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Header */
.modal-header {
  background: rgba(0,0,0,0.30);
  padding: 22px 30px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.20);
  position: relative;
}

.modal-header h2 {
  color: #fff !important;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Close button */
.closeBtn {
  position: absolute;
  top: 12px;
  right: 20px;
  color: rgba(255,255,255,0.85);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  background: rgba(0,0,0,0.15);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.closeBtn:hover,
.closeBtn:focus {
  color: #fff;
  background: rgba(0,0,0,0.35);
  text-decoration: none;
  cursor: pointer;
}

/* Footer / body area */
.modal-footer {
  padding: 28px 30px 32px;
  background: transparent;
  border-top: none;
  overflow: hidden;
  text-align: left;
}

/* Left column — form */
.modal-footer .col-md-6:first-child {
  padding-right: 20px;
  border-right: 1px solid rgba(255,255,255,0.25);
}

/* Right column — contact info */
.modal-footer .col-md-6:last-child {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form heading */
.modal-footer h1 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.modal-footer > .col-md-6:first-child > p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
  font-size: 14px;
}

/* Form groups */
.modal-footer .form-group {
  margin-bottom: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* All form inputs */
.overview {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  color: #333 !important;
  background: rgba(255,255,255,0.95);
  border: 2px solid transparent;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  margin-top: 4px;
}

.overview:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  background: #fff;
}

textarea.overview {
  height: 80px;
  resize: vertical;
}

/* Submit button */
.btn-border-w {
  display: block;
  width: 100%;
  padding: 13px;
  background: rgba(255,255,255,0.18);
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.25s, border-color 0.25s, transform 0.15s, box-shadow 0.25s;
}

.btn-border-w:hover {
  background: rgba(255,255,255,0.30);
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Right column — logo & address */
.modal-footer .col-md-6:last-child img {
  max-width: 160px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

.modal-footer address {
  color: rgba(255,255,255,0.9);
  font-size: 13.5px;
  line-height: 1.8;
  font-style: normal;
}

.modal-footer address strong {
  color: #fff;
}

.modal-footer address a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  transition: color 0.2s;
}

.modal-footer address a:hover {
  color: #fff;
}

/* Prevent body scroll when modal is open */
body.modal-open-custom {
  overflow: hidden;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .modal-content {
    width: 96%;
    margin: 16px auto;
  }

  .modal-footer .col-md-6 {
    width: 100%;
    float: none;
    padding-right: 0 !important;
    padding-left: 0 !important;
    border-right: none !important;
    margin-bottom: 20px;
  }

  .modal-footer .col-md-6:first-child {
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 20px;
  }

  .modal-header h2 {
    font-size: 16px;
  }
}

/* ================================================================
   Map responsive + Contact form layout fix
   ================================================================ */

/* Map container — keeps iframe responsive */
#contact > div:first-child {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

#contact > div:first-child iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Fix: Map as full background, form overlaid on top — no cut-off.
   Trick: map div → position:absolute (background layer),
          container-wrapper → position:relative (sets section height).
   This way section height = form height, map stretches to fill it. */

#contact {
  position: relative;
  overflow: visible !important;
}

/* Map fills the entire section as a background layer */
#contact > div:first-child {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  z-index: 0;
}

/* Container-wrapper: relative so IT sets the section height */
#contact .container-wrapper {
  position: relative !important;
  height: auto !important;
  background: transparent;
  padding: 40px 0 50px;
  z-index: 2;
}

/* Contact form card — clean overlay look */
#contact .contact-form {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 28px 24px;
  margin-top: 0;
}
#contact .contact-form h3 {
  color: #f26522;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 20px;
}
#contact .contact-form address {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 14px;
  color: #333;
  font-style: normal;
}
#contact .contact-form .btn-primary {
  width: 100%;
  padding: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 6px;
}
