
/* Form Styling */
.custom-form .form-label {
    font-weight: 600;
    color: #222; /* Warna teks */
    margin-bottom: 6px;
}

.custom-form .form-control {
    height: 54px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease-in-out;
}

.custom-form input[type="password"],
.custom-form input[type="text"].password-visible {
    padding: 12px 40px 12px 16px;
}

.custom-form .form-control::placeholder {
    color: #B0B0B0;
    font-size: 14px;
}

.custom-form .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(43, 101, 255, 0.9);
}

.custom-form .form-control.is-invalid {
    border-color: var(--text-red, #DC3545);
    background-image: none !important;
}

.form-input .invalid-feedback {
    margin: 0;
    font-size: var(--fs-body-xxs);
    color: var(--text-red);
    font-weight: var(--font-weight-500);
}

.custom-form .form-control.is-invalid:focus {
    border-color: var(--text-red, #DC3545);
    box-shadow: unset;
}

.ck-editor__editable {
    min-height: 200px !important; /* Tinggi awal */
    transition: min-height 0.2s ease-in-out;
}

.ck-editor__editable:focus {
    min-height: 200px !important; /* Tetap dengan tinggi yang sama */
}

/* Password Input dengan Icon */
.input-group .input-group-text {
    background: #F5F5F5;
    border: none;
    /*cursor: pointer;*/
    font-size: 12px;
    color: #707070;
}

.input-group .input-group-text i {
    font-size: 18px;
    color: #B0B0B0;
}

.input-group .form-control {
    /*border-right: none;*/
}

.input-group-text {
    /*border-left: none;*/
    border-radius: 8px 0 0 8px;
}

/* Wrapper untuk mengatur posisi chevron */
.form-control-wrapper {
    position: relative;
    width: 100%;
}

/* Mengatur select agar tidak menampilkan default arrow */
.form-control.custom-select {
    appearance: none; /* Hilangkan default dropdown */
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px; /* Beri ruang untuk chevron */
    cursor: pointer;
}

/* Tambahkan Chevron */
/*.form-control-wrapper::after {*/
/*    content: '\f078'; !* FontAwesome chevron-down *!*/
/*    font-family: "Font Awesome 5 Free"; !* Gunakan FontAwesome *!*/
/*    font-weight: 900;*/
/*    font-size: 14px;*/
/*    color: #6C757D;*/
/*    position: absolute;*/
/*    right: 16px;*/
/*    top: 50%;*/
/*    transform: translateY(-50%);*/
/*    pointer-events: none; !* Tidak mengganggu klik *!*/
/*}*/

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: #999;
}

#fullAddress {
    height: 120px;
    width: 100%;
}

/* Custom Styling for Dropzone */
.dz-custom {
    border: 2px dashed #ddd !important;
    background: #FAFAFA !important;
    padding: 30px !important;
    text-align: center !important;
    cursor: pointer !important;
    border-radius: 8px !important;
}

.dz-custom .dz-message {
    font-size: 16px !important;
    color: #555 !important;
}

.dz-custom .dz-preview {
    margin-top: 10px !important;
}
.dropzone.full {
    width: 100%;
}
.dropzone-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Sesuaikan jarak antar elemen */
    align-items: stretch;
    margin: 0; /* Pastikan tidak ada margin tambahan */
    padding: 0;
}

.dropzone-container .form-wrapper {
    flex: 1 1 calc(50% - 0.75rem); /* 50% dengan sedikit pengurangan untuk gap */
    max-width: calc(50% - 0.75rem); /* Mencegah elemen melebihi 50% */
    box-sizing: border-box; /* Agar padding tidak mempengaruhi ukuran */
    margin: 0; /* Hindari margin tambahan */
    padding: 0;
}

/* Atasi space tambahan dari elemen di dalamnya */
.dropzone-container .form-dropzone-input {
    width: 100%;
    margin: 0;
    padding: 0;
}
/* Custom Styling for Dropzone */

/* Custom Styling for Switches */
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--neutral-grey-1);;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: var(--color-white);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--color-primary);
}

input:checked + .slider:before {
    -webkit-transform: translateX(23.5px);
    -ms-transform: translateX(23.5px);
    transform: translateX(23.5px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
/* Custom Styling for Switches */

/* Style untuk select dropdown */
.form-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: 54px;
    border-radius: 8px;
    background: var(--color-white, #FFF);
}

/* Style untuk select input */
.form-control-wrapper select {
    width: 100%;
    height: 100%;
    padding-right: 54px;
    border-radius: 8px;
    background: #FFF;
    appearance: none; /* Hilangkan default arrow */
}

/* Style untuk icon select dropdown */
.select-icon {
    position: absolute;
    right: 12px;
    font-size: 24px;
    color: #999;
    pointer-events: none;
}

.search-input:focus,
.form-control-wrapper select:focus {
    outline: none;
    box-shadow: none;
    border-color: unset; /* Tetap gunakan warna border default */
}

/* Style untuk isi input */
.search-input,
.form-control-wrapper select {
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%; /* 21px */
    color: #4C5257; /* Warna teks */
}

/* Style untuk placeholder */
.search-input::placeholder {
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    color: #BDBDBD; /* Warna placeholder */
    opacity: 1; /* Pastikan placeholder terlihat penuh */
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    flex: 1;
    border: none;
    background: transparent;
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
    color: #4C5257;
    padding: 0;
    outline: none;
    cursor: pointer;
}

/* Style icon dropdown */
.select-icon {
    position: absolute;
    right: 16px;
    color: var(--color-grey-50); /* Warna icon */
    pointer-events: none; /* Supaya klik tetap pada select */
}

.custom-select {
    color: grey; /* Warna placeholder default */
}

.custom-select.valid {
    color: black; /* Warna normal saat option lain dipilih */
}

.custom-select.invalid {
    color: var(--color-grey-50); /* Warna merah saat placeholder masih dipilih */
}

.form-radio-input input[type="radio"] {
    appearance: none;
    position: relative;
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: inline-block;
    border: 1px solid var(--color-grey-90);
    border-radius: 9999px;
}

.form-radio-input input[type="radio"]:checked {
    border-color: var(--color-primary, #fff); /* Warna border saat checked */
    background-color: var(#fff); /* Warna latar saat checked */
}

.form-radio-input input[type="radio"]:checked::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border-radius: 99999px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #E0E0E0 !important;
    border-radius: 8px !important;
    padding: 8px !important;
    min-height: 45px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #F7F7F7 !important;
    color: #6D6D6D !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 6px 12px !important;
    font-size: 14px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999 !important;
    margin-left: 8px !important;
}

.custom-radio-green input[type="radio"] {
    appearance: none;
    position: relative;
    cursor: pointer;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    border: 1px solid var(--color-grey-80);
    border-radius: 9999px;
}

/* Ubah indikator saat radio dicheck */
.custom-radio-green input[type="radio"]:checked {
    border-color: var(--color-secondary, #fff); /* Warna border saat checked */
    background-color: var(#fff); /* Warna latar saat checked */
}

.custom-radio-green input[type="radio"]:checked::before {
    content: "";
    width: 1rem;
    height: 1rem;
    background-color: var(--color-secondary);
    border-radius: 99999px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-radio-green:has(input[type="radio"]:checked) {
    /*background: var(--color-grey-10);*/
}

.custom-radio-green:hover{
    /*background: var(--color-grey-10);*/
}