/* ==========================================================================
   Evoque Lead Capture Modal & Minimized Widget
   100% Exact Match with Existing Contact Us Page (contact.html & css/pages.css)
   ========================================================================== */

/* 1. Modal Overlay & Backdrop */
.evoque-lead-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.evoque-lead-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* 2. Modal Box: Clean White Card */
.evoque-lead-modal {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 490px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 6px; /* Matches .contact_from .form_group .txt_box border-radius: 6px */
  border: 1px solid #cccccc;
  padding: 35px 30px 25px;
  -webkit-box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
          box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-family: 'Open Sans', sans-serif;
  color: #000000;
}

.evoque-lead-overlay.is-active .evoque-lead-modal {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}

/* Close Button */
.evoque-lead-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: #777777;
  font-size: 26px;
  line-height: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
  padding: 0;
}

.evoque-lead-close:hover {
  color: #000000;
}

/* Title: Exact match with .cmn_title from css/pages.css */
.evoque-lead-modal .cmn_title {
  font-size: 32px;
  font-family: "Playfair Display", serif;
  text-align: center;
  position: relative;
  margin: 0 0 35px;
  padding-bottom: 10px;
  line-height: 1.3;
  color: #000000;
  opacity: 1 !important;
  -webkit-transform: none !important;
          transform: none !important;
}

.evoque-lead-modal .cmn_title::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 50px;
  height: 5px;
  background-color: #d8dfab;
  bottom: 0;
}

/* Form Styles: 100% Exact match with .contact_from .inner_ .form_area from css/pages.css */
.evoque-lead-modal .contact_from {
  padding: 0;
}

.evoque-lead-modal .form_area .form_group {
  margin-bottom: 20px;
  text-align: left;
}

.evoque-lead-modal .form_area .form_group label {
  font-size: 16px;
  display: block;
  color: #000000;
  margin-bottom: 6px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}

.evoque-lead-modal .form_area .form_group .txt_box {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #000000;
  background: #ffffff;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.evoque-lead-modal .form_area .form_group .txt_box:focus,
.evoque-lead-modal .form_area .form_group .txt_box:focus-visible {
  outline: 0;
  border-color: #3a3939;
}

.evoque-lead-modal .form_area .form_group .textarea {
  width: 100%;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  height: 110px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #000000;
  background: #ffffff;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  resize: vertical;
}

.evoque-lead-modal .form_area .form_group .textarea:focus,
.evoque-lead-modal .form_area .form_group .textarea:focus-visible {
  outline: 0;
  border-color: #3a3939;
}

/* Button: Exact match with .bnr_btn from contact.html & css/pages.css */
.evoque-lead-modal .form_area .form_group.bnr_btn {
  margin-top: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.evoque-lead-modal .form_area .form_group.bnr_btn button {
  border: 1px solid #3a3939;
  color: #000000;
  padding: 10px 30px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
  border-radius: 5px;
  background-color: transparent;
  cursor: pointer;
  display: inline-block;
}

.evoque-lead-modal .form_area .form_group.bnr_btn button span {
  position: relative;
  z-index: 2;
}

.evoque-lead-modal .form_area .form_group.bnr_btn button:after {
  position: absolute;
  content: "";
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  background: #3a3939;
  z-index: 1;
  -webkit-transition: all 300ms ease;
  transition: all 300ms ease;
}

.evoque-lead-modal .form_area .form_group.bnr_btn button:hover {
  color: #ffffff;
}

.evoque-lead-modal .form_area .form_group.bnr_btn button:hover:after {
  top: 0;
}

/* Success Confirmation State */
.evoque-lead-success-state {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.evoque-lead-success-state h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin: 0 0 10px;
  color: #000000;
}

.evoque-lead-success-state p {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

/* ==========================================================================
   3. Minimized Floating Widget (Bottom-Left Circular Button Matching WhatsApp)
   ========================================================================== */
.evoque-lead-widget {
  width: 80px;
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 999;
  display: none;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.evoque-lead-widget.is-visible {
  display: block;
}

.evoque-lead-widget .booking_ico {
  width: 80px;
  height: 80px;
  display: block;
  border-radius: 50%;
  -webkit-animation: floatMoving 3s infinite alternate;
          animation: floatMoving 3s infinite alternate;
  -webkit-transition: -webkit-filter 0.25s ease;
  transition: filter 0.25s ease;
}

.evoque-lead-widget .booking_ico img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.evoque-lead-widget:hover .booking_ico {
  -webkit-filter: brightness(1.15) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
          filter: brightness(1.15) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

/* ==========================================================================
   4. Periodic Nudge Alert Tooltip (Hovering above Minimized Widget)
   ========================================================================== */
.evoque-lead-nudge {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0;
  min-width: 260px;
  max-width: 290px;
  background: #ffffff;
  color: #000000;
  padding: 15px 18px;
  border-radius: 6px;
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid #ccc;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(8px);
          transform: translateY(8px);
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease, -webkit-transform 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  cursor: default;
}

.evoque-lead-nudge.is-showing {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  pointer-events: auto;
}

/* Tooltip Arrow */
.evoque-lead-nudge::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 25px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

.evoque-lead-nudge-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-bottom: 6px;
}

.evoque-lead-nudge-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 15px;
  color: #000000;
}

.evoque-lead-nudge-close {
  background: none;
  border: none;
  color: #888888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
}

.evoque-lead-nudge-close:hover {
  color: #000000;
}

.evoque-lead-nudge-body {
  font-family: 'Open Sans', sans-serif;
  font-size: 12.5px;
  color: #555555;
  margin: 0;
  line-height: 1.5;
}

.evoque-lead-nudge-cta {
  display: inline-block;
  margin-top: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  text-decoration: underline;
  cursor: pointer;
}

.evoque-lead-nudge-cta:hover {
  color: #3a3939;
}

/* Mobile Responsiveness */
@media screen and (max-width: 767px) {
  .evoque-lead-modal {
    padding: 30px 20px 20px;
    max-height: 88vh;
  }
  .evoque-lead-modal .cmn_title {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .evoque-lead-widget {
    width: 65px;
    height: 65px;
    bottom: 20px;
    left: 15px;
  }
  .evoque-lead-widget .booking_ico {
    width: 65px;
    height: 65px;
  }
}
