html,body {
  margin: 0;
  font-family: Arial, sans-serif;
    height: 100%;
  overflow: hidden;
}

.main-container {
  display: flex;
  flex-wrap: nowrap;
  /*height: calc(95vh - 32px);*/
height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 21%;
  background: #0071ED;
  color: white;
  padding: 0;
  border-radius: 10px;
  margin-right: 10px;
  height: 100%;
  overflow-y: auto;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
}
.sidebar-inner {
  padding: 13px 15px 0 15px;
}

.reset-btn {
  background: white;
  color: #0a58ca;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}
.reset-btn:hover {
  background: #e9f2ff;
  transform: rotate(-20deg);
}

.sidebar select {
  width: 100%;
  padding: 8px;
  margin: 15px 0;
}

.filter-group { margin-bottom: 7px; }

.filter-title {
  padding: 15px 0 15px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.20);
  border-bottom: 1px solid rgba(255,255,255,0.20);
}
.filter-title input { margin-right: 8px; }

.filter-options { display: none; padding: 10px; }
.filter-options label { display: block; margin-bottom: 5px; }

/* ── PROVIDERS SECTION in sidebar ── */
.providers-section { padding: 0 0 15px 0; }

.providers-section-title {
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.12);
}

.providers-search-wrap { padding: 10px 15px 5px; }
.providers-search-wrap input {
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  background: rgba(255,255,255,0.15);
  color: white;
  outline: none;
  box-sizing: border-box;
}
.providers-search-wrap input::placeholder { color: rgba(255,255,255,0.55); }

#providerFilterContainer {
  padding: 6px 15px 10px;
  max-height: 260px;
  overflow-y: auto;
}
#providerFilterContainer::-webkit-scrollbar { width: 4px; }
#providerFilterContainer::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

.provider-filter-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13.5px;
  transition: background 0.15s;
  color: white;
}
.provider-filter-label:hover { background: rgba(255,255,255,0.12); }
.provider-filter-label input[type="checkbox"] {
  accent-color: #F8A31D;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── MATRIX SECTION — overflow hidden by default (JS unlocks it) ── */
.matrix-section {
  width: 78%;
  height: 100%;
  overflow: hidden;        /* 🔒 locked by default */
  padding: 0;
  border-radius: 16px 0 0 0;
  flex-shrink: 0;
  position: relative;
}

.matrix-wrapper {
  position: relative;
  min-height: 100%;
}

table {
  width: 100%;
  table-layout: fixed;   /* columns never resize — widths from colgroup */
  border-collapse: collapse;
}

/* Provider columns: share remaining space equally */
col.provider-col {
  width: auto;           /* browser divides remaining width equally */
}

th {
  font-size: 16px;
  font-weight: 600;
  padding: 17px;
  border-radius: 12px 12px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 200px;
}
td {
  padding: 14px !important;
  background-color: #fff;
}
th, td {
  border: 1px solid #ddd;
  text-align: center;
}

/* Service column — fixed width + sticky left */
th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  font-weight: 600;
  background-color: #fff;   /* prevent see-through while sticky */
  width: 220px;
  min-width: 220px;
  max-width: 220px;
}
th:first-child {
  background-color: #F8A31D;
  z-index: 3;               /* above other sticky cells */
}

tr.group-row td span {
  text-align: left;
    display: block;
    width: 20%;
    padding: 0 0 0 60px;
}
tr.group-row td {
  background-color: #000;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  color: #fff;
  padding-left: 0 !important;
}

/* Provider header colours */
.provider-0  { background: #034C85; color: white; }
.provider-1  { background: #0056b3; color: white; }
.provider-2  { background: #28a745; color: white; }
.provider-3  { background: #6f42c1; color: white; }
.provider-4  { background: #2D8CFF; color: white; }
.provider-5  { background: #4C54B9; color: white; }
.provider-6  { background: #FF3300; color: white; }
.provider-7  { background: #1737FB; color: white; }
.provider-8  { background: #006C3A; color: white; }
.provider-9  { background: #F8B400; color: white; }
.provider-10 { background: #0E88BF; color: white; }
.provider-11 { background: #06253E; color: white; }
.provider-12 { background: #E30878; color: white; }
.provider-13 { background: #FF7C08; color: white; }
.provider-14 { background: #082C3F; color: white; }
.provider-15 { background: #08084E; color: white; }
.provider-16 { background: #0898E2; color: white; }
.provider-17 { background: #E7312C; color: white; }
.provider-18 { background: #4B328E; color: white; }
.provider-19 { background: #B9FF08; color: #000;  }
.provider-20 { background: #6B2C85; color: white; }
.provider-21 { background: #089CCF; color: white; }
.provider-22 { background: #084B80; color: white; }
.provider-23 { background: #083B98; color: white; }
.provider-24 { background: #1E61FF; color: white; }
.provider-25 { background: #FC692A; color: white; }
.provider-26 { background: #EE232B; color: white; }
.provider-27 { background: #4196DC; color: white; }
.provider-28 { background: #ED212A; color: white; }
.provider-29 { background: #1F59D4; color: white; }
.provider-30 { background: #EE222B; color: white; }
.provider-31 { background: #0861A8; color: white; }
.provider-32 { background: #2C4C95; color: white; }
.provider-33 { background: #08BBEB; color: white; }
.provider-34 { background: #08E7DA; color: white; }
.provider-35 { background: #0A5B99; color: white; }
.provider-36 { background: #F37837; color: white; }
.provider-37 { background: #112494; color: white; }
.provider-38 { background: #183575; color: white; }
.provider-39 { background: #EE3A32; color: white; }
.provider-40 { background: #28A7D9; color: white; }
.provider-41 { background: #7EB555; color: white; }
.provider-42 { background: #FD910A; color: white; }
.provider-43 { background: #08AB33; color: white; }
.provider-44 { background: #2A72A8; color: white; }
.provider-45 { background: #292A29; color: white; }
.provider-46 { background: #080808; color: white; }
.provider-47 { background: #C93233; color: white; }
.provider-48 { background: #6C4DFD; color: white; }
.provider-49 { background: #58BE25; color: white; }
.provider-50 { background: #3B7BBE; color: white; }
.provider-51 { background: #396BFF; color: white; }
.provider-52 { background: #D01B33; color: white; }
.provider-53 { background: #08A5E0; color: white; }

.service-col { background: #F8A31D; color: black; text-align: center; font-size: 24px; }
.check { color: green; font-weight: bold; }
.cross { color: red;   font-weight: bold; }

/* ── LOCK OVERLAY
   Covers the BOTTOM half of the matrix with blur + fade.
   position:sticky bottom:0 means it always sits at the
   bottom of the VISIBLE area regardless of scroll position.
── */
.lock-overlay {
  position: sticky;
  bottom: 0;
  left: 0;
  width: 100%;
  /* height & margin-top set dynamically by JS based on table height */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0)    0%,
    rgba(255,255,255,0.45) 22%,
    rgba(255,255,255,0.88) 60%,
    rgba(255,255,255,0.97) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: auto;
  transition: height 0.25s ease, margin-top 0.25s ease;
}

.lock-content { text-align: center; padding: 20px; }

.lock-content h2 {
  color: #1a1a2e;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 20px;
}

/* Pill button — matches Figma */
.fill-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #1a1a2e;
  border: 1.5px solid #d0d0d0;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.15s;
}
.fill-form-btn:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  transform: translateY(-1px);
}
.fill-form-btn .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #0071ED;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
}

/* ── POPUP MODAL ── */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeInOverlay 0.25s ease;
}#calendlyPopup{ text-align: center; }
#calendlyPopup p{ margin-bottom: 35px; }
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.popup-modal {
  background: #fff;
  border-radius: 18px;
  padding: 40px 36px 32px;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  position: relative;
  animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.popup-modal .close-btn {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  line-height: 1;
  transition: color 0.15s;
}
.popup-modal .close-btn:hover { color: #333; }

.popup-modal .popup-icon { font-size: 42px; text-align: center; margin-bottom: 10px; }

.popup-modal h3 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
}
.popup-modal .popup-sub {
  text-align: center;
  color: #666;
  font-size: 13.5px;
  margin-bottom: 24px;
}

.popup-modal .form-field { margin-bottom: 14px; }
.popup-modal .form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.popup-modal .form-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 9px;
  font-size: 14px;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.popup-modal .form-field input:focus {
  border-color: #0071ED;
  box-shadow: 0 0 0 3px rgba(0,113,237,0.1);
}

.popup-modal .submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #0071ED, #0056b3);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.popup-modal .submit-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.popup-modal .popup-providers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  justify-content: center;
}
.popup-modal .popup-providers-list span {
  background: #EEF5FF;
  color: #0071ED;
  border: 1px solid #c5dcff;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 600;
}

.dropdown-icon { margin-right: 6px; transition: 0.3s; }
.filter-title.open .dropdown-icon { transform: rotate(90deg); }

#otp-field {
    display:none;
}

/* ── Add these to the bottom of your style.css ── */

.otp-sent-msg {
  background: #eefaf3;
  color: #1a7a3f;
  border: 1px solid #b6e8c8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.resend-link {
  text-align: center;
  font-size: 12.5px;
  color: #999;
  margin-top: 10px;
}
.resend-link span {
  color: #0071ED;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}
.resend-link span:hover {
  color: #0056b3;
}

/* ── Add these to the bottom of your style.css ── */

.otp-sent-msg {
  background: #eefaf3;
  color: #1a7a3f;
  border: 1px solid #b6e8c8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.resend-link {
  text-align: center;
  font-size: 12.5px;
  color: #999;
  margin-top: 10px;
}
.resend-link span {
  color: #0071ED;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}
.resend-link span:hover {
  color: #0056b3;
}

/* ── Inline form error / success messages ── */
.popup-form-msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}
.popup-form-msg--error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}
.popup-form-msg--success {
  background: #eefaf3;
  color: #1a7a3f;
  border: 1px solid #b6e8c8;
}

/* ── Add these to the bottom of your style.css ── */

/* ── Modal scroll fix: cap height so close button is never hidden ── */
.popup-modal {
  max-height: 90vh;
  overflow-y: auto;
}

/* ── Keep close button pinned to top-right even while scrolling ── */
.popup-modal .close-btn {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -30px; /* overlap so it doesn't push content down */
}

.otp-sent-msg {
  background: #eefaf3;
  color: #1a7a3f;
  border: 1px solid #b6e8c8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.resend-link {
  text-align: center;
  font-size: 12.5px;
  color: #999;
  margin-top: 10px;
}
.resend-link span {
  color: #0071ED;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}
.resend-link span:hover {
  color: #0056b3;
}

/* msg */
.popup-form-msg{
margin-bottom:10px;
padding:10px;
border-radius:6px;
font-size:14px;
}

.popup-form-msg.error{
background:#ffe6e6;
color:#b30000;
border:1px solid #ffb3b3;
}

.popup-form-msg.success{
background:#e6ffed;
color:#006622;
border:1px solid #9be2b0;
}

/* ── Paste all of this at the bottom of your style.css ── */

/* Modal: cap height + scroll inside so close btn never hides */
.popup-modal {
  max-height: 90vh;
  overflow-y: auto;
}

/* Close button stays pinned at top while modal scrolls */
.popup-modal .close-btn {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -30px;
}

/* OTP sent confirmation banner */
.otp-sent-msg {
  background: #eefaf3;
  color: #1a7a3f;
  border: 1px solid #b6e8c8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

/* Resend link */
.resend-link {
  text-align: center;
  font-size: 12.5px;
  color: #999;
  margin-top: 10px;
}
.resend-link span {
  color: #0071ED;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}
.resend-link span:hover { color: #0056b3; }

/* Inline error / success messages */
.popup-form-msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}
.popup-form-msg--error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}
.popup-form-msg--success {
  background: #eefaf3;
  color: #1a7a3f;
  border: 1px solid #b6e8c8;
}

/* Terms & Conditions checkbox row */
.terms-field {
  margin-bottom: 16px;
}
.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: #555;
  line-height: 1.5;
}
.terms-label input[type="checkbox"] {
  accent-color: #0071ED;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.terms-label a {
  color: #0071ED;
  font-weight: 600;
  text-decoration: underline;
}
.terms-label a:hover { color: #0056b3; }

/* ── Paste all of this at the bottom of your style.css ── */

/* Modal: cap height + scroll inside so close btn never hides */
.popup-modal {
  max-height: 90vh;
  overflow-y: auto;
}

/* Close button stays pinned at top while modal scrolls */
.popup-modal .close-btn {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -30px;
}

/* OTP sent confirmation banner */
.otp-sent-msg {
  background: #eefaf3;
  color: #1a7a3f;
  border: 1px solid #b6e8c8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

/* Resend link */
.resend-link {
  text-align: center;
  font-size: 12.5px;
  color: #999;
  margin-top: 10px;
}
.resend-link span {
  color: #0071ED;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
}
.resend-link span:hover { color: #0056b3; }

/* Inline error / success messages */
.popup-form-msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}
.popup-form-msg--error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}
.popup-form-msg--success {
  background: #eefaf3;
  color: #1a7a3f;
  border: 1px solid #b6e8c8;
}

/* Terms & Conditions checkbox row */
.terms-field {
  margin-bottom: 16px;
}
.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: #555;
  line-height: 1.5;
}
.terms-label input[type="checkbox"] {
  accent-color: #0071ED;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.terms-label a {
  color: #0071ED;
  font-weight: 600;
  text-decoration: underline;
}
.terms-label a:hover { color: #0056b3; }

/* ── Filter title: separate clickable zones ── */
.filter-title {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default; /* title row itself not clickable */
}
.filter-title .dropdown-icon {
  cursor: pointer; /* only arrow toggles dropdown */
  flex-shrink: 0;
}
.filter-title .filter-label-text {
  cursor: pointer; /* label text also toggles dropdown */
  flex: 1;
}
.filter-title .parent-checkbox {
  cursor: pointer;
  flex-shrink: 0;
}

/* Indeterminate state — browser handles the dash natively,
   but accent-color keeps it on-brand */
.parent-checkbox {
  accent-color: #F8A31D;
}
.child-checkbox {
  accent-color: #F8A31D;
}