:root {
    /* Default */
    --def-padding: 1.5rem;
    --def-margin: 1.5rem;
    --def-border-thickness: 0.15rem;
    --def-border-type: solid;
    --def-border-color: #B8B8B8;
    --def-border: var(--def-border-thickness) var(--def-border-type) var(--def-border-color);
    --active-opacity: 0.5;

    /* Theme */
    --theme-color: #C0272D;
    --theme-color-pale: #FC9999;
    --theme-color-groovy: #DF274A;
    --theme-text-color: #FFFFFF;
    --theme-text-color-pale: #FFFFFF;

    /* Color */
    --color-border: #CCCCCC;
    --color-primary: #C0272D;
    --color-primary-hover: #A12025;
    --color-primary-active: #7E181C;

    --color-orange-primary: #DD5A22;
    --color-orange-primary-dark: #bf4715; /* lebih gelap untuk hover/active */
    --color-orange-primary-light: #e9703d;

    /* Background */
    --bg-theme-color: #FFE9DF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #D9D9D9;

    /* Header */
    --header-height: 4rem;

    /* Footer */
    --footer-height: 4.7rem;

    /* Input */
    --border-color-input: darkgrey;
    --border-input: 1px solid var(--border-color-input);
    --color-input-placeholder: #A6A6A6;

    /* Button */
    --btn-disabled-bg-color: #CCCCCC;
    --btn-disabled-text-color: gray;

    /* Select Picker */
    --select-picker-option-height: 4rem;
}

button {
    background: none;
    border: none;
    padding: 0;
    user-select: none; /* supported by Chrome and Opera */
    -webkit-user-select: none; /* Safari */
    -webkit-touch-callout: none; /* iOS Safari*/
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

button:not(:disabled):active {
    opacity: var(--active-opacity);
}

button:focus {
    outline: none;
    box-shadow: none;
}

/* Header Bar */
.header-bar {
    height: var(--header-height);
    padding: 0.75rem;
    background-color: #f4f4f4f2;
    transition: box-shadow 0.3s ease;
}

.header-bar.scrolled {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-bar-left {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.header-bar-left button:first-child {
    /*margin-left: 0.75rem;*/
}

.header-bar-right {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    text-align: right;
}

.header-bar-right button:last-child {
    margin-right: 0.75rem;
}

.header-bar-left,
.header-bar-right {
    width: 25%;
}

.btn-back {
    font-size: 1.5rem;
    color: #443F3F;
}

.header-bar-body {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/* Header Title */
.header-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
    color: #443F3F;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.3); /* Atur transparansi agar tidak terlalu gelap */
}

.container-box {
    background: white;
    padding: calc(0.75 * var(--def-padding));
    margin: var(--def-margin) 0rem;
    border-radius: calc(var(--def-padding) / 2);
}

.container-box-title {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
}

/* Desain untuk input field */
.input-field {
    font-family: 'Poppins', sans-serif; /* Font Poppins */
    font-weight: 400;
    font-size: 16px; 
    color: #303030; 
    background-color: transparent; 
    border: none;
    border-bottom: 1px solid #d3d3d3;
    padding: 8px 0;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

/* Gaya saat fokus */
.input-field:focus {
    border-bottom: 1px solid #1B5288;
    color: #303030;
}

/* Warna placeholder */
.input-field::placeholder {
    font-weight: 400;
    font-size: 16px;
    color: #9C9C9C;
    opacity: 1;
}

/* Gaya saat input dalam keadaan disable */
.input-field:disabled {
    color: #d3d3d3;
    border-bottom: 1px solid #d3d3d3;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.font-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #443F3F;
}

.font-subtitle {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 17px;
    color: #726C6C;
}

.font-desc-red {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #BF3D2C;
}

.font-bold-primary {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 50px;
    color: var(--color-primary);
}

.font-bold-orange-primary {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 30px;
    line-height: 50px;
    color: var(--color-orange-primary);
}

.font-regular-primary {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    line-height: 50px;
    color: var(--color-primary);
}

/* white button  */
.button-white {
    background-color: white;
    color: #3C2C2C;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-white:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Tombol Primary */
.button-primary {
    background-color: var(--color-primary);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.button-primary:active {
    background-color: var(--color-primary-active);
    color: white;
}

.button-primary:focus {
    outline: none;
}

/* Tombol Primary Outline */
.button-primary-outline {
    background-color: transparent;
    color: var(--color-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid var(--color-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.button-primary-outline:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.button-primary-outline:active {
    background-color: var(--color-primary-active);
    color: white;
}

.button-primary-outline:focus {
    outline: none;
}

.button-orange-primary {
    background-color: var(--color-orange-primary);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* Bold */
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button-orange-primary:hover {
    background-color: var(--color-orange-primary-dark);
}

/* Focus */
.button-orange-primary:focus {
    background-color: var(--color-orange-primary-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(221, 90, 34, 0.4);
}

/* Active (klik) */
.button-orange-primary:active {
    background-color: var(--color-orange-primary-dark);
}

/* Tombol Disable */
.button-primary:disabled {
    background-color: #D8D8D8; /* Warna biru muda saat disable */
    color: #A4A4A4; /* Warna teks abu-abu */
    cursor: not-allowed;
    transform: none; /* Menghilangkan efek hover dan active */
}

.button-orange-primary:disabled {
    background-color: #D8D8D8; /* Warna biru muda saat disable */
    color: #A4A4A4; /* Warna teks abu-abu */
    cursor: not-allowed;
    transform: none; /* Menghilangkan efek hover dan active */
}

/* Button Floating Close Modal */
.btn-floating-close-modal {
    position: absolute;
    right: 1.5rem;
    top: -3.75rem;
    background-color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 100%;
    color: #656565;
}

.btn-floating-close-modal span {
    transform: translate(0rem, 0.05rem);
    font-size: 2rem;
    line-height: 1;
}

.modal-dialog-centered .btn-floating-close-modal {
    right: 0rem;
}

/* MODAL */
/* Custom modal title */
.modal-title-sm {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--theme-color);
}

/* Modal Image */
.modal-image {
    width: 5rem;
    margin: calc(1.5 * var(--def-margin)) auto calc(0.5 * var(--def-margin)) auto;
}

/* Modal Description */
.modal-desc {
    margin-bottom: 0rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #A7A7A7;
}

/* Modal Bottom */
.modal-dialog.modal-bottom {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
    bottom: 0;
    overflow: initial;
}

.modal-dialog.modal-bottom .modal-content {
    border-radius: var(--def-padding) var(--def-padding) 0rem 0rem;
}

/* Modal */
.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: calc(var(--def-padding) * 0.75) var(--def-padding);
    border: none;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-color);
}

.modal-floating-title {
    position: absolute;
    left: 50%;
    top: 0;
    z-index: 10;
    transform: translateX(-50%) translateY(-50%);
    background: #E94A00;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-body {
    max-height: 90vh;
    padding: 0 var(--def-padding);
    overflow-y: auto;
    font-size: 1.15rem;
}

.modal-content {
    /*width: 100vw;*/
    border: none;
    border-radius: 0.75rem;
}

.modal-content {
    border-radius: 10px; 
    border: none; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /*padding: 30px 20px;*/
}

.modal-content {
    border-radius: 10px; 
    border: none; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    /*padding: 30px 20px;*/
}

.modal-footer {
    display: flex;
    width: calc(100% - (2 * var(--def-margin)));
    padding: 0;
    margin: var(--def-margin);
    border: none;
}

.modal-footer > button.btn {
    /*margin: 0rem calc(var(--def-padding) / 2);*/
}

.modal-footer > button.btn:first-child {
    margin-left: 0rem;
}

.modal-footer > button.btn:last-child {
    margin-right: 0rem;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
}