/* Zemexx LK — office picker overlay styles */

.office-overlay-step {
  padding: 32px;
  border-bottom: 1px solid rgba(163, 165, 170, 0.2);
}
.office-overlay-step .step-header {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.office-overlay-step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #00bf3f; color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.office-overlay-h2 {
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px; font-weight: 600; line-height: 28px;
  color: #030813; margin: 0 0 6px;
}
.office-overlay-hint {
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px; color: #6f737a; margin: 0;
}

.office-overlay-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.office-overlay-card {
  display: block; padding: 16px; border-radius: 12px;
  border: 1px solid #dddddd; background: #fff;
  cursor: pointer; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}
.office-overlay-card:hover {
  border-color: #00bf3f;
  box-shadow: 0 4px 12px rgba(0, 191, 63, 0.08);
}
.office-overlay-card.active {
  border-color: #00bf3f;
  background: rgba(0, 191, 63, 0.05);
}
.office-overlay-card input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.office-overlay-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 8px;
}
.office-overlay-name {
  font-weight: 600; font-size: 14px; color: #030813;
}
.office-overlay-badge {
  font-size: 10px; padding: 4px 10px; border-radius: 100px;
  font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; line-height: 1;
}
.office-overlay-badge--central {
  background: #00bf3f; color: #fff;
}
.office-overlay-badge--village_sales {
  background: #2196f3; color: #fff;
}
.office-overlay-address {
  color: #6f737a; font-size: 13px; line-height: 1.5;
}
.office-overlay-phone {
  color: #030813; font-size: 13px; margin-top: 6px; font-weight: 500;
}

/* Step "Выберите переговорку" */
.office-overlay-rooms-step {
  padding: 32px;
  border-bottom: 1px solid rgba(163, 165, 170, 0.2);
}
.office-overlay-rooms-step .step-header {
  display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px;
}
.office-overlay-rooms-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.office-overlay-room-card {
  display: block; padding: 16px; border-radius: 12px;
  border: 1px solid #dddddd; background: #fff;
  cursor: pointer; transition: all 0.15s;
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
}
.office-overlay-room-card:hover {
  border-color: #00bf3f;
}
.office-overlay-room-card.active {
  border-color: #00bf3f;
  background: rgba(0, 191, 63, 0.05);
}
.office-overlay-room-card input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.office-overlay-room-name {
  font-size: 14px; font-weight: 600; color: #030813; margin-bottom: 4px;
}
.office-overlay-room-cap {
  font-size: 12px; color: #6f737a;
}
@media (max-width: 768px) {
  .office-overlay-rooms-step { padding: 16px; }
  .office-overlay-rooms-grid { grid-template-columns: repeat(2, 1fr); }
}

.office-overlay-map-wrap {
  margin-top: 16px; border-radius: 12px; overflow: hidden;
}
.office-overlay-map {
  width: 100%; height: 240px; border: 0; display: block;
}
/* Отчёт #11: акцент на офисе — плашка с названием/адресом над картой */
.office-overlay-map-caption {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 12px 14px;
  background: rgba(0, 191, 63, 0.08);
  border-bottom: 1px solid rgba(0, 191, 63, 0.2);
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
}
.office-overlay-map-pin { color: #00bf3f; flex-shrink: 0; display: inline-flex; margin-top: 1px; }
.office-overlay-map-cap-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.office-overlay-map-cap-text strong { font-size: 15px; font-weight: 700; color: #030813; }
.office-overlay-map-addr { font-size: 12.5px; color: #6f737a; line-height: 1.4; }
[data-theme="dark"] .office-overlay-map-caption {
  background: rgba(0, 191, 63, 0.12); border-bottom-color: rgba(0, 191, 63, 0.25);
}
[data-theme="dark"] .office-overlay-map-cap-text strong { color: #e2e8f0; }
[data-theme="dark"] .office-overlay-map-addr { color: #94a3b8; }

.office-overlay-status {
  margin-top: 16px; padding: 0; font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px; line-height: 1.5;
}
.office-overlay-status:empty { display: none; }
.office-overlay-status--info { color: #6f737a; }
.office-overlay-status--success {
  padding: 10px 14px; background: rgba(0, 191, 63, 0.1);
  border-left: 3px solid #00bf3f; border-radius: 8px;
  color: #00bf3f;
}
.office-overlay-status--error {
  padding: 10px 14px; background: rgba(229, 57, 53, 0.08);
  border-left: 3px solid #e53935; border-radius: 8px;
  color: #c62828;
}

/* перерисованные нами слоты внутри оригинального .slots-grid */
.appointment-page .slots-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.appointment-page .slots-grid.office-overlay-loading {
  opacity: 0.5; pointer-events: none;
}
.office-overlay-slot {
  padding: 16px; border-radius: 12px; border: 1px solid #dddddd;
  background: #fff; font-weight: 600; text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px;
  color: #030813; cursor: pointer;
}
.office-overlay-slot:not(:disabled):hover { border-color: #00bf3f; }
.office-overlay-slot--selected {
  border-color: #00bf3f; background: #00bf3f; color: #fff;
}
.office-overlay-slot--unavailable {
  opacity: 0.5; cursor: not-allowed; background: #f9fbfc; color: #a3a5aa;
}
.office-overlay-slot-time { line-height: 1.2; }
.office-overlay-slot-state {
  font-size: 11px; font-weight: 500; opacity: 0.85;
}
.office-overlay-empty {
  grid-column: 1 / -1;
  padding: 24px; text-align: center; color: #a3a5aa;
  border: 1px dashed #dddddd; border-radius: 12px;
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px;
}

/* Скрываем все кнопки в submit-zone кроме нашей — оригинальная Vue-кнопка disabled
   потому что в Vue-state нет нашего office_code/time, поэтому её всё равно нельзя нажать. */
.appointment-page .submit-zone button:not(.office-overlay-submit) { display: none !important; }
.appointment-page .submit-zone p { display: none; }
.appointment-page .submit-zone .text-secondary { display: none; }

.office-overlay-submit {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; min-width: 220px;
  background: #00bf3f; color: #fff;
  border: none; border-radius: 12px; cursor: pointer;
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; font-weight: 600;
  transition: background 0.15s, transform 0.05s;
}
.office-overlay-submit:hover:not(:disabled) { background: #06ac3e; }
.office-overlay-submit:active:not(:disabled) { transform: scale(0.98); }
.office-overlay-submit:disabled { background: #c5e5cc; cursor: not-allowed; }

@media (max-width: 768px) {
  .office-overlay-step { padding: 16px; }
  .office-overlay-grid { grid-template-columns: 1fr; }
}

/* Mobile ≤480px — карточки офисов и слоты в 1 колонку */
@media (max-width: 480px) {
  .office-overlay-grid {
    grid-template-columns: 1fr !important;
  }
  .office-overlay-rooms-grid {
    grid-template-columns: 1fr !important;
  }
  .appointment-page .slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .office-overlay-step { padding: 14px; }
  .office-overlay-h2 { font-size: 17px; line-height: 1.3; }
  .office-overlay-card { padding: 14px; }
}

/* Отчёт #12: кнопка «Записаться ещё раз» в шапке «Мои записи» (скролл к форме).
   «Новая запись» рядом — это статус-бейдж брони, не кнопка. */
.appointment-page .history-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.office-overlay-newbtn {
  flex-shrink: 0;
  font-family: 'TT Wellingtons', Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #00BF3F, #06AC3E);
  border: none; border-radius: 10px; padding: 10px 18px; cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.office-overlay-newbtn:hover { opacity: .92; }
.office-overlay-newbtn:active { transform: scale(.98); }
