/* =========================================
   Villa Kopjar Booking – Frontend Styles
   ========================================= */

.vkb-wrap {
  max-width: 900px;
  margin: 0 auto;
  font-family: inherit;
}

/* ── Legend ── */
.vkb-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  flex-wrap: wrap;
  color: #B99D75;
}
.vkb-dot {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.vkb-dot-free    { background: #d4edda; border: 2px solid #28a745; }
.vkb-dot-pending { background: #fff3cd; border: 2px solid #ffc107; }
.vkb-dot-booked  { background: #f8d7da; border: 2px solid #dc3545; }

/* ── Calendar grid ── */
.vkb-cal-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.vkb-month {
  flex: 1 1 260px;
  min-width: 260px;
}

/* month header */
.vkb-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.vkb-month-title {
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  color: #B99D75;
}
.vkb-nav-btn {
  background: transparent;
  border: 1px solid #B99D75;
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #B99D75;
  transition: background .15s, color .15s;
}
.vkb-nav-btn:hover { background: #B99D75; color: #fff; }

/* day-of-week header */
.vkb-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.vkb-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #B99D75;
  padding: 4px 0;
}

/* days grid */
.vkb-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.vkb-day {
  text-align: center;
  padding: 7px 0;
  border-radius: 4px;
  font-size: 13px;
  cursor: default;
  transition: background .12s;
  position: relative;
}
.vkb-empty { visibility: hidden; }
.vkb-past  { color: #bbb; background: #fafafa; }
.vkb-free  {
  background: #d4edda;
  color: #155724;
  cursor: pointer;
}
.vkb-free:hover { background: #b1dfbb; }
.vkb-pending-day {
  background: #fff3cd;
  color: #856404;
}
.vkb-booked {
  background: #f8d7da;
  color: #721c24;
}

/* ── Form ── */
#vkb-booking-form {
  margin-top: 36px;
}
#vkb-booking-form h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(185,157,117,.45);
  color: #B99D75;
}
.vkb-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.vkb-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.vkb-field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #B99D75;
}
.vkb-field input,
.vkb-field select,
.vkb-field textarea {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s;
  background: #fff;
  color: #222;
}
.vkb-field input:focus,
.vkb-field select:focus,
.vkb-field textarea:focus {
  outline: none;
  border-color: #8b7355;
  box-shadow: 0 0 0 3px rgba(139,115,85,.15);
}
.vkb-field textarea { resize: vertical; }

/* ── Posebne želje (checkboxovi) ── */
.vkb-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 6px 0;
}
.vkb-check {
  display: flex !important;
  align-items: center;
  gap: 7px;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #B99D75 !important;
  margin: 0 !important;
  cursor: pointer;
}
.vkb-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #B99D75;
  cursor: pointer;
}

.vkb-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 36px;
  background: #8b7355;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.vkb-btn:hover    { background: #6d5a42; }
.vkb-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Honeypot (anti-spam, skriveno) ── */
.vkb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ── Messages ── */
.vkb-msg {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}
.vkb-msg-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.vkb-msg-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .vkb-cal-grid  { flex-direction: column; }
  .vkb-row       { flex-direction: column; gap: 0; }
  /* flex-basis 220px u koloni postaje visina – resetiraj da nema praznina */
  .vkb-row .vkb-field { flex: 0 0 auto; }
  .vkb-day       { padding: 5px 0; font-size: 12px; }
}
