:root {
  --vallum-navy: #071b32;
  --vallum-blue: #087bc1;
  --vallum-lime: #91d000;
  --ink: #112339;
  --mute: #627185;
  --line: #dfe6ec;
  --bg: #f5f8fa;
  --soft: #f2f6f9;
  --surface: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; background: var(--bg); }
body {
  padding: 16px;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
.agd {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(7, 27, 50, .09);
}
.agd-head {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  color: #fff;
  background: var(--vallum-navy);
}
.agd-head::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--vallum-lime);
  content: '';
}
.agd-brand {
  display: flex;
  width: 150px;
  height: 78px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: #fff;
}
.agd-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.agd-heading { min-width: 0; }
.agd-head h1 {
  color: #fff;
  font-family: 'Manrope', 'DM Sans', system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}
.agd-head p { margin-top: 5px; color: #c8d5e1; font-size: 13px; }
.steps { display: flex; align-items: center; gap: 6px; }
.steps span {
  width: 24px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .24);
  transition: background-color .25s ease;
}
.steps span.on { background: var(--vallum-lime); }
.agd-body { min-height: 360px; padding: 28px 30px 30px; background: var(--surface); }
.agd-body h2 {
  margin-bottom: 18px;
  color: var(--vallum-navy);
  font-family: 'Manrope', 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.fade { animation: fade .32s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card {
  position: relative;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--vallum-blue); background: #fbfdff; box-shadow: 0 10px 24px rgba(7, 27, 50, .09); }
.card:focus-visible, .nav:focus-visible, .day:focus-visible, .slot:focus-visible, .btn:focus-visible, .field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid rgba(145, 208, 0, .48);
  outline-offset: 2px;
}
.row { display: flex; align-items: center; }
.card .dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; margin-right: 9px; border-radius: 50%; }
.card strong { font-weight: 700; }
.card .meta { display: flex; gap: 12px; margin-top: 7px; color: var(--mute); font-size: 13px; }
.card .desc { margin-top: 7px; color: var(--mute); font-size: 13px; }
.avatar {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  margin-right: 11px;
  border: 1px solid #d8eaf5;
  border-radius: 50%;
  background: #eef7fc;
  color: var(--vallum-blue);
  font-weight: 700;
}
.dt { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-h b { color: var(--vallum-navy); font-family: 'Manrope', 'DM Sans', system-ui, sans-serif; font-weight: 700; text-transform: capitalize; }
.nav {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--vallum-navy);
  cursor: pointer;
  font-size: 18px;
  transition: border-color .2s ease, background-color .2s ease;
}
.nav:hover:not(:disabled) { border-color: var(--vallum-blue); background: #f1f8fc; }
.nav:disabled { opacity: .38; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal .wd { padding: 6px 0; color: var(--mute); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.day { aspect-ratio: 1; border: 0; border-radius: 9px; background: transparent; color: var(--ink); cursor: pointer; font-weight: 600; transition: background-color .15s ease, color .15s ease; }
.day.ok { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.day.ok:hover { box-shadow: inset 0 0 0 1.5px var(--c); }
.day.sel { background: var(--c); color: #fff; box-shadow: none; }
.day:disabled { background: transparent; box-shadow: none; color: #b9c4ce; cursor: default; }
.slots { display: grid; max-height: 330px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; overflow: auto; padding-right: 2px; }
.slot { padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 700; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.slot:hover { border-color: var(--c); color: var(--c); }
.slot.sel { border-color: var(--c); background: var(--c); color: #fff; }
.muted { color: var(--mute); font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: 13px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid #cfd9e1; border-radius: 8px; background: #fff; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus { border-color: var(--vallum-blue); outline: 0; box-shadow: 0 0 0 3px rgba(8, 123, 193, .12); }
.field-hint { display: block; margin: 6px 0 0; color: var(--mute); font-size: 12px; line-height: 1.5; }
.gps-panel { margin: 2px 0 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.gps-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); cursor: pointer; font-size: 13px; line-height: 1.5; }
.gps-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--vallum-lime); }
.gps-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.gps-controls .field-hint { margin: 0; }
.btn.btn-gps { padding: 10px 14px; border: 1px solid var(--vallum-blue); background: #fff; color: var(--vallum-blue); font-size: 13px; }
.btn-gps:hover:not(:disabled) { background: #f1f8fc; }
.btn-gps:disabled { opacity: .48; cursor: not-allowed; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--vallum-lime); border-radius: 8px; background: var(--soft); font-size: 14px; }
.summary b { color: var(--vallum-navy); font-weight: 700; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.btn { padding: 12px 24px; border: 0; border-radius: 7px; cursor: pointer; font-weight: 700; transition: filter .2s ease, transform .2s ease, opacity .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-p { background: var(--c); color: #fff; box-shadow: 0 7px 16px rgba(8, 123, 193, .18); }
.btn-p:hover:not(:disabled) { filter: brightness(.94); }
.btn-p:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn-g { padding-left: 0; background: transparent; color: var(--mute); }
.btn-g:hover { color: var(--vallum-navy); }
.err { margin-bottom: 14px; padding: 10px 12px; border: 1px solid #f3c9c6; border-radius: 8px; background: #fff5f4; color: #a52b23; font-size: 14px; }
.done { padding: 32px 10px; text-align: center; }
.check { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; margin-bottom: 16px; border-radius: 50%; background: var(--vallum-lime); color: var(--vallum-navy); font-size: 30px; animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.done h2 { margin-bottom: 8px; font-size: 22px; }
.badge { display: inline-block; margin: 12px 0; padding: 4px 10px; border-radius: 999px; background: #fff3d2; color: #775300; font-size: 12px; font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.foot { display: flex; align-items: center; gap: 8px; padding: 12px 28px; border-top: 1px solid var(--line); background: var(--soft); color: var(--mute); font-size: 12px; }
.foot::before { width: 8px; height: 8px; border-radius: 50%; background: var(--vallum-lime); content: ''; }

@media (max-width: 680px) {
  body { padding: 10px; }
  .agd-head { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 20px 18px; }
  .agd-brand { width: 104px; height: 66px; }
  .agd-head h1 { font-size: 20px; }
  .steps { grid-column: 1 / -1; justify-self: end; }
  .agd-body { padding: 22px 18px 24px; }
  .dt { grid-template-columns: 1fr; gap: 20px; }
  .foot { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 560px) {
  .two { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .actions { align-items: stretch; }
  .actions .btn-p { min-width: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
