:root {
  --ana-bg-1: #f8f5f1;
  --ana-bg-2: #fffaf5;
  --ana-card: #ffffff;
  --ana-text: #2e2926;
  --ana-muted: #786d65;
  --ana-accent: #bf6a48;
  --ana-accent-dark: #a5593b;
  --ana-border: #e6d8cf;
  --ana-radius: 14px;
}

.ana-booking-wrap {
  box-sizing: border-box;
  max-width: 760px;
  width: 100%;
  margin: 28px auto;
  padding: 26px;
  border: 1px solid var(--ana-border);
  border-radius: var(--ana-radius);
  background: linear-gradient(160deg, var(--ana-card), var(--ana-bg-2));
  color: var(--ana-text);
  box-shadow: 0 12px 40px rgba(59, 45, 38, 0.09);
}

.ana-booking-wrap h1 {
  margin: 0 0 6px;
  letter-spacing: 0.3px;
  font-size: 34px;
  line-height: 1.1;
}

.ana-account-hint {
  margin: 8px 0 16px;
  color: var(--ana-muted);
}

.ana-account-hint a {
  color: var(--ana-accent);
  font-weight: 600;
}

.ana-booking-wrap::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--ana-accent);
}

.ana-booking-form {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.ana-booking-form label {
  margin-top: 8px;
  font-weight: 600;
  color: var(--ana-text);
}

.ana-booking-form input,
.ana-booking-form select {
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--ana-border);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ana-booking-form input:focus,
.ana-booking-form select:focus {
  outline: 0;
  border-color: var(--ana-accent);
  box-shadow: 0 0 0 3px rgba(191, 106, 72, 0.14);
}

.ana-btn {
  margin-top: 14px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(120deg, var(--ana-accent), #d17b56);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.ana-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(191, 106, 72, 0.25);
  background: linear-gradient(120deg, var(--ana-accent-dark), #be6e4b);
}

.ana-note {
  color: var(--ana-muted);
  font-size: 14px;
}

.ana-calendar-panel {
  box-sizing: border-box;
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--ana-border);
  border-radius: 12px;
  padding: 14px;
  background: #fffdfb;
  overflow-x: hidden;
}

.ana-calendar-toolbar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ana-calendar-toolbar h2 {
  margin: 0;
  text-align: center;
  font-size: 20px;
}

.ana-nav {
  border: 1px solid var(--ana-border);
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
  padding: 8px 0;
}

.ana-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--ana-muted);
}

.ana-weekdays span {
  text-align: center;
}

.ana-calendar-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.ana-day {
  box-sizing: border-box;
  min-width: 0;
  min-height: 126px;
  border: 1px solid var(--ana-border);
  border-radius: 10px;
  padding: 7px;
  background: #fff;
}

.ana-day.is-empty {
  border-style: dashed;
  background: transparent;
}

.ana-day.is-past {
  opacity: 0.55;
  background: #faf8f6;
}

.ana-day.is-today {
  border-color: var(--ana-accent);
}

.ana-day-head {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ana-slots {
  display: grid;
  gap: 4px;
}

.ana-slot {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #d8ccc4;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  padding: 5px 3px;
  cursor: pointer;
}

.ana-slot:hover {
  border-color: var(--ana-accent);
}

.ana-slot.is-busy {
  background: #efe7e2;
  border-color: #d6c3b8;
  color: #8d7b72;
  cursor: not-allowed;
}

.ana-slot.is-past {
  background: #f2efec;
  border-color: #e1d9d3;
  color: #9a918b;
  cursor: not-allowed;
}

.ana-slot.is-selected {
  background: #fceee8;
  border-color: var(--ana-accent);
  color: #6f3823;
  font-weight: 700;
}

.ana-selected-slot {
  margin: 4px 0 0;
  font-weight: 600;
  color: #5b463b;
}

.ana-mobile-slots {
  display: none;
}

.ana-mobile-legend {
  display: none;
}

.ana-errors,
.ana-success,
.ana-touchup-info {
  padding: 12px;
  border-radius: 10px;
  margin: 0 0 12px;
}

.ana-errors {
  background: #fff2f2;
  border: 1px solid #f2c7c7;
}

.ana-success {
  background: #ecf9ee;
  border: 1px solid #bfe4c6;
}

.ana-touchup-info {
  background: #f3f7ff;
  border: 1px solid #ccd9f6;
}

@media (max-width: 768px) {
  .ana-booking-wrap {
    margin: 14px 12px;
    padding: 18px;
    max-width: calc(100vw - 24px);
    overflow: hidden;
  }

  .ana-booking-wrap h1 {
    font-size: 28px;
  }

  .ana-calendar-panel {
    padding: 10px;
  }

  .ana-calendar-toolbar {
    grid-template-columns: 34px 1fr 34px;
    gap: 8px;
    margin-bottom: 8px;
  }

  .ana-calendar-toolbar h2 {
    font-size: 16px;
    line-height: 1.15;
  }

  .ana-nav {
    padding: 6px 0;
    font-size: 18px;
  }

  .ana-weekdays {
    gap: 4px;
    font-size: 11px;
  }

  .ana-calendar-grid {
    gap: 4px;
  }

  .ana-calendar-grid.is-mobile {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .ana-day {
    min-height: 70px;
    padding: 4px;
  }

  .ana-day-head {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .ana-day-mobile-btn {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--ana-border);
    background: #fff;
    border-radius: 9px;
    padding: 4px 2px;
    display: grid;
    gap: 2px;
    justify-items: center;
    line-height: 1.05;
  }

  .ana-day-mobile-btn.is-selected {
    border-color: var(--ana-accent);
    background: #fcf2ec;
  }

  .ana-day-mobile-btn.is-fully-busy {
    opacity: 0.58;
  }

  .ana-day-mobile-btn.is-policy-blocked {
    opacity: 0.45;
    border-style: dashed;
  }

  .ana-day-mobile-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--ana-text);
  }

  .ana-day-mobile-meta {
    display: none;
  }

  .ana-day-mobile-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.12);
  }

  .ana-day-mobile-dot.is-green {
    background: #31b057;
  }

  .ana-day-mobile-dot.is-amber {
    background: #d49b1d;
  }

  .ana-day-mobile-dot.is-red {
    background: #d65454;
  }

  .ana-slots {
    gap: 3px;
  }

  .ana-slot {
    font-size: 10px;
    line-height: 1.05;
    padding: 3px 1px;
    border-radius: 7px;
  }

  .ana-day .ana-slots {
    display: none;
  }

  .ana-mobile-slots {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--ana-border);
  }

  .ana-mobile-slots-empty {
    margin: 0;
    font-size: 12px;
    color: var(--ana-muted);
  }

  .ana-mobile-slots-head {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
  }

  .ana-mobile-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .ana-mobile-slots-grid .ana-slot {
    font-size: 12px;
    padding: 8px 2px;
    border-radius: 9px;
  }

  .ana-mobile-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--ana-muted);
  }

  .ana-mobile-legend .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
  }

  .ana-mobile-legend .dot.green {
    background: #31b057;
  }

  .ana-mobile-legend .dot.amber {
    background: #d49b1d;
  }

  .ana-mobile-legend .dot.red {
    background: #d65454;
  }
}
