/* Wampdo Booking — frontend (scoped under .wb-scope) */
.wb-scope {
  --wb-grad-from: #1B525A;
  --wb-grad-to: #12222A;
  --wb-accent: #32C1D2;
  --wb-text: #e6f2f4;
  --wb-head: #f2fbfc;
  --wb-muted: #a7cad1;
  --wb-card-bg: rgba(16,34,40,0.55);
  --wb-fs: 15px;
  --wb-h1: 30px;
  --wb-lh: 1.6;
  --wb-radius: 12px;
  --wb-field-pad: 12px 15px;
  --wb-field-border: 1px;
  --wb-field-border-color: rgba(255,255,255,0.15);
  --wb-field-bg: rgba(255,255,255,0.06);
  --wb-field-gap: 1rem;
  --wb-col-gap: 20px;
  --wb-label-size: 0.95rem;
  font-family: var(--wb-font-body, 'Manrope', 'Segoe UI', sans-serif);
  font-size: var(--wb-fs);
  line-height: var(--wb-lh);
  color: var(--wb-text);
  background: none !important;
  padding: 0;
}
.wb-scope * { box-sizing: border-box; }
/* Headings use the chosen heading font; everything else the body font. */
.wb-scope h1, .wb-scope h2, .wb-scope h3, .wb-scope h4, .wb-scope h5, .wb-scope h6,
.wb-header h1, .wb-card h5, .wb-req-intro h4 {
  font-family: var(--wb-font-head, 'DM Sans', 'Segoe UI', sans-serif);
}

.wb-container { max-width: 850px; margin: 0 auto; background: var(--wb-card-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,0.10); border-radius: calc(var(--wb-radius) + 8px); box-shadow: 0 20px 60px rgba(0,0,0,0.45); overflow: hidden; }
.wb-header { background: linear-gradient(135deg, rgba(50,193,210,0.22) 0%, rgba(27,82,90,0.35) 100%); color: #fff; padding: 32px 30px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.08); }
.wb-header h1 { font-size: var(--wb-h1); margin: 0 0 8px; }
.wb-header p { margin: 0; opacity: .9; }

.wb-progress-wrap { background: rgba(255,255,255,0.03); padding: 18px 30px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.wb-progress-bar { height: 8px; background: rgba(255,255,255,0.12); border-radius: 10px; overflow: hidden; }
.wb-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--wb-accent), #5fd4e4); border-radius: 10px; transition: width .4s ease; }
.wb-progress-label { margin-top: 10px; font-size: .85rem; color: #6fd8e6; font-weight: 700; text-align: center; }

.wb-content { padding: 40px 30px; min-height: 420px; }
.wb-step { display: none; }
.wb-step.active { display: block; animation: wbFade .4s; }
@keyframes wbFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.wb-scope h3 { color: var(--wb-head); margin: 0; }
.wb-mb3 { margin-bottom: 1rem; }
.wb-mb4 { margin-bottom: 1.5rem; }
.wb-muted { color: var(--wb-muted); }

.wb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wb-col-gap); margin-top: 20px; }
@media (max-width: 900px) { .wb-grid { grid-template-columns: repeat(2, 1fr); } }
.wb-card { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--wb-radius); padding: 24px; cursor: pointer; transition: all .3s; background: rgba(255,255,255,0.04); }
.wb-card:hover { border-color: var(--wb-accent); transform: translateY(-5px); box-shadow: 0 8px 24px rgba(50,193,210,0.30); background: rgba(255,255,255,0.07); }
.wb-card.selected { border-color: var(--wb-accent); background: linear-gradient(135deg, rgba(50,193,210,0.20) 0%, rgba(27,82,90,0.35) 100%); box-shadow: 0 5px 18px rgba(50,193,210,0.35); }
.wb-card-ic { font-size: 2.4rem; margin-bottom: 14px; }
.wb-card-img { margin-bottom: 14px; }
.wb-card-img img { width: 100%; height: 130px; object-fit: cover; border-radius: var(--wb-radius); display: block; }
.wb-card h5 { font-size: 1.1rem; font-weight: 700; color: var(--wb-head); margin: 0 0 8px; }
.wb-tag { font-size: .85rem; color: #7fdce8; font-weight: 600; line-height: 1.4; margin: 0; }

.wb-buttons { display: flex; justify-content: space-between; padding: 20px 30px; border-top: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); }
.wb-btn { padding: 12px 34px; border-radius: var(--wb-radius); font-weight: 600; font-size: 1rem; border: none; cursor: pointer; transition: all .3s; }
.wb-btn-pri { background: linear-gradient(135deg, var(--wb-accent) 0%, #248EA9 100%); color: #fff; }
.wb-btn-pri:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(50,193,210,0.5); }
.wb-btn-pri:disabled { opacity: .6; cursor: default; transform: none; }
.wb-btn-sec { background: rgba(255,255,255,0.10); color: #e6f2f4; border: 1px solid rgba(255,255,255,0.15); }
.wb-btn-sec:hover { background: rgba(255,255,255,0.16); }
.wb-btn-ghost { background: transparent; color: #7fdce8; border: 1px dashed rgba(120,220,232,0.45); }
.wb-btn-ghost:hover { background: rgba(50,193,210,0.10); }
.wb-btn-ghost:disabled { opacity: .6; cursor: default; }
.wb-save-note { text-align: center; font-size: .85rem; color: #a7cad1; padding: 0 30px 16px; min-height: 1em; }

.wb-scope label { font-weight: 600; color: #dcefff; margin-bottom: 8px; font-size: var(--wb-label-size); display: block; }
.wb-scope input, .wb-scope select, .wb-scope textarea { border-radius: var(--wb-radius); border: var(--wb-field-border) solid var(--wb-field-border-color); padding: var(--wb-field-pad); font-size: .95rem; width: 100%; font-family: inherit; background: var(--wb-field-bg); color: #eef8fa; }
.wb-scope input::placeholder, .wb-scope textarea::placeholder { color: #8fb4bb; }
.wb-scope select option { background: #12222A; color: #eef8fa; }
.wb-scope input:focus, .wb-scope select:focus, .wb-scope textarea:focus { border-color: var(--wb-accent); outline: none; box-shadow: 0 0 0 .2rem rgba(50,193,210,0.30); background: rgba(255,255,255,0.09); }
.wb-scope textarea { resize: vertical; min-height: 90px; }

.wb-row { display: flex; flex-wrap: wrap; margin: 0 calc(var(--wb-col-gap) / -2); }
.wb-col, .wb-col6, .wb-col4, .wb-col3 { flex: 0 0 100%; max-width: 100%; padding: 0 calc(var(--wb-col-gap) / 2); }
.wb-fld { margin-bottom: var(--wb-field-gap); }
/* Widgets */
.wb-range-wrap { display: flex; align-items: center; gap: 12px; }
.wb-range { padding: 0; accent-color: var(--wb-accent); }
.wb-range-out { min-width: 34px; text-align: center; font-weight: 700; color: #7fdce8; }
.wb-rating { font-size: 1.7rem; line-height: 1; cursor: pointer; }
.wb-star { color: rgba(255,255,255,0.25); transition: color .15s; }
.wb-star.on { color: #ffc93c; }
.wb-sig-canvas { width: 100%; height: 150px; background: #fff; border-radius: var(--wb-radius); border: var(--wb-field-border) solid var(--wb-field-border-color); touch-action: none; cursor: crosshair; }
.wb-sig .wb-sig-clear { margin-top: 8px; background: rgba(255,255,255,0.10); color: #e6f2f4; border: 1px solid rgba(255,255,255,0.15); padding: 6px 14px; border-radius: var(--wb-radius); cursor: pointer; }
.wb-html-block { color: var(--wb-text); }
.wb-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--wb-muted); font-weight: 500; }
.wb-consent input { width: auto; margin-top: 3px; accent-color: var(--wb-accent); }
.wb-consent a { color: #7fdce8; }
@media (min-width: 768px) {
  .wb-col6 { flex: 0 0 50%; max-width: 50%; }        /* 2 per row */
  .wb-col4 { flex: 0 0 33.3333%; max-width: 33.3333%; } /* 3 per row */
  .wb-col3 { flex: 0 0 25%; max-width: 25%; }         /* 4 per row */
}
@media (min-width: 560px) and (max-width: 767px) {
  .wb-col4, .wb-col3 { flex: 0 0 50%; max-width: 50%; } /* collapse to 2 on small tablets */
}

.wb-radio-group { margin-top: .5rem; }
.wb-radio-item, .wb-checkbox-item { display: block; padding: 10px 10px 10px 2.2em; margin-bottom: 6px; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; position: relative; transition: all .2s; background: rgba(255,255,255,0.03); }
.wb-radio-item:hover, .wb-checkbox-item:hover { border-color: var(--wb-accent); background: rgba(50,193,210,0.10); }
.wb-radio-item input, .wb-checkbox-item input { width: 1.05em; height: 1.05em; position: absolute; left: 12px; top: 13px; accent-color: var(--wb-accent); }
.wb-radio-item label, .wb-checkbox-item label { display: inline; font-weight: 500; font-size: .9rem; color: #dbeef1; margin: 0; }

.wb-q-wrap { margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.07); }
.wb-q-wrap:last-child { border-bottom: none; }
.wb-err { color: #ff8a8a; font-size: .85rem; margin-top: 6px; display: none; }
.wb-q-wrap.invalid label, .wb-rq-wrap.invalid label { color: #ff8a8a; }
.wb-q-wrap.invalid .wb-err, .wb-rq-wrap.invalid .wb-err { display: block; }
.wb-other-wrap { margin-top: 10px; display: none; }
.wb-other-wrap input { border-color: var(--wb-accent); }

.wb-note-box { background: rgba(255,200,60,0.10); border-left: 4px solid #ffc107; padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: .9rem; color: #ffe09a; }
.wb-upload { border: 2px dashed rgba(120,220,232,0.35); border-radius: 12px; padding: 25px 20px; text-align: center; cursor: pointer; transition: all .3s; background: rgba(255,255,255,0.03); position: relative; }
.wb-upload:hover { border-color: var(--wb-accent); background: rgba(50,193,210,0.10); }
.wb-upload.invalid { border-color: #ff8a8a; background: rgba(255,80,80,0.10); }
.wb-up-ic { font-size: 2rem; margin-bottom: 8px; }
.wb-up-text { font-weight: 600; color: #7fdce8; font-size: .95rem; }
.wb-up-sub { font-size: .8rem; color: #a7cad1; margin-top: 4px; }
.wb-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.wb-file-list { margin-top: 12px; text-align: left; }
.wb-file-chip { display: flex; align-items: center; justify-content: space-between; background: rgba(50,193,210,0.10); border: 1px solid rgba(120,220,232,0.25); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; font-size: .85rem; color: #7fdce8; font-weight: 600; }
.wb-rm { cursor: pointer; color: #ff8a8a; font-weight: 700; padding: 0 4px; }

.wb-req-intro { background: linear-gradient(135deg, rgba(50,193,210,0.15) 0%, rgba(27,82,90,0.30) 100%); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 18px 20px; margin-bottom: 24px; }
.wb-req-intro h4 { color: #7fdce8; margin: 0 0 4px; }
.wb-req-intro p { font-size: .9rem; color: #cfe6ea; margin: 0; }
.wb-rq-wrap { margin-bottom: 1.2rem; }

.wb-success { text-align: center; padding: 60px 20px; }
.wb-success .wb-ic { font-size: 5rem; margin-bottom: 20px; }

/* ------------------------------------------------------------------ */
/* Responsive — mobile · tablet · laptop · desktop                     */
/* ------------------------------------------------------------------ */

/* Large desktop: a touch more breathing room. */
@media (min-width: 1200px) {
  .wb-container { max-width: 900px; }
}

/* Laptops / small desktops. */
@media (max-width: 1100px) {
  .wb-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets. */
@media (max-width: 992px) {
  .wb-grid { grid-template-columns: repeat(2, 1fr); }
  .wb-scope { padding: 30px 16px; }
  .wb-content { padding: 34px 26px; }
  .wb-header { padding: 28px 26px; }
}

/* Large phones / small tablets. */
@media (max-width: 768px) {
  .wb-scope { padding: 18px 10px; border-radius: 12px; }
  .wb-container { border-radius: 16px; }
  .wb-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .wb-header { padding: 24px 20px; }
  .wb-header h1 { font-size: 1.5rem; }
  .wb-content { padding: 26px 20px; min-height: 0; }
  .wb-progress-wrap { padding: 14px 20px; }
  .wb-buttons { padding: 16px 20px; gap: 10px; flex-wrap: wrap; }
  /* Keep Next full-width and prominent; secondary actions share a row. */
  .wb-btn-pri { order: -1; width: 100%; }
  .wb-btn-sec, .wb-btn-ghost { flex: 1 1 auto; }
  .wb-save-note { padding: 0 20px 14px; }
}

/* Phones. */
@media (max-width: 560px) {
  .wb-grid { grid-template-columns: 1fr; }
  .wb-header h1 { font-size: 1.35rem; }
  .wb-header p { font-size: .9rem; }
  .wb-card { padding: 20px; }
  .wb-content { padding: 22px 16px; }
  .wb-buttons { padding: 14px 16px; flex-direction: column; }
  .wb-btn { width: 100%; }
  .wb-btn-sec, .wb-btn-ghost { flex: none; }
  .wb-col6 { flex: 0 0 100%; max-width: 100%; }
  .wb-success { padding: 44px 16px; }
  .wb-success .wb-ic { font-size: 3.6rem; }
}

/* Small phones. */
@media (max-width: 380px) {
  .wb-scope { padding: 12px 6px; }
  .wb-header h1 { font-size: 1.2rem; }
  .wb-content { padding: 18px 12px; }
  .wb-btn { padding: 12px 20px; font-size: .95rem; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .wb-step.active { animation: none; }
  .wb-card, .wb-btn, .wb-progress-fill { transition: none; }
}
