@font-face {
  font-family: "Inter", sans-serif;
  src: url('../fonts/webfonts/DMSerifText-Regular.ttf') format('truetype');
}

.point-font {
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: bold;
}

.title-font {
  margin-left: 1.3rem;
  color: #3F87B9;
  font-family: "Inter", sans-serif;
  font-size: 24px;
  font-weight: bold;
}

.description-font {
  margin-left: 1.3rem;
  font-size: 16px;
  margin-top: 1rem;
  font-family: "Inter", sans-serif;
}

.desc-font {
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

.desc-font-bold2 {
  font-size: 16px;
  font-weight: bold;
  margin-top: 1rem;
  font-family: "Inter", sans-serif;
}

/* footer ombak */
body>footer>img {
  padding-top: 5rem;
  height: 200px !important;
  z-index: 2 !important;
}

#dropdownMenuLink>span {
  padding-right: 10px;
}

.dashed-top-border {
  border-top: 2px dashed #3F87B9;
}

.dropdown-toggle::after {
  position: relative;
  top: 3px;
  padding-left: 15px !important;
  opacity: 0.8;
  content: "\f078";
  font-weight: 900;
  font-family: "Font Awesome 5 pro";
  border: 0;
  font-size: 80%;
}

body>div.container>div:nth-child(4)>div.col-md-6>div>div>div:nth-child(2)>div>span {
  font-family: 'DMSerifText', serif;
  font-size: 16px;
  font-weight: 400;
}

.custom-button {
  background-color: white;
  border: none;
  width: 100%;
  height: 100%;
}

/* ngide */
.list-container {
  cursor: pointer;
  width: 100%;
  overflow: hidden;
}

.list-wrapper {
  display: flex;
  overflow: hidden;
  flex-wrap: nowrap;
  transition: transform 0.3s ease;

}

.list-item {
  font-family: 'Inter', serif;
  flex: 0 0 auto;
  width: 380px;
  height: 390px;
  margin-right: 20px;
  background-color: white;
  border-radius: 10px;
}

.list-item-custom {
  flex: 0 0 auto;
  width: 400px;
  height: auto;
  margin-right: 20px;
  margin-bottom: 25px;
  background-color: white;
  border-radius: 10px;
}

.selected {
  background-color: #ECF3F8 !important;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.dropdown-custom {
  font-weight: bold !important;
}

body>footer>div {
  z-index: 3 !important;
}

#package {
  padding: 0 !important;
}

.dropdown-item-custom.dropdown-custom {
  font-size: 14px;
  display: block;
  width: 100%;
  padding: .25rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

/* loading css */
.overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(38, 50, 56, 0.20);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.spinner {
  position: fixed;
  left: calc(50% - 50px);
  top: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(#0000 10%, var(--color-blue2));
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 13px), #000 0);
  animation: spinner-zp9dbg 1s infinite linear;
}

@keyframes spinner-zp9dbg {
  to {
    transform: rotate(1turn);
  }
}

/* Media Queries untuk Responsivitas */
@media (max-width: 768px) {

  .list-wrapper {
    display: flex;
    overflow: auto;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
  }

  .point-font {
    font-size: 18px;
  }

  .title-font {
    font-size: 20px;
    margin-left: 1rem;
  }

  .description-font,
  .desc-font,
  .desc-font-bold2 {
    font-size: 14px;
    margin-left: 1rem;
  }

  .list-item,
  .list-item-custom {
    width: 100%;
    height: auto;
    margin-right: 10px;
  }

  /* Hide dropdown menu initially */
  .dropdown-menu {
    display: none;
  }

  /* Show dropdown menu on button hover */
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .input-group.serial-number{
        width: 100% !important;
        display: flex;
        align-items: center;
  }
  .col-md-2 {
    flex: 0 0 auto;
    width: 100%;
  }

  body > section > div > div.row.mb-40.mt-80{
    padding: 10px;
  }
  
  .row:not(.gx-0):not(.gx-1):not(.gx-2):not(.gx-3):not(.gx-4):not(.gx-5) {
    margin-right: -6px !important;
    margin-left: -6px !important;
  }

  /* #oldPrice46{
    font-weight: bold;
    margin-left: 5px;
  }

  #titleAddonContainer46 > div:nth-child(2) > div.col > div.container.d-flex.justify-content-between.mt-1 > label:nth-child(2) > span:nth-child(3){
    padding-left: 4px;
  } */
  
  .custome-strikethrough::before {
    bottom: 5px !important;
    left: -5px !important;
  }
}

@media (max-width: 480px) {

  .point-font {
    font-size: 15px !important;
  }

  .title-font {
    font-size: 15px !important;
  }

  /* Hide dropdown menu initially */
  .dropdown-menu {
    display: none;
  }

  /* Show dropdown menu on button hover */
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .dropdown-menu .dropdown-item.selected {
    background-color: lightgreen;
  }

  #attendaceValue {
    font-size: 12px !important;
  }

  #gpsValue {
    font-size: 12px !important;
  }

  .list-wrapper {
    display: flex;
    overflow: auto;
    flex-wrap: nowrap;
    transition: transform 0.3s ease;
  }

  body>div:nth-child(4)>div>div.col>div.row>div.col.ml-2>div.roboto-font.mb-2 {
    margin-top: 0px !important;
  }

  #mobileListContainer {
    margin-top: 60px;
    padding-left: 10px;
    padding-right: 10px;
    width: 108% !important;
  }

  #detailModal1>div>div>div.modal-body>div.container>div:nth-child(19)>div>p:nth-child(1) {
    font-size: 15px !important;
  }

  #detailModal1>div>div>div.modal-body>div.container>div:nth-child(19)>div>p:nth-child(2) {
    font-size: 15px !important;
  }

  #detailModal1>div>div>div.modal-body>div:nth-child(3)>span {
    font-size: 15px !important;
  }

  #addonContainer {
    padding: 2rem 0.5rem 4rem 0.5rem !important;
  }

  #deviceListContainer {
    padding: 2rem 0.5rem 4rem 0.5rem !important;
  }

  #mobileContainer {
    padding: 2rem 0.5rem 4rem 0.5rem !important;
  }

  #main-desc {
    padding: 2rem 0.5rem 4rem 0.5rem !important;
  }

  body>div:nth-child(3)>div.row.mt-2>div.col.d-flex.justify-content-end.align-items-baseline>div>div {
    margin-right: 0px !important;
  }

  body>div:nth-child(3)>div.row.mt-2>div:nth-child(2)>div>div {
    margin-left: 0px !important;
  }

  .form-check-label {
    font-size: 12px !important;
  }

  body>div:nth-child(3)>div:nth-child(2)>div:nth-child(2)>img {
    height: 90% !important;
  }

  body>div:nth-child(3)>div:nth-child(2)>div.col.d-flex.justify-content-end.align-items-baseline>img {
    height: 90% !important;
  }

  body>div:nth-child(3)>div.row.mt-2>div.col.d-flex.justify-content-end.align-items-baseline {
    margin-top: -1.5rem !important;
  }

  body>div:nth-child(3)>div.row.mt-2>div:nth-child(2) {
    margin-top: -1.5rem !important;
  }

  .addons-info {
    font-size: 12px !important;
  }

  .payment-info {
    font-size: 12px !important;
  }

  .add-on-price {
    font-size: 12px !important;
  }

  .valueCount {
    font-size: 12px !important;
  }

  #mobilePackageCount {
    font-size: 12px !important;
  }

  .package-info {
    font-size: 12px !important;
  }

  #main-desc>div>div.col-md-5.flex.justify-content-end>div>div.dashed-top-border>div.d-flex.justify-content-between.w-100.mt-2 {
    font-size: 12px !important;
  }

  #mobilesInput {
    font-size: 12px !important;
  }

  #devicesInput {
    font-size: 12px !important;
  }

  #dropdownMenuButton {
    font-size: 12px !important;
  }

  .dropdown-item-custom.dropdown-custom {
    font-size: 12px !important;
  }

  #buttonText {
    font-size: 12px !important;
  }

  #mobileListContainer>div:nth-child(2) {
    padding-top: 50px !important;
  }

  #mobileListContainer>div:nth-child(3) {
    padding-top: 50px !important;
  }

  #mobileListContainer>div:nth-child(1) {
    width: 100% !important;
  }

  .input-group.serial-number{
    width: 100% !important;
    /* display: flex;
    align-items: center; */
  }


   body > section > div > div.row.mb-40.mt-80{
    padding: 10px;
  }
  .row:not(.gx-0):not(.gx-1):not(.gx-2):not(.gx-3):not(.gx-4):not(.gx-5) {
    margin-right: -6px !important;
    margin-left: -6px !important;
  }

  /* #oldPrice46{
    font-weight: bold;
    margin-left: 5px;
  }
  #titleAddonContainer46 > div:nth-child(2) > div.col > div.container.d-flex.justify-content-between.mt-1 > label:nth-child(2) > span:nth-child(3){
    padding-left: 4px;
  } */

  .custome-strikethrough::before {
    bottom: 5px !important;
    left: -5px !important;
  }
}

/* ===== MODAL COMPARE — Selaras Referensi ===== */
/* KEY FIX: overflow:clip menjaga border-radius
   TANPA membuat scroll container baru → position:sticky tetap bekerja */
#modal_compare .modal-content {
   background: #ffffff;
   border-radius: 16px;
   border: none;
   overflow: clip;
   box-shadow: 0 12px 40px rgba(15,41,66,0.15);
}
#modal_compare .modal-body {
   padding: 0;
   max-height: 88vh;
   overflow-y: auto;
   scroll-behavior: smooth;
}
#modal_compare .modal-body::-webkit-scrollbar { width: 5px; }
#modal_compare .modal-body::-webkit-scrollbar-track { background: #e6eff7; }
#modal_compare .modal-body::-webkit-scrollbar-thumb { background: #3f87b9; border-radius: 99px; }
#modal_compare .cmp-feature-table {
   display: flex;
   flex-direction: column;
   background: #fff;
}
#modal_compare .cmp-table-head,
#modal_compare .cmp-table-row,
#modal_compare .cmp-subhead {
   display: grid;
   grid-template-columns: 1.7fr 1fr 1fr;
   align-items: stretch;
}
/* === STICKY HEADER — warna utama #3f87b9 dari referensi === */
#modal_compare .cmp-table-head {
   background: #3f87b9;
   color: #fff;
   font-weight: 800;
   position: sticky;
   top: 0;
   z-index: 20;
   box-shadow: 0 2px 8px rgba(63,135,185,0.25);
}
#modal_compare .cmp-table-head .col {
   padding: 20px 18px;
   display: flex;
   flex-direction: column;
   justify-content: center;
}
#modal_compare .cmp-table-head .col:first-child {
   border-right: 1px solid rgba(255,255,255,0.15);
}
/* === HIGHLIGHT / CURRENT PACKAGE — HEADER: kuning #ffd85c === */
#modal_compare .cmp-table-head .current-package-col.highlight {
   background: #ffd85c !important;
   position: relative;
}
#modal_compare .cmp-table-head .current-package-col.highlight .pkg-name,
#modal_compare .cmp-table-head .current-package-col.highlight .pkg-price,
#modal_compare .cmp-table-head .current-package-col.highlight .pkg-price sup,
#modal_compare .cmp-table-head .current-package-col.highlight .pkg-per {
   color: #0f2942 !important;
}
#modal_compare .cmp-table-head .current-package-col.highlight .sticky-badge {
   background: rgba(15,41,66,0.15) !important;
   color: #0f2942 !important;
}
/* === COMPARED PACKAGE — HEADER === */
#modal_compare .cmp-table-head .compared-package-col {
   background: transparent !important;
   border-left: 1px solid rgba(255,255,255,0.15);
}
#modal_compare .cmp-table-head .compared-package-col .pkg-name,
#modal_compare .cmp-table-head .compared-package-col .pkg-price,
#modal_compare .cmp-table-head .compared-package-col .pkg-price sup,
#modal_compare .cmp-table-head .compared-package-col .pkg-per {
   color: #ffffff !important;
}
/* === DATA ROWS === */
#modal_compare .cmp-table-row {
   background: #fff;
   color: #0c2236;
   border-top: 1px solid #e6eff7;
   transition: background 0.14s ease;
}
#modal_compare .cmp-table-row:hover {
   background: #f0f6fb !important;
}
#modal_compare .cmp-table-row.alt {
   background: #f7fafd;
}
#modal_compare .cmp-table-row .col {
   padding: 13px 16px;
   display: flex;
   align-items: center;
}
#modal_compare .cmp-table-row .col.ta-c {
   justify-content: center;
}
#modal_compare .cmp-table-row .col.feature {
   gap: 8px;
   align-items: flex-start;
   color: #0c2236;
   font-size: 13px;
   font-weight: 500;
   line-height: 1.45;
}
/* === HIGHLIGHT COLUMN PADA DATA ROWS — kuning lembut === */
#modal_compare .cmp-table-row .highlight.current-package {
   background: #fff7d9 !important;
   border-left: 2px solid #ffd85c;
}
#modal_compare .cmp-table-row:hover .highlight.current-package {
   background: #ffe99c !important;
}
/* === COMPARED COLUMN PADA DATA ROWS === */
#modal_compare .cmp-table-row .compared-package {
   border-left: 1px solid #e6eff7;
   color: #0c2236 !important;
   background: transparent !important;
}
/* === SUBHEAD SEPARATOR — sama dengan header #3f87b9 === */
#modal_compare .cmp-subhead {
   background: #3f87b9 !important;
   color: #ffffff !important;
   font-size: 11px;
   font-weight: 800;
   letter-spacing: 1px;
   text-transform: uppercase;
   padding: 9px 18px;
   border: none;
   grid-column: 1 / -1;
}
/* === CHECKMARK — hijau referensi === */
#modal_compare .check {
   display: inline-block;
   width: 9px;
   height: 17px;
   border-right: 3px solid #1c7c2f;
   border-bottom: 3px solid #1c7c2f;
   transform: rotate(45deg) translateY(-3px);
}
/* === CROSS MARK === */
#modal_compare .x {
   display: inline-block;
   width: 18px;
   height: 18px;
   position: relative;
   opacity: 0.45;
}
#modal_compare .x:after,
#modal_compare .x:before {
   content: '';
   position: absolute;
   left: 50%;
   top: 50%;
   width: 13px;
   height: 2.5px;
   background: #c0392b;
   border-radius: 2px;
   transform-origin: center;
}
#modal_compare .x:before { transform: translate(-50%, -50%) rotate(45deg); }
#modal_compare .x:after  { transform: translate(-50%, -50%) rotate(-45deg); }
/* === PKG COLUMN LAYOUT === */
#modal_compare .pkg-col {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   line-height: 1.25;
   gap: 2px;
   text-align: center;
}
#modal_compare .pkg-col .pkg-name {
   font-size: 11px;
   font-weight: 800;
   text-transform: uppercase;
   letter-spacing: 0.7px;
   opacity: 0.85;
}
#modal_compare .pkg-col .pkg-price {
   font-size: 18px;
   font-weight: 800;
   margin-top: 2px;
   letter-spacing: -0.5px;
}
#modal_compare .pkg-col .pkg-price sup {
   font-size: 11px;
   font-weight: 700;
}
#modal_compare .pkg-col .pkg-per {
   font-size: 10px;
   font-weight: 400;
   opacity: 0.75;
   margin-top: 1px;
}
#modal_compare .sticky-badge {
   font-size: 9px;
   font-weight: 700;
   background: rgba(255,255,255,0.25);
   color: #fff;
   padding: 2px 9px;
   border-radius: 99px;
   margin-top: 5px;
   white-space: nowrap;
   line-height: 1.5;
   letter-spacing: 0.3px;
}
#modal_compare .sticky-badge.best-choice {
   background: rgba(255,255,255,0.30);
}
/* === CLOSE BUTTON === */
#modal_compare .cmp-close-btn {
   position: absolute;
   top: 12px;
   right: 14px;
   background: rgba(255,255,255,0.18);
   border: 1px solid rgba(255,255,255,0.25);
   color: #fff;
   width: 30px;
   height: 30px;
   border-radius: 50%;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 13px;
   z-index: 30;
   transition: background 0.2s ease;
}
#modal_compare .cmp-close-btn:hover {
   background: rgba(255,255,255,0.32);
}
/* === COLLAPSIBLE MOBILE PRO === */
#modal_compare .mp-header-row {
   background: #e6eff7 !important;
   cursor: pointer;
   font-weight: 700;
   border-top: 1px solid #cce0ef !important;
}
#modal_compare .mp-header-row:hover {
   background: #d4e7f5 !important;
}
#modal_compare .mp-header-row .col.feature {
   color: #3f87b9;
   font-weight: 700;
}
#modal_compare .mp-chevron {
   display: inline-block;
   transition: transform 0.3s ease;
   margin-left: 8px;
   font-size: 0.75em;
   opacity: 0.55;
}
#modal_compare .mp-header-row.expanded .mp-chevron {
   transform: rotate(180deg);
}
#modal_compare .mp-sub-rows { display: block; }
#modal_compare .mp-sub-row .col.feature {
   padding-left: 36px !important;
   font-size: 12px !important;
   color: #5d6b79 !important;
   font-weight: 400 !important;
}
@media (max-width: 768px) {
   #modal_compare .cmp-table-head,
   #modal_compare .cmp-table-row,
   #modal_compare .cmp-subhead {
      grid-template-columns: 1.1fr 1fr 1fr;
   }
   #modal_compare .cmp-table-head .col { padding: 14px 10px; }
   #modal_compare .cmp-table-row .col { padding: 10px 8px; font-size: 11.5px; }
   #modal_compare .cmp-table-row .col.feature { font-size: 11.5px; }
   #modal_compare .pkg-col .pkg-price { font-size: 15px; }
}