body {
    font-family: "Montserrat", sans-serif;
    background: url("../assets/background.jpg") center/cover;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 20px;
}

.form {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #ff5900;
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.title {
    color: #ff5900;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.subtitle {
    font-size: 1.2em;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-size: 0.8em;
    margin-bottom: 5px;
    color: #fff;
}

input[type="text"],
input[type="date"],
input[type="time"],
select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ff5900;
    border-radius: 8px;
    box-sizing: border-box;
    color: #fff;
    font-size: 0.8em;
    height: 40px;
    outline: none;
    padding: 10px;
    width: 100%;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus {
    border-color: #ff7300;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 6' width='12' height='6'%3E%3Cpath fill='%23CBD5E1' d='M0 0l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    padding-right: 30px;
}

select option {
    color: black;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(100%);
}

button[type="submit"] {
    background-color: #ff5900;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1.1em;
    height: 45px;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

button[type="submit"]:hover {
    background-color: #ff7300;
}

.btn-link {
    display: block;
    padding: 12px 24px;
    background-color: transparent;
    color: #ff5900;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: color 0.3s ease;
    border: 2px solid #ff5900;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
}

.btn-link:hover {
    background-color: rgba(255, 89, 0, 0.1);
    color: #fff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    /* Pusatkan modal secara horizontal */
    max-width: 500px;
    /* Atur lebar maksimum modal */
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 2px solid #ff5900;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 2px solid #ff5900;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    /* Distribusikan ruang antara judul dan tombol tutup */
    align-items: center;
    /* Pusatkan vertikal */
}

.modal-title {
    color: #ff5900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1.5rem;
}

.modal-body {
    padding: 1rem;
}

.modal-body .form-group label {
    color: #fff;
    font-size: 1em;
    margin-bottom: 0.5rem;
}

.modal-body .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ff5900;
    color: #fff;
    font-size: 1em;
    padding: 0.5rem;
    border-radius: 8px;
}

.modal-footer {
    border-top: 2px solid #ff5900;
    padding: 1rem;
}

.close {
    color: #ff5900;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.8;
    text-shadow: none;
    margin-left: auto;
    /* Dorong tombol tutup ke kanan */
}

.close:hover {
    color: #ff7300;
    opacity: 1;
    text-decoration: none;
}

.modal-body button[type="submit"] {
    background-color: #ff5900;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 1.1em;
    height: 40px;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.modal-body button[type="submit"]:hover {
    background-color: #ff7300;
}

#rescheduleFormError {
    color: #e53e3e;
    /* Warna merah untuk pesan kesalahan */
    margin-top: 5px;
}

.time-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.time-input-fake {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #ff5900;
    border-radius: 8px;
    box-sizing: border-box;
    color: #fff;
    font-size: 1em;
    height: 40px;
    outline: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.time-input-fake::after {
    content: "\25BE";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
}

.time-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.time-select option:disabled {
    color: #888;
}

/* Style saat select di-focus (dropdown terbuka) */
select.select-focused {
    /* Tambahkan gaya di sini untuk saat dropdown terbuka */
    background-color: rgba(255, 89, 0, 0.8); /* Contoh: Oranye lebih terang */
    color: white; /* Contoh: Warna teks putih */
    /* Tambahkan style lain yang Anda inginkan */
}

/* (Penting!) Style untuk option element */
select option {
    background-color: black;
    color: white;
}

select.select-focused > option:checked {
    background-color: rgba(255, 89, 0, 0.8);
    color: white;
}
