:root {
--dp-bg: #ffffff;
--dp-text: #1f2937;
--dp-muted: #6b7280;
--dp-border: #e5e7eb;
--dp-accent: #2563eb;
--dp-accent-contrast: #ffffff;
--dp-hover: #f3f4f6;
--dp-shadow: 0 10px 25px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06);
--radius: 14px;
}
* { box-sizing: border-box; }
.form-container {
    max-width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
    margin-bottom: 100px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.date-input, .capacity-input {
    width: 100%;
    padding: 14px;
    border: 2px solid #4b4b4b; /* ubah warna sesuai keinginan, misal biru */
    border-radius: 30px;       /* ubah angka untuk radius lebih besar/kecil */
    font-size: 16px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.date-input {
    padding-right: 44px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat right 12px center;
}

.date-input:focus, .capacity-input:focus {
    border-color: #4b4b4b; /* warna border saat fokus */
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}


/* gunakan CSS datepicker sebelumnya */
.datepicker {
    position: absolute;
    z-index: 9999;
    width: min(92vw, 360px);
    background: var(--dp-bg);
    color: var(--dp-text);
    border: 1px solid var(--dp-border);
    border-radius: var(--radius);
    box-shadow: var(--dp-shadow);
    padding: 10px;
    display: none;
}

.datepicker.open {
    display: block;
    animation: pop .14s ease-out;
}

@keyframes pop {
    from {
        transform: scale(.98);
        opacity: .6
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.dp-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 8px;
}

.dp-nav-btn {
    border: 1px solid var(--dp-border);
    background: #fff;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.dp-title {
    text-align: center;
    font-weight: 700;
    font-size: 15px;
}

.dp-selects {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}

.dp-selects select {
    padding: 8px 10px;
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 10px 6px;
}

.dp-weekday {
    text-align: center;
    font-size: 12px;
    color: var(--dp-muted);
    font-weight: 600;
}

.dp-day {
    border: 1px solid var(--dp-border);
    background: #fff;
    border-radius: 10px;
    height: 42px;
    display: grid;
    place-items: center;
    font-size: 14px;
    cursor: pointer;
}

.dp-day.selected {
    background: var(--dp-accent);
    color: var(--dp-accent-contrast);
    border-color: var(--dp-accent);
}

.dp-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px;
}

.dp-footer button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.dp-footer .primary {
    background: var(--dp-accent);
    color: var(--dp-accent-contrast);
    border-color: var(--dp-accent);
}

.booking-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 40px;
  padding: 15px 25px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 50px auto;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.field label {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.input-icon {
  display: flex;
  align-items: center;
  background: #fff;
}

.input-icon i {
  margin-right: 8px;
  color: #444;
  font-size: 16px;
}

.input-icon input {
  border: none;
  outline: none;
  font-size: 16px;
  width: 100%;
}

.divider {
  width: 1px;
  background: #ddd;
  height: 40px;
}
/* Tambahkan ini di akhir file datepicker.css Anda */
.dp-day.booked {
  background-color: #ffcccc; /* Warna latar belakang merah muda */
  color: #cc0000; /* Warna teks merah tua */
  cursor: not-allowed; /* Kursor tidak diizinkan */
  text-decoration: line-through; /* Opsional: garis coret pada tanggal */
}

/* Jika ingin warna disabled umum tidak menimpa warna booked */
.dp-day.disabled.booked {
    background-color: #ffcccc; /* Pastikan warna booked tetap terlihat */
    color: #cc0000;
}

.dp-day.checkout-valid {
  background-color: #e0f2fe; /* biru muda */
  color: #0369a1;           /* teks biru tua */
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}


