*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(to right, #00a99d, #2e3192);
  color: #1f2933;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-banner {
  width: 100%;
  line-height: 0;
  background: #fff;
}

.site-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

main.container {
  flex: 1;
  display: flex;
  padding-top: 20px;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.visiting-card__left .logo-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
}

.visiting-card__left .logo {
  width: 150px;
  height: 50px;
  display: block;
  object-fit: contain;
  margin-bottom: 20px;
}

.site-title {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 600;
}

.site-subtitle {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Блок-визитка (между логотипом и записью) */
.visiting-card {
  background: transparent;
  background-image: url("../img/texture3.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  margin: 16px auto 0;
  padding: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
  min-height: 280px;
}

.visiting-card__left {
  flex: 1;
  min-width: 280px;
  padding-left: 40px;
  padding-bottom: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.visiting-card__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.visiting-card__about {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
  text-align: left;
}

.visiting-card__contacts {
  margin-top: 0;
}

.visiting-card__phones,
.visiting-card__address {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
}

.visiting-card__phones:last-child,
.visiting-card__address:last-child {
  margin-bottom: 0;
}

.visiting-card__phones a,
.visiting-card__address a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.visiting-card__phones a:hover,
.visiting-card__address a:hover {
  color: #fff;
}

.visiting-card__right {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  min-height: 280px;
}

.visiting-card__photo {
  display: block;
  width: auto;
  margin-right: 10px;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 640px) {
  .visiting-card {
    flex-direction: column;
    min-height: auto;
    background-size: 75% auto;
  }
  .visiting-card__left {
    margin-right: 40px;
  }
  .visiting-card__left .logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 40px;
  }
  .visiting-card__right {
    min-height: 240px;
    justify-content: center;
  }
  .visiting-card__photo {
    min-height: 240px;
    max-height: 320px;
    width: 100%;
    object-fit: contain;
  }
}

.site-footer {
  margin-top: auto;
  margin-bottom: 30px;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 1);
  text-align: center;
}

.site-footer__links {
  margin: 8px 0 0;
}

.site-footer__links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__sep {
  margin: 0 6px;
  opacity: 0.8;
}

.card {
  background-color: #fff;
  margin: 0 auto 20px;
  padding: 20px 20px 0;
  padding-bottom: 20px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  width: 100%;
  max-width: 960px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .card {
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
  }
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-header__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header h2 {
  margin: 0;
  color: rgba(0, 169, 157, 1);
}

.success-icon {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 150px;
  margin: 50px 0 0 0;
  object-fit: contain;
}

.card h2 {
  text-align: center;
  color: rgba(0, 169, 157, 1);
}

.search-icon-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(0, 169, 157, 1);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.search-icon-btn:hover {
  background-color: rgba(0, 169, 157, 0.12);
  color: rgba(0, 169, 157, 0.9);
}

.search-icon-btn[hidden],
#search-toggle[hidden] {
  display: none !important;
}

.search-wrap {
  margin-bottom: 12px;
}

.search-wrap[hidden] {
  display: none !important;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.loader-overlay[hidden] {
  display: none !important;
}

.loader-overlay.loader-inline {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.loader-inline .loader-spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top-color: rgba(0, 169, 157, 1);
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

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

.form-step + .form-step {
  border-top: 1px solid #e5e7eb;
  margin-top: 18px;
  padding-top: 18px;
}

.form-step h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.form-group {
  margin-top: 0px;
  margin-bottom: 20px;
}

.card > p {
  text-align: center;
}

.card > .form-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  font-size: 0.95rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input.form-control,
select.form-control {
  height: 50px;
  padding: 0 10px;
}

.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
  background-color: #ffffff;
}

.form-control[disabled] {
  cursor: not-allowed;
  background-color: #f3f4f6;
  color: #9ca3af;
}

.step2-doctor-info {
  margin: 0 0 12px;
  font-size: 1rem;
}

.step2-doctor-info .step2-doctor-text {
  display: block;
}

.step2-doctor-info strong {
  font-weight: 600;
}

.step2-doctor-info em {
  font-style: italic;
}

.step2-doctor-photo-wrap {
  display: flex;
  justify-content: center;
  margin: 12px 0;
}

.step2-doctor-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.help-text {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #6b7280;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
}

.checkbox-group a {
  color: #00a99d;
  text-decoration: underline;
}

.checkbox-group a:hover {
  color: #009088;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 169, 157, 1);
  background-color: #ffffff;
  color: rgba(0, 169, 157, 1);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background-color: #f3f4f6;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.primary {
  background-color: #00A99D;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 169, 157, 0.35);
}

.btn.primary:hover {
  background-color: #009088;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
}

.btn.is-loading .btn__text {
  visibility: hidden;
}

.btn .btn__loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.btn.is-loading .btn__loader {
  display: inline-flex;
}

.btn-loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

.btn.danger {
  background-color: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
  box-shadow: none;
}

.btn.danger:hover {
  background-color: #fecaca;
  border-color: #fca5a5;
}

.step-actions {
  margin-top: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  text-align: left;
}

.specialty-list {
  margin-top: 8px;
  padding: 0;
  list-style: none;
  border-radius: 8px;
  border: none;
  background: unset;
}

.specialty-list-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.95rem;
  min-height: 50px;
  display: flex;
  align-items: center;
}

.form-step[data-step="1"] .specialty-list-item {
  border-bottom: 1px solid #e5e7eb;
}

.form-step[data-step="1"] .specialty-list-item:last-child {
  border-bottom: none;
}

.specialty-list-item:hover {
  background-color: rgba(0, 169, 157, 0.1);
}

.specialty-list-item.selected {
  background-color: #00A99D;
  color: #ffffff;
}

.specialty-list-item.selected .specialty-name,
.specialty-list-item.selected .specialty-doctor {
  color: #ffffff;
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.time-slot {
  min-width: 72px;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.month-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 4px;
}

.month-switcher-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.month-switcher-btn:hover:not(.selected) {
  background-color: rgba(0, 169, 157, 0.1);
  border-color: #00A99D;
}

.month-switcher-btn.selected {
  background-color: #00A99D;
  border-color: transparent;
  color: #ffffff;
}

/* Admin auth — login as centered blocking popup overlay */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(15, 23, 42, 0.65);
  z-index: 2000;
}

.admin-login-overlay[hidden] {
  display: none !important;
}

#admin-app[hidden] {
  display: none !important;
}

.admin-login-overlay-dialog {
  width: 100%;
  max-width: 380px;
  margin: 1rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  padding: 24px 22px 26px;
}

.admin-login-overlay-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.admin-login-form-popup .form-group {
  margin-bottom: 1rem;
}

.admin-login-form-popup .form-group:last-of-type {
  margin-bottom: 0.5rem;
}

.admin-login-error {
  margin: 0.5rem 0 0;
  min-height: 1.25em;
}

.admin-login-actions {
  margin-top: 1.25rem;
}

.admin-login-actions .btn {
  width: 100%;
}

.admin-app-error {
  margin: 0 0 0.5rem;
}

.admin-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.admin-sign-out-btn {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  line-height: 0;
  width: 34px;
  height: 34px;
  border: none;
}

.admin-sign-out-btn .admin-sign-out-icon {
  display: block;
  vertical-align: middle;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-tab-btn.active {
  background-color: #00A99D;
  border-color: transparent;
  color: #ffffff;
}

.admin-tab-loader[hidden] {
  display: none !important;
}

.admin-tab-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-tab-loader-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

.admin-tab-btn:not(.active) .admin-tab-loader-spinner {
  border-color: #e5e7eb;
  border-top-color: #00A99D;
}

.admin-tab-content {
  margin-top: 8px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-column {
  flex: 1 1 0;
  min-width: 260px;
}

.admin-column--narrow {
  flex: 0 0 260px;
}

.admin-section {
  border: none;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

#schedule-doctor-list-wrap {
  margin-bottom: 0;
}

#schedule-doctor-list th,
#schedule-doctor-list td {
  padding: 12px 8px;
}

.schedule-doctor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
}
.schedule-doctor-row .admin-schedule-doctor-select {
  flex: 0 1 auto;
  margin-bottom: 0;
}
.schedule-clear-all-btn {
  flex-shrink: 0;
  margin-left: auto;
}

.admin-schedule-doctor-select {
  margin-bottom: 12px;
  max-width: 280px;
}

#schedule-dates-wrap .schedule-date-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
#schedule-dates-wrap .schedule-date-line .admin-date-row {
  margin-top: 0;
}
#schedule-extra-dates .schedule-date-line {
  margin-top: 8px;
}
.schedule-add-date-btn,
.schedule-remove-date-btn {
  flex-shrink: 0;
}
.schedule-remove-date-btn {
  color: #c00;
  border-color: #c00;
}
.schedule-remove-date-btn:hover {
  background-color: #c00;
  color: #fff;
}

.admin-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.admin-date-input {
  width: 2.8em;
  text-align: center;
}

.admin-date-input--year {
  width: 4.2em;
}

.admin-time-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.admin-time-input {
  width: 4.5em;
  text-align: center;
  flex-shrink: 0;
}

.admin-time-sep {
  flex-shrink: 0;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1;
  user-select: none;
}

.admin-schedule-mode-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-schedule-mode-btn.active {
  background-color: #00a99d;
  border-color: #00a99d;
  color: #fff;
}

.admin-schedule-mode-btn.active:hover {
  background-color: #009088;
  border-color: #009088;
}

#schedule-weekdays-panel[hidden],
#schedule-dates-panel[hidden],
#schedule-duration-group[hidden] {
  display: none !important;
}

.admin-interval-btns,
.admin-weekday-btns,
.admin-duration-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.admin-interval-btn,
.admin-weekday-btn,
.admin-duration-btn {
  min-width: 48px;
}

.admin-interval-btn.active,
.admin-weekday-btn.active,
.admin-duration-btn.active {
  background-color: #00A99D;
  border-color: #00A99D;
  color: #fff;
}

.admin-interval-btn.active:hover,
.admin-weekday-btn.active:hover,
.admin-duration-btn.active:hover {
  background-color: #009088;
  border-color: #009088;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

#specialties-table th,
#specialties-table td,
#doctors-table th,
#doctors-table td {
  padding: 15px 8px;
}

.admin-table th {
  font-weight: 600;
  background-color: #f9fafb;
}

#schedules-table th:last-child,
#schedules-table td:last-child:not([colspan]) {
  text-align: right;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-add-row {
  background: none;
  border: none;
  padding: 0;
  color: #00A99D;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-align: left;
}

.admin-add-row:hover {
  text-decoration: underline;
}

.admin-table-row-clickable {
  cursor: pointer;
}

.admin-table-row-clickable:hover {
  background-color: rgba(0, 169, 157, 0.08);
}

.admin-row-inactive {
  color: #9ca3af;
}

.admin-row-inactive td {
  color: inherit;
}

.admin-appointment-views {
  margin-top: 12px;
}

/* Скрыть блок прокрутки недели в режиме «Список» */
.admin-appointment-views.admin-view-mode-list #appointment-calendar-nav {
  display: none !important;
}

.admin-view-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-calendar-week-label {
  font-weight: 600;
  min-width: 140px;
  text-align: left;
}

.admin-view-toggle {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.admin-view-toggle .admin-view-btn {
  margin-left: 4px;
  min-width: 36px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-view-icon {
  display: block;
  vertical-align: middle;
  width: 13px;
  height: 13px;
}

.admin-view-toggle .admin-view-btn.active .admin-view-icon {
  filter: brightness(0) invert(1);
}

.admin-view-toggle .admin-view-btn:first-child {
  margin-left: 0;
}

.admin-view-toggle .admin-view-btn.active {
  background-color: #00a99d;
  border-color: #00a99d;
  color: #fff;
}

#appointment-view-calendar {
  height: 28px;
}

.admin-calendar-wrap {
  overflow-x: auto;
}

.admin-calendar-table {
  table-layout: fixed;
  border-collapse: collapse;
}

.admin-calendar-table th,
.admin-calendar-table td {
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
}

.admin-calendar-table th:first-child,
.admin-calendar-table td:first-child {
  border-left: none;
}

.admin-calendar-table th:last-child,
.admin-calendar-table td:last-child {
  border-right: none;
}

.admin-calendar-time-col {
  width: 64px;
  white-space: nowrap;
}

.admin-calendar-table th:not(.admin-calendar-time-col),
.admin-calendar-table td:not(.admin-calendar-time-col) {
  min-width: 100px;
  max-width: 140px;
  vertical-align: top;
}

.admin-calendar-slot {
  font-size: 0.8rem;
  padding: 4px 6px;
  min-height: 2.5em;
  text-align: center;
}

.admin-calendar-slot--free {
  color: #9ca3af;
  font-style: italic;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
}

.admin-calendar-slot--free:hover {
  background-color: rgba(0, 169, 157, 0.12);
  border-radius: 4px;
}

.admin-calendar-slot--busy {
  background-color: rgba(0, 169, 157, 0.1);
  border-radius: 4px;
}

.admin-calendar-slot-clickable {
  cursor: pointer;
}

.admin-calendar-slot-clickable:hover {
  background-color: rgba(0, 169, 157, 0.18);
}

.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 1100;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 0;
  -webkit-overflow-scrolling: touch;
}

.admin-modal[hidden] {
  display: none !important;
}

.admin-modal-dialog {
  width: 100%;
  max-width: 420px;
  height: fit-content;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
  padding: 0 18px 30px;
}

#schedule-modal .admin-modal-dialog {
  max-width: 480px;
}

#doctor-form {
  box-sizing: content-box;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#doctor-photo-file {
  background: unset;
  background-color: unset;
  border: none;
  border-radius: 0;
  height: fit-content;
  padding-left: 0;
  padding-right: 0;
}

.admin-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-modal-delete {
  margin-left: auto;
}

.admin-doctor-photo-preview {
  margin-top: 8px;
}

.admin-doctor-photo-preview img {
  display: block;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e5e7eb);
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-muted, #6b7280);
  margin: 8px 0 4px;
}

.admin-icon-btn {
  padding: 4px 8px;
  border-radius: 8px;
  min-width: 32px;
  justify-content: center;
}

.admin-icon-btn--danger {
  background-color: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.admin-icon-btn--danger:hover {
  background-color: #fecaca;
  border-color: #fca5a5;
}

#date-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0 0;
  border: none;
  background: transparent;
}

#date-list .date-item {
  list-style: none;
  width: 50px;
  min-height: 50px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 0.95rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease;
}

#date-list .date-item:hover {
  background-color: rgba(0, 169, 157, 0.1);
  border-color: #00A99D;
}

#date-list .date-item.selected {
  background-color: #00A99D;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 169, 157, 0.3);
}

#date-list .date-item.selected .date-item-weekday {
  color: rgba(255, 255, 255, 0.85);
}

#date-list .date-item-weekday {
  font-size: 0.7rem;
  font-style: italic;
  color: #6b7280;
}

#date-list .date-list-empty-msg {
  list-style: none;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  font-style: italic;
  color: #6b7280;
}

.specialty-name {
  font-weight: 600;
}

.specialty-doctor {
  margin-left: 6px;
  font-style: italic;
  color: #6b7280;
  font-weight: 400;
}

.doctor-list-item {
  flex-direction: column;
  align-items: flex-start;
}

.doctor-fio {
  font-weight: 600;
  color: #111827;
}

.doctor-specialty {
  font-size: 0.9rem;
  color: #4b5563;
}

.doctor-dates {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #6b7280;
}

.time-slot:hover {
  background-color: rgba(0, 169, 157, 0.1);
  border-color: #00A99D;
}

.time-slot.selected {
  background-color: #00A99D;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 169, 157, 0.3);
}

.time-slot.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-error {
  margin-top: 4px;
  color: #b91c1c;
  font-size: 0.9rem;
}

.info-message {
  font-size: 0.9rem;
  color: #374151;
  background-color: #eff6ff;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #bfdbfe;
}

.appointment-details {
  margin-top: 8px;
}

.details-list {
  margin: 0 0 10px;
}

.details-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 12px;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
}

.details-list dt {
  font-weight: 500;
  font-size: 0.9rem;
  color: #6b7280;
}

.details-list dd {
  margin: 0;
  font-size: 0.9rem;
}

.link-strong {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.link-strong:hover {
  text-decoration: underline;
}

.honeypot-group {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .card {
    margin: 0 auto 24px;
    padding: 16px 14px 18px;
    border-radius: 12px;
  }

  .site-title {
    font-size: 1.2rem;
  }

  .details-list div {
    grid-template-columns: 1fr;
  }
}

