/*!
 * Custom styles — arvind-prajwal
 * Add project-specific overrides here.
 */

/* ------------------------------------------------------------------
   Disable text selection sitewide — deters casual copy/paste.
   Form fields are explicitly re-enabled so users can type normally.
------------------------------------------------------------------ */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

/* ------------------------------------------------------------------
   Visually hidden utility — accessible to screen readers, invisible to sighted users
------------------------------------------------------------------ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------------
   Keyboard focus indicator — restores outline for keyboard users only.
   :focus-visible is not triggered by mouse clicks, only by keyboard/AT.
   Uses the active color scheme variable so it always matches the brand color.
------------------------------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--custom, #009e66);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------
   h3.h5 in hero — ensure heading colour matches original h5 appearance
   (Bootstrap .h5 class matches font-size; heading colour rule covers colour)
------------------------------------------------------------------ */
.home-area .home-content h3.h5 {
  color: #fff;
}

/* ==================================================================
   GLOBAL INQUIRY POPUP MODAL
================================================================== */

/* Overlay backdrop */
.inquiry-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.88);
  z-index: 999999;
  overflow-y: auto;
  padding: 50px 20px;
}

/* Modal box */
.inquiry-modal {
  background-color: #101010;
  max-width: 680px;
  margin: 0 auto;
  padding: 55px 55px 45px;
  position: relative;
}

/* Close button */
.inquiry-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 19px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 28px;
  top: 28px;
  transition: opacity 0.15s ease-in-out;
  width: 22px;
}

.inquiry-close-btn::before,
.inquiry-close-btn::after {
  background-color: #fff;
  content: '';
  height: 2px;
  position: absolute;
  transition: background-color 0.15s ease-in-out;
  width: 100%;
}

.inquiry-close-btn::before {
  transform: rotate(45deg);
}

.inquiry-close-btn::after {
  transform: rotate(-45deg);
}

.inquiry-close-btn:hover::before,
.inquiry-close-btn:hover::after {
  background-color: var(--custom, #009e66);
}

/* Popup heading area */
.inquiry-modal .page-heading {
  margin-bottom: 35px;
}

/* Invalid field highlight */
#inquiry-form .form-control.is-invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231,76,60,.25);
}

/* Error / success feedback text colours */
#inquiry-feedback.error  { color: #e74c3c; }
#inquiry-feedback.success { color: var(--custom, #009e66); }

/* Responsive */
@media (max-width: 767.98px) {
  .inquiry-overlay {
    padding: 30px 15px;
  }

  .inquiry-modal {
    padding: 45px 25px 35px;
  }

  .inquiry-close-btn {
    right: 20px;
    top: 20px;
  }
}
