/********************************************************* LES Modal CSS Start ************************/
/* =====================================================
   GENERIC BOOTSTRAP MODAL - COMPLETE REUSABLE STYLES
   ===================================================== */

/* ===== MODAL OVERLAY ===== */
.modal {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-dialog {
    transform: none;
}

/* ===== MODAL DIALOG ===== */
.modal-dialog {
    margin: 3rem auto;
    max-width: 800px;
}

.modal-dialog.modal-lg {
    max-width: 900px;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #fff;
}

/* ===== MODAL BODY ===== */
.modal-body {
    padding: 30px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    background: #fff;
}

/* Custom scrollbar for modal body */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Table Responsive */
.modal-body.table-responsive {
    overflow-x: auto;
}
/*Sucess listing in table*/
.alert-success {
    color: #00b560 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    font-size: 19px !important;
    font-weight: 500 !important;
}

/* Message Container */
#messageContainer {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
}

#messageContainer.show {
    display: block;
}

#messageContainer.success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-left: 4px solid #2ECC71;
    color: #2ECC71;
}

#messageContainer.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

#messageContainer.warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-left: 4px solid #ffc107;
    color: #d68910;
}

/* Form Container */
.modal-body form {
    width: 100%;
}

.modal-body .table {
    width: 100%;
    margin-bottom: 1rem;
}

/* ===== MODAL FOOTER ===== */
.modal-footer,
.modern-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef !important;
    border-radius: 0 0 16px 16px;
}

/* ===== BUTTON STYLES ===== */

/* Common Button Base */
/* .modal-footer button,
.modern-modal-footer button,
.memberShipBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px !important;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    outline: none;
    border: 2px solid transparent !important;
    min-width: 110px;
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
} */

/* Update Button (Primary / Success) */
.modal-update-btn,
.updateMemberDetails,
.btn-success.memberShipBtn {
    border-radius: 50px;
    font-size: 14px;
    padding: 8px 15px 10px 15px;
    font-weight: 600;
    background-color: #2ECC71;
    border: 1px solid #2ECC72;
    color: #fff;
    margin: 0px;
    width: 100px;
    line-height: 21px;
}
.updateMemberDetails:hover{
    background-color: #2ECC71!important;
    border: 1px solid #2ECC72!important;
    color: #fff!important;
} 

/* .modal-update-btn:hover,
.updateMemberDetails:hover,
.btn-success.memberShipBtn:hover {
    background: #27AE60 !important;
    border-color: #27AE60 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
} */

/* .modal-update-btn:active,
.updateMemberDetails:active,
.btn-success.memberShipBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.3);
} */

/* Close Button (Secondary) */
.modal-close-btn,
.closeButton,
.btn-theme.memberShipBtn {
    /* background: transparent !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
    border-radius: 50px;
    font-size: 14px;
    padding: 8px 15px 10px 15px;
    font-weight: 600;
    background-color: #2ECC71;
    color: #fff;
    margin: 0px;
    width: 100px;
    line-height: 21px;
}

/* .modal-close-btn:hover,
.closeButton:hover,
.btn-theme.memberShipBtn:hover {
    background: #6c757d !important;
    color: #fff !important;
    border-color: #6c757d !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.25);
} */

/* .modal-close-btn:active,
.closeButton:active,
.btn-theme.memberShipBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
} */

/* Button Text and Icon */
.button-text {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.button-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.modal-update-btn:hover .button-icon,
.updateMemberDetails:hover .button-icon {
    transform: scale(1.1);
}

.modal-close-btn:hover .button-icon,
.closeButton:hover .button-icon {
    transform: rotate(90deg);
}

/* Ripple Effect */
.modal-footer button::before,
.modern-modal-footer button::before,
.memberShipBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 0;
}

.modal-footer button:active::before,
.modern-modal-footer button:active::before,
.memberShipBtn:active::before {
    width: 200px;
    height: 200px;
}

/* Loading State */
.modal-update-btn.loading,
.updateMemberDetails.loading {
    pointer-events: none;
    opacity: 0.8;
}

.modal-update-btn.loading .button-text,
.modal-update-btn.loading .button-icon,
.updateMemberDetails.loading .button-text,
.updateMemberDetails.loading .button-icon {
    opacity: 0;
}

.modal-update-btn.loading::after,
.updateMemberDetails.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spinModal 1s linear infinite;
    z-index: 2;
}

@keyframes spinModal {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled State */
.modal-footer button:disabled,
.modern-modal-footer button:disabled,
.memberShipBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* Focus States for Accessibility */
.modal-update-btn:focus,
.updateMemberDetails:focus {
    outline: 2px solid rgba(46, 204, 113, 0.5);
    outline-offset: 2px;
}

.modal-close-btn:focus,
.closeButton:focus {
    outline: 2px solid rgba(108, 117, 125, 0.5);
    outline-offset: 2px;
}

/* ===== FORM ELEMENTS INSIDE MODAL ===== */
.modal-title {
    margin-bottom: 0px !important;
    font-family: 'Plus Jakarta Sans';
    font-size: 22px !important;
}

/* Input Fields */
/* .modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="number"],
.modal-body input[type="tel"],
.modal-body input[type="password"],
.modal-body input[type="date"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #2c3e50;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
} */
select#leadSource,select#leadStatus {
    line-height: 50px !important;
    height: 50px;
}
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    border: 1px solid #b9b9b9;
}

.modal-body label {
    font-size: 15px;
    font-weight: 600;
    color: var(--e-global-color-secondary);
}

/* Table Styles Inside Modal */
.modal-body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.modal-body table th,
.modal-body table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.modal-body table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-body table tr:hover {
    background: #f8f9fa;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1.5rem;
        max-width: calc(100% - 3rem);
    }
    
    .modal-dialog.modal-lg {
        max-width: calc(100% - 3rem);
    }
    
    .modal-content {
        border-radius: 12px !important;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-footer,
    .modern-modal-footer {
        padding: 15px 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 10px !important;
    }
    
    .modal-header {
        padding: 18px 20px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 20px 18px;
        max-height: calc(100vh - 250px);
    }
    
    .modal-footer,
    .modern-modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
        padding: 15px 18px;
    }
    
    .modal-footer button,
    .modern-modal-footer button,
    .memberShipBtn {
        width: 100%;
        min-width: unset;
        padding: 12px 20px !important;
    }
    
    .modal-body table {
        font-size: 0.85rem;
    }
    
    .modal-body table th,
    .modal-body table td {
        padding: 8px;
    }
}
/* CTAs */
/* Ctas */
.lesFilledCta {
    background-color: #2ECC71 !important;
    font-family: "Plus Jakarta Sans", Sans-serif;
    font-size: 16px;
    line-height: 24px !important;
    font-weight: 500 !important;
    box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.15) !important;
    border-style: solid !important;
    color: #fff !important;
    border-color: #2ECC71 !important;
    border-radius: 50px 50px 50px 50px !important;
    padding: 10px 25px !important;
    width: max-content !important;
}
.lesFilledCta:hover{
    background-color: #2ECC71 !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.lesOutlineCta {
  color: #2ecc71;
  background-color: #fff;
  border: 1px solid #2ecc71;
  font-size: 16px;
  line-height: 24px !important;
  font-weight: 500 !important;
  border-radius: 50px 50px 50px 50px !important;
  padding: 10px 25px !important;
  width: max-content !important;
}
.lesOutlineCta:hover{
  background-color: #2ECC71 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.lesTextCta{
    background-color: transparent!important;
    color: #2ECC71!important;
    font-size: 16px!important;
    line-height: 24px!important;
    border: none!important;
    border-bottom: 2px solid #2ECC71!important;
    padding: 0px 2px!important;
    border-radius: 0px!important;
    text-decoration: none !important;
}
.lesTextCta:hover{
    transform: translateY(-2px);
}
.lesIconCta {
  border: none !important;
  padding: 0px !important;
  background-color: transparent;
}
.lesIconCta:hover {
  color: #ff5050!important;
}
/* Small Mobile */
@media (max-width: 360px) {
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-header {
        padding: 15px 18px;
    }
    
    .modal-body {
        padding: 18px 15px;
    }
    
    .modal-footer,
    .modern-modal-footer {
        padding: 12px 15px;
    }
    
    .modal-footer button,
    .modern-modal-footer button,
    .memberShipBtn {
        padding: 10px 16px !important;
        font-size: 0.9rem;
    }
}

/* ===== ANIMATIONS ===== */

/* Modal entrance animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.show .modal-content {
    animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover glow effect for update button */
.modal-update-btn::after,
.updateMemberDetails::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.modal-update-btn:hover::after,
.updateMemberDetails:hover::after {
    left: 100%;
}

/* ===== UTILITY CLASSES ===== */

/* Centered modal */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3rem);
}

/* Scrollable modal */
.modal-dialog-scrollable {
    height: calc(100% - 3rem);
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

/* Full screen modal on mobile */
@media (max-width: 576px) {
    .modal-fullscreen-sm-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }
    
    .modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0 !important;
    }
}

/* ===== DARK MODE SUPPORT (Optional) ===== */

@media (prefers-color-scheme: dark) {
    .modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .modal-body {
        background: #2c3e50;
    }
    
    .modal-footer,
    .modern-modal-footer {
        background: #34495e;
        border-top-color: #465a6f !important;
    }
    
    .modal-body input,
    .modal-body select,
    .modal-body textarea {
        background: #34495e;
        border-color: #465a6f;
        color: #ecf0f1;
    }
    
    .modal-body table th {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .modal-body table td {
        border-bottom-color: #465a6f;
    }
    
    .modal-body table tr:hover {
        background: #34495e;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .modal {
        display: none !important;
    }
}
/********************************************************* LES Modal CSS End ************************/

/* Email Login Form */
/* .lesLoginForm {
  border: 1px solid #dadcdd;
  padding: 40px 30px;
  width: 100%;
  max-width: 600px;
  margin: auto;
    margin-top: 70px;
  position: relative;
  background-color: #fff;
  padding: 95px 30px 50px;
  transition: 0.3s ease-in-out;
  overflow: hidden;
}

.login-icon i {
  font-size: 36px !important;
  color: #fff;
}
input#login-form-email {
  line-height: 55px;
  height: 55px;
  padding: 0px 20px;
  font-size: 18px;
  border:1px solid #e7e7e7;
  box-shadow: none;
}
input#login-form-email:focus {
  border-color: #e7e7e7;
}
.lesLoginCta{
  padding: 14px 32px;
  font-size: 18px;
    border-radius: 0px;
    background-color: #2b61ff;
    border: 1px solid;
    color: #fff;
    margin-top: 5px;
} */
.lesRequired {
  color: red;
}

/* lesTitles */
/* .lesTitles{
  position: relative;
}
.lesTitleLogin{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}
.lesTitleRegister{
  top: 50px;
} */
/* .loginErrorMessage {
  margin-bottom: 0px;
  margin-top: 20px;
  color: red;
  text-align: center
} */

.settingBox {
    background-color: white;
    padding: 20px;
    max-width: 700px;
    box-sizing: border-box;
    margin: 50px auto;
}
.settingBox h1 {
    font-size: 28px;
    color: #0a1f44;
    text-align: center;
    margin-top: 0px;
    font-family: 'Open Sans', sans-serif;
}
.settingBox p {
    /* color: #5f6f8f; */
    text-align: center;
    margin-bottom: 30px;
    font-family: 'Work Sans', sans-serif;
}

.settingInput,
.settingTextarea {
      width: 100%;
      line-height: 55px;
      height: 55px;
      padding: 0px 20px;
      font-size: 18px;
      border: 1px solid #e7e7e7;
      box-shadow: none;
      font-family: 'Open Sans', sans-serif;
      box-sizing: border-box;
      margin-bottom: 10px;
}
.settingInput:focus-visible,
.settingTextarea:focus-visible,
.settingBox input[type=checkbox]:focus{
      outline: none;
}
.field-group {
    display: flex;
    align-items: center; 
    gap: 10px; 
}
.settingCTA {
      padding: 14px 32px;
      font-size: 18px;
      border-radius: 0px;
      /* background-color: #2b61ff; */
      /* border: 1px solid #2b61ff; */
      /* color: #fff; */
      margin: 0px;
      margin-top: 20px;
      cursor: pointer;
}
.settingCTA:hover,.settingIconCta:hover {
      /* background-color: #a50313; */
      border: 1px solid;
      /* color: #fff; */
      transition: 0.3s ease-in-out;
}
.api-links {
    margin-top: 20px;
}
.apiLinkSet {
    position: relative;
}
.apiLinkSet {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* Create three equal columns */
  gap: 20px; /* Adjust the space between items */
}

.apiTitleDiv, .apiDescDiv, .apiLinkDiv {
  display: flex;
  flex-direction: column;
}
.settingIconCtas {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}
.settingIconCta {
      /* background: #2b61ff; */
      border: 1px solid;
      border-radius: 50%;
      font-size: 18px;
      line-height: 18px;
      width: 30px;
      height: 30px;
      cursor: pointer;
      /* color: #fff; */
      padding: 0px;
    margin: 0px;
}
.settingIconCta i{
  /* color: #fff; */
}
.remove-btn {
    font-size: 18px;
    color: red;
    cursor: pointer;
}
.modules {
    text-align: left;
    margin-top: 20px;
}
.settingBox h4 {
  margin-top: 10px;
}
.settingBox h3 {
    /* color: #0a1f44; */
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
}
.modules label {
      display: flex;
      align-items: center;
      gap: 5px;
    font-weight: normal;
}
.modules input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    margin: 0px;
    border: 1px solid #ccc;
    display: inline-block;
    position: relative;
}
.modules input[type="checkbox"]:checked::after {
  content: "✔";
  color: #fff;
  font-size: 14px;
  position: absolute;
  font-weight: 700;
  line-height: 16px;
  bottom: 0px;
  left: 2px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dropdownWrapper {
    position: relative;
    width: 300px;
}
.dropdownInput {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.dropdownList {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: #fff;
    z-index: 10;
}
.dropdownList div {
    padding: 8px;
    cursor: pointer;
}
.dropdownList div:hover {
    background-color: #f0f0f0;
}

/* Hide Razorpay payment method logo */
.payment_method_razorpay img {
    display: none !important;
}

/* Loader */

.popupBox {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 999;
    /* Sit on top */
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

.popupBox-content {
    position: fixed;
    left: 50%;
    top: 50%;
}

.loader {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
    border-width: 3px 2px 3px 2px;
    border-style: solid dotted solid dotted;
    border-color: var(--secondary-color) var(--secondary-color) var(--gradient-start-color) var(--gradient-start-color);
    border-radius: 50%;
    box-sizing: border-box;
    animation: 1s rotate linear infinite;
}

.loader:before,
.loader:after {
    content: '';
    top: 0;
    left: 0;
    position: absolute;
    border: 10px solid transparent;
    border-bottom-color: #2b61ff;
    transform: translate(-10px, 19px) rotate(-35deg);
}
.loader:after {
  border-bottom-color: #a50313;
  transform: translate(32px, 3px) rotate(150deg);
}

/* searchable dropdown */
.choices__heading {
    color: #2ecc71 !important;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg)
    }
}

@media (max-width: 767.98px) {
  .field-group {
    flex-direction: column;
    gap: 0px;
  }
  .field-group div {
  width: 100%;
  }
  .settingBox {
    padding: 20px;
  }
  .apiLinkSet {
    grid-template-columns: 1fr; 
    gap: 0px; 
}
.leadFormRow{
  flex-wrap: wrap;
}
.leadTableDiv{
  overflow-x: auto;
}
}
