/* Isla Veterinary — booking form. Colors follow the site's Elementor global palette. */
.ivb {
  --ivb-blue: #009BDF;
  --ivb-blue-dark: #105A7A;
  --ivb-blue-light: #6ACEF0;
  --ivb-blue-pale: #B3E3F4;
  --ivb-tint: #EEF8FD;
  --ivb-text: #333333;
  --ivb-muted: #757575;
  --ivb-line: #DCEBF2;
  --ivb-err: #C0392B;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 40px;
  color: var(--ivb-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}
.ivb *, .ivb *::before, .ivb *::after { box-sizing: border-box; }
.ivb [hidden] { display: none !important; }

.ivb-card {
  background: #fff;
  border: 1px solid var(--ivb-line);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(16, 90, 122, 0.06);
}
.ivb-h {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px; font-size: 20px; font-weight: 700; color: var(--ivb-blue-dark);
}
.ivb-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ivb-blue); color: #fff; font-size: 15px; font-weight: 700; flex: none;
}

.ivb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ivb-f { display: block; margin-bottom: 16px; }
.ivb-f > span { display: block; font-size: 14px; font-weight: 600; color: var(--ivb-blue-dark); margin-bottom: 6px; }
.ivb-f > span em { font-weight: 400; color: var(--ivb-muted); font-style: normal; }
.ivb input:not([type="radio"]), .ivb select, .ivb textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ivb-text);
  background: #fff; border: 1.5px solid var(--ivb-line); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s; min-height: 48px;
}
.ivb textarea { min-height: 90px; resize: vertical; }
.ivb input:focus, .ivb select:focus, .ivb textarea:focus {
  border-color: var(--ivb-blue); box-shadow: 0 0 0 3px rgba(0, 155, 223, 0.15);
}
.ivb-hint { margin: -4px 0 0; font-size: 14px; color: var(--ivb-muted); }
.ivb-muted { color: var(--ivb-muted); font-size: 15px; margin: 0; }
.ivb a { color: var(--ivb-blue); }

/* Intro */
.ivb-intro { grid-column: 1 / -1; text-align: center; padding: 28px 16px 8px; }
.ivb-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ivb-blue); }
.ivb-intro h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; color: var(--ivb-blue-dark); }
.ivb-intro p:last-child { margin: 0 auto; max-width: 620px; color: var(--ivb-muted); font-size: 17px; }

/* Segmented species picker */
.ivb-seg { display: flex; gap: 8px; flex-wrap: wrap; }
.ivb-seg label { flex: 1; min-width: 90px; cursor: pointer; }
.ivb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ivb-seg span {
  display: block; text-align: center; padding: 11px 10px; border-radius: 10px;
  border: 1.5px solid var(--ivb-line); font-weight: 600; color: var(--ivb-blue-dark); transition: all .15s;
}
.ivb-seg input:checked + span { background: var(--ivb-blue); border-color: var(--ivb-blue); color: #fff; }
.ivb-seg input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 155, 223, 0.25); }
.ivb-other {
  background: var(--ivb-tint); border-left: 4px solid var(--ivb-blue);
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 15px;
}

/* Service cards */
.ivb-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ivb-svc {
  position: relative; display: block; cursor: pointer; padding: 14px 16px; border-radius: 12px;
  border: 1.5px solid var(--ivb-line); background: #fff; transition: all .15s;
}
.ivb-svc:hover { border-color: var(--ivb-blue-light); }
.ivb-svc input { position: absolute; opacity: 0; pointer-events: none; }
.ivb-svc.is-on { border-color: var(--ivb-blue); background: var(--ivb-tint); box-shadow: 0 0 0 1px var(--ivb-blue) inset; }
.ivb-svc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--ivb-blue-dark); }
.ivb-price { font-size: 13px; font-weight: 700; color: var(--ivb-blue); white-space: nowrap; }
.ivb-svc-desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--ivb-muted); }
.ivb-svc-desc em { font-style: normal; }

/* Time chips */
.ivb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ivb-times .ivb-muted, .ivb-times .ivb-loading { grid-column: 1 / -1; }
.ivb-time {
  padding: 10px 6px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--ivb-blue-dark); background: #fff; border: 1.5px solid var(--ivb-blue-pale); border-radius: 10px; transition: all .15s;
}
.ivb-time:hover { border-color: var(--ivb-blue); }
.ivb-time.is-on { background: var(--ivb-blue); border-color: var(--ivb-blue); color: #fff; }
.ivb-loading { color: var(--ivb-muted); font-size: 15px; padding: 6px 0; }

/* Messages + button */
.ivb-msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; background: var(--ivb-tint); }
.ivb-msg-err { background: #FDECEA; color: var(--ivb-err); border-left: 4px solid var(--ivb-err); }
.ivb .ivb-btn {
  display: block; width: 100%; padding: 16px 24px; font: inherit; font-size: 17px; font-weight: 700;
  color: #fff; background: var(--ivb-blue); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 155, 223, 0.3); transition: background .15s, transform .1s;
}
.ivb-btn:hover:not(:disabled) { background: var(--ivb-blue-dark); }
.ivb-btn:active:not(:disabled) { transform: translateY(1px); }
.ivb .ivb-btn:disabled, .ivb .ivb-btn[disabled] { background: var(--ivb-blue-pale) !important; color: #fff !important; box-shadow: none; cursor: not-allowed; opacity: 1; }
.ivb-fine { text-align: center; font-size: 14px; color: var(--ivb-muted); margin: 14px 0 0; }
.ivb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Sidebar */
.ivb-side { position: sticky; top: 110px; align-self: start; }
.ivb-clinic { background: linear-gradient(160deg, var(--ivb-blue-dark), var(--ivb-blue)); border: 0; color: #fff; }
.ivb-clinic h4 { margin: 0 0 14px; font-size: 19px; color: #fff; }
.ivb-clinic p { margin: 0 0 12px; font-size: 15px; }
.ivb-clinic a { color: #fff; font-weight: 700; text-decoration: none; }
.ivb-li { display: flex; gap: 10px; align-items: flex-start; }
.ivb-ico { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: var(--ivb-blue-pale); }
.ivb img.emoji { width: 1em !important; height: 1em !important; }
.ivb-summary h4 { margin: 0 0 10px; color: var(--ivb-blue-dark); font-size: 17px; }
.ivb-summary p { margin: 0 0 6px; font-size: 15px; }

/* Done */
.ivb-done { text-align: center; background: #fff; border: 1px solid var(--ivb-line); border-radius: 16px; padding: 48px 28px; }
.ivb-check {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--ivb-blue);
  color: #fff; font-size: 38px; line-height: 72px; font-weight: 700;
}
.ivb-done h3 { color: var(--ivb-blue-dark); font-size: 26px; margin: 0 0 12px; }
.ivb-done p { font-size: 16px; margin: 0 0 12px; }

@media (max-width: 900px) {
  .ivb { grid-template-columns: 1fr; padding: 0 16px 32px; }
  .ivb-intro { order: -2; }
  .ivb-side { position: static; order: -1; }
  .ivb-summary { display: none; }
}
@media (max-width: 600px) {
  .ivb-row { grid-template-columns: 1fr; gap: 0; }
  .ivb-card { padding: 20px 18px; }
  .ivb-services { grid-template-columns: 1fr; }
}
