/* ============================================================
   マイお問い合わせ (guestbook-my) — BS5 Design
   ============================================================ */

/* --- Header --- */
.gbm-header { border-bottom: 2px solid #e8f2fc; padding-bottom: 1rem; }
.gbm-title { font-size: 1.5rem; font-weight: 700; color: #1a1a1a; margin: 0; }
.gbm-subtitle { font-size: 0.875rem; color: #6b7280; margin: 0.25rem 0 0; }

/* --- Login card --- */
.gbm-login-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  max-width: 640px;
}
.gbm-login-tip {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #f8fbff;
  border-radius: 0.5rem;
  border-left: 3px solid #0679D4;
}

/* --- Contact info bar --- */
.gbm-contact-info {
  padding: 0.75rem 1rem;
  background: #f8fbff;
  border-radius: 0.5rem;
  border: 1px solid #e8f2fc;
}
.gbm-contact-label { font-weight: 600; font-size: 0.875rem; color: #374151; }

/* --- Item cards --- */
.gbm-item {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.gbm-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.gbm-item-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.gbm-item-date { font-size: 0.8125rem; color: #6b7280; }
.gbm-item-no { font-size: 0.75rem; color: #9ca3af; margin-left: auto; }

/* --- Badges --- */
.gbm-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.gbm-badge-replied { background: #d1fae5; color: #065f46; }
.gbm-badge-wait { background: #fef3c7; color: #92400e; }

/* --- Content --- */
.gbm-item-title { font-weight: 700; color: #1a1a1a; font-size: 0.9375rem; }
.gbm-item-content {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
  white-space: pre-line;
  margin-top: 0.5rem;
}

/* --- Images --- */
.gbm-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .gbm-images { grid-template-columns: repeat(2, 1fr); }
}
.gbm-image-link {
  display: block;
  aspect-ratio: 4/3;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.gbm-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Reply --- */
.gbm-reply {
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border-radius: 0.5rem;
  border-left: 3px solid #22c55e;
}
.gbm-reply-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.375rem;
}
.gbm-reply-content {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.7;
  white-space: pre-line;
}

/* --- Pagination --- */
.gbm-pages { text-align: center; }
.gbm-pages a, .gbm-pages span {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin: 0 0.125rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  text-decoration: none;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.gbm-pages a:hover { background: #e8f2fc; color: #0679D4; border-color: #0679D4; }
.gbm-pages .current, .gbm-pages span.current {
  background: #0679D4;
  color: #fff;
  border-color: #0679D4;
}

/* --- Empty state --- */
.gbm-empty-card {
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* --- intl-tel-input fix inside input-group --- */
.input-group .iti { flex: 1 1 auto; }
.input-group .iti .form-control { border-radius: 0.375rem 0 0 0.375rem; }
