/* Inf Booking — frontend styles */
.inf-booking {
  max-width: 720px;
  margin: 0 auto;
  font-family: inherit;
  color: #1a1a1a;
}
.inf-booking .ib-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}
.inf-booking .ib-step {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

/* Lawyer picker */
.ib-lawyers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.ib-lawyer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.ib-lawyer-card:hover {
  border-color: #b78e3d;
  box-shadow: 0 6px 18px rgba(183,142,61,0.18);
  transform: translateY(-2px);
}
.ib-lawyer-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  background-color: #f2ecdd;
  flex-shrink: 0;
}
.ib-lawyer-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b78e3d;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}
.ib-lawyer-info { min-width: 0; }
.ib-lawyer-name {
  font-weight: 700;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.25;
}
.ib-lawyer-pos {
  color: #888;
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.3;
}

/* Picked lawyer strip on date step */
.ib-picked-lawyer {
  margin-bottom: 20px;
}
.ib-picked-lawyer-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #faf6ef;
  border: 1px solid #eadcbf;
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
}
.ib-picked-lawyer-inner .ib-lawyer-photo {
  width: 40px;
  height: 40px;
}
.ib-picked-lawyer-inner .ib-lawyer-photo-empty {
  font-size: 16px;
}
.ib-picked-lawyer-inner .ib-lawyer-name { font-size: 14px; }
.ib-picked-lawyer-inner .ib-lawyer-pos  { font-size: 12px; margin-top: 1px; }

/* Calendar */
.ib-calendar {
  user-select: none;
}
.ib-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ib-cal-prev,
.ib-cal-next {
  background: #f5eedd;
  color: #b78e3d;
  border: 0;
  width: 54px;
  height: 34px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .15s ease, box-shadow .25s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(183,142,61,0.08);
}
.ib-cal-prev:hover,
.ib-cal-next:hover {
  background: #b78e3d;
  color: #fff;
  box-shadow: 0 4px 12px rgba(183,142,61,0.25);
  transform: translateY(-1px);
}
.ib-cal-prev:active,
.ib-cal-next:active { transform: translateY(0); }
.ib-cal-prev:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.ib-cal-prev:disabled:hover { background: #f5eedd; color: #b78e3d; transform: none; box-shadow: none; }
.ib-cal-month-label {
  font-size: 17px;
  font-weight: 700;
}
.ib-cal-dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}
.ib-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.ib-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  background: #f6f6f6;
  border: 1px solid transparent;
  transition: all .2s;
}
.ib-day:hover:not(.ib-day-disabled):not(.ib-day-empty) {
  background: #fff;
  border-color: #d4af6a;
}
.ib-day-empty {
  background: transparent;
  cursor: default;
}
.ib-day-disabled {
  color: #ccc;
  cursor: not-allowed;
  background: #fafafa;
  text-decoration: line-through;
}
.ib-day-past {
  color: #ddd;
  cursor: not-allowed;
  background: transparent;
}
.ib-day-today {
  font-weight: 700;
}
.ib-day-selected {
  background: #b78e3d !important;
  color: #fff;
  border-color: #b78e3d;
}
.ib-day-has-slots {
  background: #fff;
  border-color: #e6e6e6;
}

/* Slots */
.ib-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.ib-slot {
  background: #fff;
  border: 1px solid #d4af6a;
  color: #b78e3d;
  padding: 12px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: all .2s;
}
.ib-slot:hover {
  background: #b78e3d;
  color: #fff;
}
.ib-slot.ib-slot-selected {
  background: #b78e3d;
  color: #fff;
}
.ib-no-slots {
  text-align: center;
  color: #888;
  padding: 30px 0;
  font-style: italic;
}
.ib-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  font-size: 0;
  color: transparent;
}
.ib-loader::after {
  content: "";
  width: 38px;
  height: 38px;
  border: 3px solid #eadcbf;
  border-top-color: #b78e3d;
  border-radius: 50%;
  animation: ib-spin .8s linear infinite;
}
@keyframes ib-spin {
  to { transform: rotate(360deg); }
}
.ib-back-to-lawyer,
.ib-back-to-date,
.ib-back-to-time {
  background: none;
  border: 0;
  color: #888;
  cursor: pointer;
  padding: 8px 0;
  font-size: 14px;
}
.ib-back-to-lawyer:hover,
.ib-back-to-date:hover,
.ib-back-to-time:hover { color: #1a1a1a; }

/* Form */
.ib-summary {
  background: #faf6ef;
  border-left: 4px solid #b78e3d;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 15px;
}
.ib-label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.ib-label input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #d6d6d6;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 400;
  background: #fff;
  box-sizing: border-box;
}
.ib-label input:focus {
  outline: none;
  border-color: #b78e3d;
}
.ib-label textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  border: 1px solid #d6d6d6;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  background: #fff;
  box-sizing: border-box;
  resize: vertical;
  min-height: 80px;
}
.ib-label textarea:focus {
  outline: none;
  border-color: #b78e3d;
}
.ib-optional {
  font-weight: 400;
  font-size: 12px;
  color: #999;
}
.ib-label input.ib-file {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
}
.ib-file-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #999;
}
.ib-file-list {
  list-style: none;
  margin: 10px 0 16px;
  padding: 0;
}
.ib-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-top: 6px;
  background: #f7f4ee;
  border: 1px solid #e6ddc9;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 400;
}
.ib-file-item .ib-file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #333;
}
.ib-file-item .ib-file-size {
  color: #999;
  font-size: 12px;
  flex-shrink: 0;
}
.ib-file-remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
  border: 0;
  border-radius: 50%;
  background: #e6ddc9;
  color: #8b6a2a;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.ib-file-remove:hover { background: #d9ccae; color: #6b4f1c; }
.ib-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  gap: 12px;
}
.ib-submit {
  background: #b78e3d;
  color: #fff;
  border: 0;
  padding: 13px 30px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}
.ib-submit:hover { background: #8b6a2a; }
.ib-submit:disabled { opacity: .6; cursor: not-allowed; }
.ib-error {
  background: #fff0f0;
  border: 1px solid #e6b3b3;
  color: #a02020;
  padding: 10px 14px;
  border-radius: 4px;
  margin-top: 14px;
  font-size: 14px;
}

/* Modal */
body.ib-modal-open { overflow: hidden; }
.ib-modal {
  position: fixed !important;
  inset: 0;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(20,22,30,0.75);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: ib-fade-in .25s ease;
}
.ib-modal-inner {
  background: #fff;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  animation: ib-pop-in .35s ease-out;
}
@keyframes ib-fade-in { from { opacity:0 } to { opacity:1 } }
@keyframes ib-pop-in {
  from { opacity:0; transform: scale(.85) translateY(20px) }
  to   { opacity:1; transform: scale(1) translateY(0) }
}
.ib-modal-icon {
  width: 70px;
  height: 70px;
  background: #2d8a2d;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 20px;
  font-weight: 700;
}
.ib-modal-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1a1a1a;
}
.ib-modal-msg {
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 24px;
}
.ib-modal-close {
  background: #b78e3d;
  color: #fff;
  border: 0;
  padding: 11px 28px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ib-modal-close:hover { background: #8b6a2a; }

@media (max-width: 600px) {
  .inf-booking .ib-step { padding: 20px; }
  .ib-cal-month-label { font-size: 15px; }
  .ib-day { font-size: 12px; }
  .ib-slots { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }
}
