/* =====================
   Metronic-like Base Styles
   ===================== */

* {
    font-family: 'Poppins', 'Roboto', sans-serif;
}

body {
    background-color: #f2f3f8;
    font-size: 13px;
    font-weight: 400;
    color: #575962;
}

/* =====================
   Header
   ===================== */
.m-header {
    background-color: #fff;
    box-shadow: 0px 1px 15px 1px rgba(69, 65, 78, 0.1);
    z-index: 100;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

.m-header__top {
    padding: 0;
}

.m-brand {
    padding: 10px 0;
    border-right: none;
}

/* =====================
   Body / Container
   ===================== */
.m-page__container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 15px;
}

.m-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.m-body {
    padding: 30px 0;
    flex: 1 0 auto;
}

.m-wrapper {
    padding: 0;
}

/* =====================
   Footer
   ===================== */
.m-footer {
    background-color: #fff;
    border-top: 1px solid #ebedf2;
    padding: 20px 0;
    flex-shrink: 0;
}

.m-footer__copyright {
    color: #a7a9bc;
    font-size: 13px;
}

/* =====================
   Portlet (Card-like container)
   ===================== */
.m-portlet {
    margin-bottom: 2.2rem;
    background-color: #fff;
    box-shadow: 0px 1px 15px 1px rgba(69,65,78,.1);
    border-radius: 4px;
}

.m-portlet__head {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 2.2rem;
    border-bottom: 1px solid #ebedf2;
    min-height: 60px;
    border-radius: 4px 4px 0 0;
}

.m-portlet--primary > .m-portlet__head {
    background-color: #5867dd;
}

.m-portlet--primary > .m-portlet__head .m-portlet__head-text {
    color: #fff;
}

.m-portlet--primary > .m-portlet__head .m-portlet__head-icon i {
    color: rgba(255,255,255,0.7);
}

.m-portlet__head-caption {
    display: flex;
    align-items: center;
}

.m-portlet__head-title {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.m-portlet__head-icon {
    padding-right: 10px;
    font-size: 1.3rem;
    color: #a7a9bc;
}

.m-portlet__head-text {
    font-weight: 500;
    font-size: 1.1rem;
    color: #575962;
    margin: 0;
}

.m-portlet__body {
    padding: 2.2rem;
}

.m-portlet--head-solid-bg .m-portlet__head {
    background: #5867dd;
}

.m-portlet--rounded {
    border-radius: 8px;
}

.m-portlet--tab > .m-portlet__head {
    border-bottom: none;
}

/* =====================
   Accordion (m-accordion)
   ===================== */
.m-accordion {
    margin-bottom: 1.5rem;
}

.m-accordion--default .m-accordion__item {
    border: 1px solid #ebedf2;
    border-radius: 4px;
    margin-bottom: 5px;
}

.m-accordion__item--primary .m-accordion__item-head {
    background-color: #5867dd;
}

.m-accordion__item--primary .m-accordion__item-head:hover {
    background-color: #4a58c7;
}

.m-accordion__item--primary .m-accordion__item-head .m-accordion__item-title {
    color: #fff;
}

.m-accordion__item--primary .m-accordion__item-head .m-accordion__item-mode::after {
    color: rgba(255, 255, 255, 0.7);
}

.m-accordion__item-head {
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.m-accordion__item-head:hover {
    background-color: #f7f8fa;
}

.m-accordion__item-title {
    font-weight: 500;
    font-size: 1rem;
    color: #575962;
}

.m-accordion__item-mode::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #a7a9bc;
    transition: transform 0.3s;
}

.m-accordion__item-head:not(.collapsed) .m-accordion__item-mode::after {
    transform: rotate(180deg);
    color: rgba(255,255,255,0.7);
}

.m-accordion__item-content {
    padding: 1.5rem;
    background: #fff;
    font-size: 0.95rem;
    line-height: 1.8;
}

.m-accordion__item-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #3d4465;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.m-accordion__item-content h6 {
    font-size: 0.85rem;
    color: #a7a9bc;
}

/* =====================
   Subheader
   ===================== */
.m-subheader {
    padding: 25px 0;
}

.m-subheader__title {
    font-size: 1.3rem;
    font-weight: 500;
    color: #3d4465;
    margin: 0;
    padding: 0;
}

.m-subheader__title--separator {
    border-left: 3px solid #5867dd;
    padding-left: 12px;
}

/* =====================
   Landing Page
   ===================== */
#landing-img {
    position: relative;
    width: 100%;
    padding-bottom: 43.28%;
    height: 0;
    top: -30px;
    margin-bottom: 0px;
    overflow: hidden;
}

#landing-img img {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    object-fit: cover;
}

#landing-actions {
    position: absolute;
    left: 0;
    top: 40%;
    width: 100%;
    height: auto;
    text-align: center;
    background-color: rgba(47, 62, 181, 0.6);
    padding: 20px;
}

#landing-title {
    color: #f4f5f8;
    margin-bottom: 9px;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: -0.01em;
    font-size: 1.3rem;
}

#landing-button {
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
}

#landing-button2 {
    font-size: 1rem;
    padding: 0.8rem 1.8rem;
}

@media (min-width: 480px) {
    #landing-title { font-size: 2rem; }
    #landing-button { font-size: 1.2rem; padding: 1rem 2.5rem; }
    #landing-button2 { font-size: 1.2rem; padding: 1rem 2.5rem; }
}

@media (min-width: 768px) {
    #landing-title { font-size: 3em; }
    #landing-button { font-size: 1.5em; padding: 1rem 2.5rem; }
    #landing-button2 { font-size: 1.5em; padding: 1rem 2.5rem; }
}

/* =====================
   Buttons
   ===================== */
.m-btn--pill {
    border-radius: 60px !important;
}

.m-btn--custom {
    padding: 0.7rem 2rem;
}

.btn-danger {
    background-color: #f4516c;
    border-color: #f4516c;
}

.btn-danger:hover {
    background-color: #e03c57;
    border-color: #e03c57;
}

.btn-success {
    background-color: #34bfa3;
    border-color: #34bfa3;
}

.btn-success:hover {
    background-color: #2ca892;
    border-color: #2ca892;
}

/* =====================
   Form
   ===================== */
.m-form__group {
    margin-bottom: 1.5rem;
}

.m-input {
    border-radius: 4px;
    border: 1px solid #ebedf2;
    color: #575962;
    font-size: 1rem;
    padding: 0.65rem 1rem;
}

.m-input:focus {
    border-color: #5867dd;
    box-shadow: none;
}

select.m-input {
    height: auto;
}

/* =====================
   Golongan SIM checkboxes (register form)
   ===================== */
.gol-sim-item .form-check-label {
    cursor: pointer;
}

.gol-sim-code {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3d4465;
}

.gol-sim-icon {
    height: 36px;
}

.gol-sim-desc {
    font-size: 0.85rem;
    color: #a7a9bc;
    line-height: 1.4;
}

.gol-sim-item.golongan-disabled .gol-sim-code,
.gol-sim-item.golongan-disabled .gol-sim-desc {
    color: #c7c9d6;
}

.control-label {
    font-weight: 500;
    color: #575962;
}

.required {
    color: #f4516c;
    font-size: 0.85rem;
}

/* =====================
   Alert / Messages
   ===================== */
.alert {
    border-radius: 4px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
}

/* =====================
   Modal
   ===================== */
.modal { overflow-y: auto; }

.modal-header {
    background-color: #fff;
    border-bottom: 1px solid #ebedf2;
    padding: 1.5rem 2rem;
}

.modal-title {
    font-weight: 500;
    color: #3d4465;
    font-size: 1.1rem;
}

.modal-footer {
    background-color: #fafafa;
    border-top: 1px solid #ebedf2;
    padding: 1rem 2rem;
}

/* =====================
   Content card
   ===================== */
.m-content {
    padding: 0;
}

.panel.panel-default {
    border: none;
    background: transparent;
}

/* =====================
   Tracking / Cek Status page
   ===================== */
.regis-list > li {
    font-size: 1.2em;
    line-height: 2em;
}

/* =====================
   Select2 — selaraskan dengan Bootstrap .form-control
   Tinggi Bootstrap form-control = calc(1.5em + .75rem + 2px) ≈ 38px
   ===================== */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: calc(1.5em + .75rem + 2px);
    border: 1px solid #ebedf2;
    border-radius: 4px;
    background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: calc(1.5em + .75rem);  /* tinggi dalam tanpa border = ≈36px */
    padding-left: .75rem;
    padding-right: 2rem;
    color: #575962;
    font-size: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #adb5bd;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(1.5em + .75rem);
    top: 0;
    right: .5rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #575962 transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #575962 transparent;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #5867dd;
    outline: 0;
    box-shadow: none;
}

.select2-dropdown {
    border: 1px solid #ebedf2;
    border-radius: 4px;
    font-size: 1rem;
    color: #575962;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ebedf2;
    border-radius: 4px;
    padding: .375rem .75rem;
    font-size: 1rem;
    color: #575962;
    outline: none;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #5867dd;
}

.select2-container--default .select2-results__option {
    padding: .375rem .75rem;
    font-size: 1rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #5867dd;
}

/* =====================
   Sidebar action buttons
   ===================== */
.sidebar-actions .btn {
    margin-bottom: 10px;
    font-size: 0.95rem;
    border-radius: 4px;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 767px) {
    .m-body {
        padding: 15px 0;
    }
    #landing-img {
        padding-bottom: 60%;
    }
}
