/* =================================================================
   Venue Booking Plugin — venue-booking.css
   โหลดเฉพาะหน้า /venue-booking (ผ่าน frontend_head hook)
   ================================================================= */

/* ── Page Layout ──────────────────────────────────────────────── */
.vb-main {
  min-height: 60vh;
}

.vb-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary, #1a1a2e);
}

/* ── Cards ────────────────────────────────────────────────────── */
.vb-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

[data-bs-theme="dark"] .vb-card {
  background: #1e293b;
  border-color: #334155;
}

.vb-card-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: .6rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  color: #475569;
}

[data-bs-theme="dark"] .vb-card-header {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

.vb-card-body {
  padding: 1.1rem 1.1rem .7rem;
}

/* ── Form Elements ────────────────────────────────────────────── */
.vb-form-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.vb-form-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.vb-label {
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
}

[data-bs-theme="dark"] .vb-label {
  color: #cbd5e1;
}

.vb-input {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: .45rem .7rem;
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: inherit;
  transition: border-color .15s;
  width: 100%;
}

.vb-input:focus {
  border-color: var(--primary-blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

[data-bs-theme="dark"] .vb-input {
  background: #0f172a;
  border-color: #475569;
  color: #f1f5f9;
}

.vb-textarea {
  resize: vertical;
  min-height: 80px;
}

/* ── Radio Group ──────────────────────────────────────────────── */
.vb-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding: .4rem 0;
}

.vb-radio-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  cursor: pointer;
  user-select: none;
}

.vb-radio {
  accent-color: var(--primary-blue, #2563eb);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-vb-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: var(--primary-blue, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .55rem 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
}

.btn-vb-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.btn-vb-primary:active {
  transform: scale(.97);
}

.btn-vb-primary:disabled,
.btn-vb-primary[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.btn-vb-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  background: transparent;
  color: var(--primary-blue, #2563eb);
  border: 1.5px solid var(--primary-blue, #2563eb);
  border-radius: 8px;
  padding: .55rem 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.btn-vb-outline:hover {
  background: rgba(37,99,235,.08);
}

/* ── Warning ──────────────────────────────────────────────────── */
.vb-warn {
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  padding: .55rem .9rem;
  font-size: .82rem;
  color: #92400e;
  line-height: 1.5;
}

[data-bs-theme="dark"] .vb-warn {
  background: #451a03;
  border-color: #d97706;
  color: #fbbf24;
}

/* ── Form Error ───────────────────────────────────────────────── */
.vb-form-error {
  color: #dc2626;
  font-size: .8rem;
  margin-top: .2rem;
}

/* ── Spinner ──────────────────────────────────────────────────── */
.vb-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--primary-blue, #2563eb);
  border-radius: 50%;
  animation: vb-spin .65s linear infinite;
}

@keyframes vb-spin {
  to { transform: rotate(360deg); }
}

/* ── Thai BE hint ─────────────────────────────────────────────── */
.vb-be-hint {
  font-size: .78rem;
  color: var(--primary-blue, #2563eb);
  min-height: 1em;
  margin-top: .15rem;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 576px) {
  .vb-form-row {
    flex-direction: column;
  }
  .vb-form-row > .vb-form-group {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}
