/* ======================================================================
   Request Callback Modal + Form (Bootstrap modal on .location_page)
   Desktop: centered modal
   Mobile: bottom sheet (90vh)
   Mobile: scroll body + fixed/sticky submit footer
====================================================================== */
 
/* ------------------------------
   FORM BASE (your existing styles)
------------------------------ */
.custom-client-request-callback-form {
  background: linear-gradient(135deg, #f7fbff, #eef3f8);
  padding: 24px 24px 18px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  max-width: 760px;
  color: #0f172a;
}
 
.custom-client-request-callback-form .callback-form__intro {
  margin-bottom: 18px;
}
 
.custom-client-request-callback-form .callback-form__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: #0f766e;
  margin: 0 0 8px;
  font-weight: 700;
}
 
.custom-client-request-callback-form .callback-form__title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
 
.custom-client-request-callback-form .callback-form__copy {
  margin: 0;
  color: #334155;
  font-size: 15px;
}
 
.custom-client-request-callback-form .callback-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 12px;
  margin-bottom: 15px;
}
 
.custom-client-request-callback-form .form-item label {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.custom-client-request-callback-form .form-item label.error
{
  margin-top: 6px;
  line-height: 20px;
  color: #e90510 !important;
}
.request-form-required{
  color:red;
}
.custom-client-request-callback-form input[type="text"],
.custom-client-request-callback-form input[type="email"],
.custom-client-request-callback-form select,
.custom-client-request-callback-form textarea,
.custom-client-request-callback-form #preferred_date {
  width: 100%;
  border-radius: 10px !important;
  border: 1px solid #d8e3ef !important;
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  font-family: "Manrope";
}
 
.custom-client-request-callback-form input[type="text"]:focus,
.custom-client-request-callback-form input[type="email"]:focus,
.custom-client-request-callback-form select:focus,
.custom-client-request-callback-form textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.18);
}
 
.custom-client-request-callback-form textarea {
  min-height: 120px;
  resize: vertical;
}
 
/* If you're still using the original actions container somewhere */
.custom-client-request-callback-form .callback-form__actions {
  margin-top: 4px;
  padding-top: 12px;
  display: flex;
  justify-content: center;
}
 
.custom-client-request-callback-form .callback-form__actions .form-submit {
  background: #3e43ab !important;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  width: 100% !important;
  padding: 20px !important;
}
 
.custom-client-request-callback-form .callback-form__actions .form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.34);
  filter: brightness(1.03);
}
 
.custom-client-request-callback-form .callback-form__actions .form-submit:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(14, 116, 144, 0.22);
}
 
/* Date field layout */
.js-form-type-date.form-item-preferred-date.form-group {
  display: flex;
  flex-direction: column;
}
 
#preferred-date {
  padding: 15px;
}
 
/* Error field border */
.custom-client-request-callback-form input.error,
.custom-client-request-callback-form select.error,
.custom-client-request-callback-form textarea.error {
  border: 2px solid #d32f2f !important;
  background-color: #fff8f8;
}
 
#preferred_date.error {
  border: 2px solid #d32f2f !important;
  background-color: #fff8f8;
}
 
/* Error message block */
.custom-client-request-callback-form .messages--error {
  color: #d32f2f;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 10px;
  border-left: 4px solid #d32f2f;
  background: #ffffff;
}
 
/* Hide message box alert inside wrapper (your rule) */
#custom-client-ajax-wrapper .message-box.alert {
  display: none !important;
}
 
/* Small screen tweaks */
@media (max-width: 540px) {
  .custom-client-request-callback-form {
    padding: 20px 18px 14px;
  }
  .custom-client-request-callback-form .callback-form__title {
    font-size: 22px;
  }
}
 
/* ======================================================================
   MODAL (Bootstrap) - Desktop center, Mobile bottom sheet
====================================================================== */
 
/* Modal content baseline */
.location_page .modal .modal-content {
  max-height: none;
  overflow: hidden; /* prevent double scroll */
  border-radius: 14px;
}
 
/* Header baseline */
.location_page .modal .modal-content .modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    flex-direction: row-reverse;
}
 
/* Close button */
.location_page .modal .close {
  background: none;
  padding: 0 !important;
  font-size: 30px;
  line-height: 1;
}
 
/* Modal body should not scroll (we scroll inner body section) */
.location_page .modal .modal-body {
  padding: 0 !important;
  overflow-y: auto;
}
 
/* Hide bootstrap footer */
.location_page .modal .modal-footer {
  background-color: #f0f5fa;
  display: none !important;
}
#drupal-modal .modal-footer{
  display: none !important;
}
/* DESKTOP: centered modal */
 
.custom-client-request-callback-form .form-item-topic{
    margin-bottom: 15px;
  }
/* MOBILE: bottom-sheet drawer 90vh */
/* ======================================================================
   INNER FORM LAYOUT: Scrollable body + Sticky submit footer
   Requires markup split:
     #custom-client-ajax-wrapper
       .callback-form__body  (scroll area)
       .callback-form__footer (button area)
====================================================================== */
 
/* Form should fill modal */
.location_page .modal .custom-client-request-callback-form {
  height: 100%;
  max-width: none;
  box-shadow: none;
  padding: 0;      /* remove outer padding; body/footer handle it */
  background: none;
}
 
/* Wrapper becomes a column layout */
#custom-client-ajax-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
}
 
/* Scroll only body */
#custom-client-ajax-wrapper .callback-form__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px 12px;
  background: linear-gradient(135deg, #f7fbff, #eef3f8);
}
 
/* Sticky footer for submit button */
#custom-client-ajax-wrapper .callback-form__footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 12px 16px;
  background: #f0f5fa;
  border-top: 1px solid #e6eef6;
}
 
/* Footer submit button full width */
#custom-client-ajax-wrapper .callback-form__footer .form-submit {
  background: #3e43ab !important;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  width: 100% !important;
  padding: 16px 18px !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
      min-height: 50px;
    max-width: 200px;
}
.callback-success__card.form-group{
    text-align: center;
    padding: 20px;
}
 
.ui-dialog.custom-request-callback-modal {
    width: 100% !IMPORTANT;
    max-width: 700px;
    z-index: 1000 !important;
    padding:0px;
}
.custom-request-callback-modal .ui-dialog-buttonpane.ui-widget-content.ui-helper-clearfix {
    display: none;
}
.custom-request-callback-modal #drupal-modal {
    padding: 0px !important;
}
.custom-client-request-callback-form{
  padding: 0px;
  background: transparent;
}
/* Optional: slightly tighter padding on very small screens */
@media (max-width: 360px) {
  #custom-client-ajax-wrapper .callback-form__body {
    padding: 14px 14px 10px;
  }
  #custom-client-ajax-wrapper .callback-form__footer {
    padding: 10px 12px;
  }
}
  #custom-client-ajax-wrapper .callback-form__body{
    min-height: 60vh;
    background: transparent;
  }
  @media (min-width: 768px) {
  .location_page .modal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1260;
    margin: 0 !important;
    width: 90% !important;
    max-width: 700px !important;
    height: auto !important;
  }
 
  .location_page .modal .modal-content {
    max-height: 90vh;
    overflow: hidden;
  }
}
@media (max-width: 767px) {
  .ui-dialog.custom-request-callback-modal
  {
    max-width: 95%;
    margin: auto;
    left: 0 !important;
    right: 0;
  }
  .location_page .modal .modal-dialog {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    z-index: 1260;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 90vh !important;
  }
 
  .location_page .modal .modal-content {
    height: 90vh !important;
    max-height: 90vh !important;
    border-radius: 16px 16px 0 0;
    overflow: hidden !important;
  }
 
  .location_page .modal .modal-header {
    padding: 10px 14px;
  }
  #custom-client-ajax-wrapper .callback-form__body{
    max-height: 70vh;
  }
  .custom-client-request-callback-form .callback-form__actions{
    margin-top: 0px;
    padding-top: 0px;
  }
  .custom-client-request-callback-form .callback-form__grid{
    margin-bottom: 10px;
  }
  .custom-client-request-callback-form .form-item-topic{
    margin-bottom: 20px;
  }
}

.location_page #ui-datepicker-div
{
  z-index: 1001 !important;
     box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid #ededed  !important;
    border-radius: 6px;
}



.location_page #ui-datepicker-div .ui-datepicker-calendar tbody td ,
.location_page #ui-datepicker-div .ui-datepicker-calendar tbody td span ,
.location_page #ui-datepicker-div .ui-datepicker-calendar tbody td a
{
border: none !important;
background: #fff !important;
text-align: center;
}
.location_page #ui-datepicker-div .ui-datepicker-calendar tbody td a
{
  text-align: center;
  border: none !important;
background: #fff !important;
}
.location_page #ui-datepicker-div .ui-datepicker-calendar tbody td a.ui-state-highlight
 {
background: #43469b !important;
 color: #fff;
 border: none !important;
 text-align: center;
 border-radius: 33px;
 }
 .location_page #ui-datepicker-div .ui-datepicker-calendar .ui-widget-header
  {
    background: transparent !important;
    border: none !important;
  }
 .location_page #ui-datepicker-div .ui-datepicker-calendar td
  {
padding: 5px ;
  }
   .location_page #ui-datepicker-div .ui-datepicker-calendar td a.ui-state-active
   {
    color: #333 !important;
   }
     .location_page #ui-datepicker-div .ui-widget-header
   {
border: none !important;
background: #f0f5fb !important;
color: #333 !important;
   }
      .location_page .custom-request-callback-modal
      {
           border: 1px solid #d8e3ef !important;
      }
      .location_page .custom-request-callback-modal .ui-widget-header
      {
        background: #3e43ab;
    border: none;
    color: #fff;
    padding: 10px;
    border-radius: 5px 5px 0 0;
      }
      .location_page #ui-datepicker-div .ui-datepicker-close
      {
    border: none !important;
    background: #f0f5fb !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
      }
.custom-client-request-callback-form .form-item label
{
  display: block;
}