/* ===================== CHECKIN PAGE STYLES ===================== */

.checkin-hero {
  align-items: center;
  border-bottom: 1px solid rgba(var(--color-rgb-main), 0.12);
  color: var(--color-white);
  display: flex;
  isolation: isolate;
  justify-content: center;
  margin-bottom: 14px;
  min-height: 280px;
  overflow: hidden;
  padding: 72px 20px 62px;
  position: relative;
  text-align: center;
}

.checkin-hero__layer {
  background:
    linear-gradient(rgba(34, 49, 100, 0.68), rgba(24, 38, 77, 0.8)),
    url('/img/layout/checkin_hero.png') center bottom / cover no-repeat;
  inset: 0;
  position: absolute;
  z-index: -2;
}

.checkin-hero::after {
  background: radial-gradient(circle at 18% 8%, rgba(49, 235, 193, 0.24) 0, transparent 32%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.checkin-hero__inner {
  margin: 0 auto;
  max-width: 820px;
}

.checkin-hero__eyebrow {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  letter-spacing: 0.11em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.checkin-hero h1 {
  color: var(--color-white);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.checkin-intro {
  margin-top: 24px;
  margin-bottom: 8px;
}

.checkin-intro .h2_box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%);
  border: 1px solid rgba(var(--color-rgb-main), 0.1);
  border-radius: 18px;
  padding: 24px 22px;
}

.checkin-intro .h2_box h2 {
  font-size: 1.24rem;
  letter-spacing: 0.06em;
}

.checkin-info-text {
  color: rgba(var(--color-rgb-main), 0.86);
  line-height: 1.65;
  max-width: 74ch;
}

.checkin-process-section {
  margin-top: 20px;
}

.checkin-process-tabs-wrap {
  margin-top: 18px;
}

.checkin-steps {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(var(--color-rgb-main), 0.14);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
}

.checkin-step {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(var(--color-rgb-main), 0.74);
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.checkin-step__icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1.05rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.checkin-step.is-active {
  background: rgba(var(--color-rgb-main), 0.08);
  border-color: rgba(var(--color-rgb-main), 0.2);
  box-shadow: inset 0 0 0 1px rgba(var(--color-rgb-main), 0.04);
  color: var(--bs-primary);
}

.checkin-step.is-done {
  color: var(--bs-primary);
}

.checkin-step.is-locked,
.checkin-step:disabled {
  color: rgba(var(--color-rgb-main), 0.42);
  cursor: not-allowed;
  opacity: 0.7;
}

.checkin-step:not(:disabled):hover,
.checkin-step:not(:disabled):focus-visible {
  background: rgba(var(--color-rgb-main), 0.06);
  border-color: rgba(var(--color-rgb-main), 0.2);
  color: var(--bs-primary);
  outline: none;
}

.checkin-process-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border: 1px solid rgba(var(--color-rgb-main), 0.12);
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(var(--color-rgb-main), 0.1);
}

.checkin-process-card__head {
  margin-bottom: 18px;
}

.checkin-process-card__head h3 {
  color: var(--color-accent);
  margin: 0;
}

.checkin-section-title,
.checkin-subsection-title {
  align-items: center;
  color: var(--bs-primary);
  display: inline-flex;
  gap: 10px;
  letter-spacing: 0.02em;
  margin: 0;
}

.checkin-subsection-title {
  font-size: 1.2rem;
}

.location-display .checkin-section-title {
  color: var(--bs-primary);
  font-size: 1.2rem;
}

.checkin-section-title .bi,
.checkin-subsection-title .bi {
  color: var(--color-accent);
  line-height: 1;
}

.checkin-panel {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(var(--color-rgb-main), 0.08);
  border-radius: 14px;
  padding: 18px 16px;
}

.show-delivery-form.checkin-panel {
  border-color: rgba(var(--color-rgb-main), 0.14);
  margin-top: 6px;
}

.add-delivery.checkin-panel {
  border-color: rgba(var(--color-rgb-main), 0.12);
  margin-top: 18px;
}

.location-display {
  background-color: #f4f7fc;
  border: 1px solid rgba(var(--color-rgb-main), 0.14);
  border-radius: 14px;
}

.location-display__meta .group + .group {
  margin-top: 6px;
}

.delete-location-btn {
  align-items: center;
  background: rgba(var(--color-rgb-main), 0.06);
  border: 1px solid rgba(var(--color-rgb-main), 0.16);
  border-radius: 999px;
  color: var(--bs-primary);
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 8px;
}

.delete-location-btn:hover,
.delete-location-btn:focus-visible {
  background: rgba(var(--color-rgb-main), 0.1);
  border-color: rgba(var(--color-rgb-main), 0.24);
  outline: none;
}

.delete-location {
  height: 14px;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 14px;
}

.delete-delivery {
  height: 14px;
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 14px;
}

.delete-delivery-btn {
  align-items: center;
  background: rgba(var(--color-rgb-main), 0.06);
  border: 1px solid rgba(var(--color-rgb-main), 0.16);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 8px;
}

.delete-delivery-btn:hover,
.delete-delivery-btn:focus-visible {
  background: rgba(var(--color-rgb-main), 0.1);
  border-color: rgba(var(--color-rgb-main), 0.24);
  outline: none;
}

.delete-location:hover,
.delete-delivery:hover {
  opacity: 1;
  transform: scale(1.08);
}

.page_checkin .list-group-item {
  background: transparent;
  border-color: rgba(var(--color-rgb-main), 0.09);
}

.delivery-item {
  gap: 10px;
  padding-bottom: 8px;
  padding-top: 8px;
}

.page_checkin .form-select,
.page_checkin .form-control {
  border-color: rgba(var(--color-rgb-main), 0.28);
  min-height: 44px;
}

.page_checkin .btn-primary {
  box-shadow: 0 8px 18px rgba(var(--color-rgb-main), 0.16);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-height: 42px;
  padding: 9px 20px;
}

.page_checkin .btn-primary:hover {
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .checkin-hero {
    min-height: 240px;
    padding-top: 60px;
    padding-bottom: 54px;
  }

  .checkin-hero h1 {
    font-size: 2.1rem;
  }

  .checkin-process-section {
    margin-top: 18px;
  }
}

@media (max-width: 767px) {
  .checkin-hero {
    min-height: 220px;
    padding: 52px 16px 46px;
  }

  .checkin-steps {
    gap: 6px;
    padding: 6px;
  }

  .checkin-step {
    font-size: 1rem;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
  }

  .checkin-hero__eyebrow {
    font-size: 1rem;
  }

  .checkin-hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .checkin-intro .h2_box h2 {
    font-size: 1.02rem;
  }

  .checkin-intro .h2_box {
    border-radius: 14px;
    padding: 18px 14px;
  }

  .checkin-intro {
    margin-top: 18px;
    margin-bottom: 2px;
  }

  .checkin-process-tabs-wrap {
    margin-top: 14px;
  }

  .checkin-process-card {
    border-radius: 18px;
  }

  .checkin-panel {
    padding: 14px 12px;
  }

  .location-display {
    align-items: flex-start;
    flex-direction: row;
    gap: 12px;
  }

  .location-display__meta {
    min-width: 0;
  }

  .delete-location-btn {
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 42px;
    min-width: 42px;
    padding: 10px;
  }

  .delete-delivery-btn {
    min-height: 40px;
    min-width: 40px;
  }
}
