/* General Reset */
body {
    margin: 0;
    font-family: "Open Sans", sans-serif !important;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

textarea, input[type='date'] {
    font-family: "Open Sans", sans-serif;
    color: #333;
    font-weight: 500;
}

input[type='date'] {
    padding: 9px 12px !important;
}

button {
    cursor: pointer;
}

button:disabled, a:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* Form */
form > section {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

form section {
    margin-bottom: 20px;
}

form section h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #444;
}
form section h3 span {
    color: #CFCFCF;
}

form section h5 {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin-bottom: 10px;
    color: #808080;
}

section.verify {
    max-width: 620px;
    margin: 0 auto 24px;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
}

section.verify.berhasil {
    max-width: 988px;
    margin: 0 auto 24px;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}

section.verify h1 {
    margin: 0 0 24px;
}

section.verify a {
    color: #2D2A70;
    text-decoration: none;
    font-weight: 700;
}

section.verify p {
    color: #333;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    margin: 16px 0 0;
}

.main-section {
    padding: 32px 0 32px;
    height: calc(100vh - 146px);
}

.main-section a {
    color: #2D2A70;
    text-decoration: none;
    font-weight: 700;
}

.main-section label {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.main-section .alert, .main-section .error {
    color: #ED2453;
    font-weight: 600;
}

.main-section button.primary {
    padding: 14px;
    background-color: #2D2A70;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.div-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.div-row > div {
    width: 100%;
}

.div-row-50 > div {
    width: 49%;
}

.div-row-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
}

.div-row-wrap > div {
    width: calc(50% - 0.5rem);
}

.row-2-div-flex {
    justify-content: unset;
    flex-wrap: wrap;
}

.row-2-div-flex > div {
    flex: 1 1 calc(50% - 8px); /* Subtract half the gap to account for spacing */
    box-sizing: border-box;
}

.select2-container {
    margin: 0 0 10px;
}
/* Adjust padding for the main select box */
.select2-container .select2-selection--single {
    height: auto; /* Allow content to define height */
    padding-top: 0.5rem; /* Adjust top padding */
    padding-bottom: 0.5rem; /* Adjust bottom padding */
    border: 2px solid #E8E8E8;
  }
  
  /* Adjust the dropdown items' padding */
  .select2-container .select2-results__option {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .select2-dropdown {
    border: 2px solid #E8E8E8;
  }

  .select2-search__field {
    outline: 0;
  }
  
  .select2-selection__rendered {
    padding-left: 12px !important;
  }

  .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%);
  }
  

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 2px solid #E8E8E8;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    outline: 0;
    background: #fff;
}

textarea {
    resize: none;
    height: 80px;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
}

label[for] {
    margin-top: 10px;
}

label span {
    color: #CFCFCF;
}

hr {
    margin: 16px 0;
    border-top: 1px solid #F5F5F5;
    border-left: 0;
    color: #f5f5f5;
}

.uploader-div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.upload-2-col input {
    margin: 0;
}

.upload-2-col .uploader-div {
    align-items: flex-end;
}

.upload-2-col .delete-btn, .upload-2-col .reload-btn, .upload-2-col .refresh-btn {
    margin-bottom: 10px;
}

.input-file {
    position: relative;
    flex: 1;
}

.input-file > input {
    margin-bottom: 0;
    padding-right: 45px;
    position: relative;
    z-index: 2;
    background: transparent;
    cursor: pointer;
}

.file-upload-logo {
    position: absolute;
    right: 16px;
    top: 12px;
}

video {
    max-width: 100%;
    margin: 20px auto 0;
}

.req-as {
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

.delete-btn, .reload-btn, .refresh-btn {
    display: flex;
    cursor: pointer;
}

.delete-btn {
    position: relative;
    margin-top: 12px;
}

.delete-btn .tooltipdelete {
    visibility: hidden;
    width: auto;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: absolute;
    z-index: 2;
    bottom: 150%;
    left: 50%;
    margin-left: -34px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.delete-btn .tooltipdelete::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.delete-btn:hover .tooltipdelete {
    visibility: visible;
    opacity: 1;
}

.section-submit-button {
    text-align: right;
    background: transparent;
    padding: 0;
}

.section-submit-button button, .section-submit-button a {
    padding: 14px 32px;
    outline: 0;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    cursor: pointer;
    text-decoration: none;
    vertical-align: middle;
}

.section-submit-button button .loader-white, .section-submit-button button .loader-blue {
    margin: 0 auto;
}

.section-submit-button button.primary, .section-submit-button a.primary {
    border: 0;
    color: white;
    background: #2D2A70;
    min-height: 55px;
}

.section-submit-button button.secondary, .section-submit-button a.secondary {
    border: 2px solid #2D2A70;
    background: white;
    color: #2D2A70;
    min-height: 59px;
}

.section-submit-button button.still-loading {
    pointer-events: none;
}

.div-progress-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-end;
}

.div-progress-upload img {
    width: 24px;
    height: 24px;
}

.title-delete {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 5px;
}

.title-delete label {
    color: #808080;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    margin-bottom: 0;
    display: inline-block;
    flex-grow: 1;
}

.upload-2-col .title-delete label {
    max-width: 280px;
}

.title-delete a {
    margin-bottom: 0 !important;
}

.progress-bar {
    background: #EFEFEF;
    height: 6px;
    border-radius: 3px;
}

.bar-loading {
    height: 6px;
    border-radius: 3px;
}

.bar-loading.uploading {
    background: #2D2A70;
}
.bar-loading.paused {
    background: #CFCFCF;
}
.bar-loading.failed {
    background: #BD0F38;
}
.bar-loading.done {
    background: #7C9A76;
}

.status-file {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.status-file span {
    font-size: 14px;
    font-weight: 400;
    line-height: 19.07px;
    color: #333;
}
.status-file p {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #808080;
}

.btn-add-sert {
    margin: 24px 0 0;
    padding: 12px 0;
    background: #2D2A70;
    color: white;
    border-radius: 6px;
    border: 0;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
}

.btn-add-sert span {
    font-size: 24px;
    margin-right: 8px;
}

/* Buttons */
.btn-logout {
    padding: 12px 32px;
    font-size: 1rem;
    color: #fff;
    background: #2D2A70;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-logout:hover {
    background: #0056b3;
}

.input-lainnya {
    padding: 0 0 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #E8E8E8 !important;
    width: 85% !important;
    display: inline-block !important;
    margin-bottom: 0 !important;
    position: absolute;
    bottom: 12px;
    right: 18px;
}

.div-alamat textarea {
    margin: 0;
}

.div-alamat p {
    color: #808080;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: right;
}

.section-gdpr-apply {
    background: transparent;
    padding: 0;
}

.section-gdpr-apply a.as-checkbox {
    display: block;
    margin: 0 0 8px;
}

.section-gdpr-apply a.as-checkbox:hover{
    pointer-events: auto;
    margin: 0 0 8px;
    font-weight: normal;
}

.section-gdpr-apply a.as-checkbox span {
    line-height: 18px;
}

.section-gdpr-apply a.as-checkbox .the-box {
    vertical-align: top;
}

.blocker {
    background-color: rgba(51, 51, 51, .6);
}

#bayar-modal {
    padding: 0;
    box-shadow: none;
}

#bayar-modal hr {
    border-top: 1px solid #E4E8EC;
    margin: 16px 0;
    color: #E4E8EC;
}

#bayar-modal .modal-header {
    padding: 32px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#bayar-modal .modal-body {
    padding: 0 24px 32px;
}

#bayar-modal .modal-body h2 {
    margin: 0 0 16px;
}

#bayar-modal p {
    font-size: 18px;
    font-weight: 400;
    line-height: 27px;
    color: #373C3F;
}

#bayar-modal button {
    margin: 16px 0 0;
    padding: 12px 0;
    outline: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    color: white;
    background: #2D2A70;
    width: 100%;
}

/* HTML: <div class="loader-blue"></div> */
.loader-blue {
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side,#2D2A70 90%,#0000);
    background: 
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l7 1s infinite linear;
  }
  @keyframes l7 {
      33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
      50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
      66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
  }

  /* HTML: <div class="loader-white"></div> */
.loader-white {
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side,#fff 90%,#0000);
    background: 
      var(--_g) 0%   50%,
      var(--_g) 50%  50%,
      var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l7 1s infinite linear;
  }
  @keyframes l7 {
      33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
      50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
      66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
  }

/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 10px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header h2 {
        font-size: 1rem;
    }
    video {
        padding: 0 8px;
    }
    .div-row {
        flex-direction: column;
    }
    .div-row input {
        margin: 0;
    }
    .div-row-50 > div {
        width: 100%;
    }
    .section-submit-button button, .section-submit-button a {
        width: 100%;
        margin: 0 0 8px;
    }
}
.hide{
    display: none;
}


input.invalid-feedback, textarea.invalid-feedback, select.invalid-feedback {
    border: 2px solid #ED2453;
    margin-bottom: 4px;
}
span.invalid-feedback {
    width: 100%;
    color: #ED2453;
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
}

.select2-container {
    margin: 0 0 4px;
}

select.invalid-feedback + .select2-container {
    .select2-selection {
        border: 2px solid #ED2453;
    }
}
