/* Booking form — scoped to #rblpApp */

#rblpApp.rblp-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: #334155;
}

#rblpApp h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #0f172a;
}

#rblpApp .rblp-lang {
  display: none;
}

#rblpApp .rblp-section {
  margin-bottom: 28px;
}

#rblpApp .rblp-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

#rblpApp .rblp-summary dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 0;
}

#rblpApp .rblp-summary dt {
  font-weight: 700;
  color: #475569;
}

#rblpApp .rblp-summary dd {
  margin: 0;
}

#rblpApp .rblp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

#rblpApp .rblp-table th,
#rblpApp .rblp-table td {
  border: 1px solid #e2e8f0;
  padding: 8px;
  text-align: center;
}

#rblpApp .rblp-table th {
  background: #eef2f7;
}

#rblpApp .rblp-total {
  margin-top: 12px;
  font-weight: 900;
  font-size: 18px;
  color: #2d60bf;
}

#rblpApp .rblp-note {
  font-size: 13px;
  color: #64748b;
  margin-top: 10px;
}

#rblpApp .rblp-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

#rblpApp .rblp-alert.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

#rblpApp .rblp-empty {
  padding: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
}

#rblpApp .rblp-cf7-panel {
  display: none;
}

#rblpApp .rblp-cf7-panel.is-active {
  display: block;
}

#rblpApp .gl-booking-fields .gl-form-title {
  margin: 0 0 14px;
  font-size: 18px;
}

#rblpApp .gl-booking-fields .gl-field {
  margin-bottom: 14px;
}

#rblpApp .gl-booking-fields .gl-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

#rblpApp .gl-booking-fields .gl-help {
  font-size: 12px;
  color: #64748b;
  margin: 4px 0 8px;
}

#rblpApp .gl-booking-fields .gl-people {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#rblpApp .gl-booking-fields .gl-people > div {
  flex: 1;
  min-width: 120px;
}

#rblpApp .gl-booking-fields .gl-people span {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

#rblpApp .gl-booking-fields input[type="text"],
#rblpApp .gl-booking-fields input[type="email"],
#rblpApp .gl-booking-fields input[type="tel"],
#rblpApp .gl-booking-fields input[type="number"],
#rblpApp .gl-booking-fields input[type="file"],
#rblpApp .gl-booking-fields select,
#rblpApp .gl-booking-fields textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-sizing: border-box;
}

#rblpApp .gl-file-control {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#rblpApp .gl-file-control input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#rblpApp .gl-file-control .gl-file-trigger {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 8px 14px;
  background: #f1f5f9;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

#rblpApp .gl-file-control .gl-file-trigger:hover {
  background: #e2e8f0;
}

#rblpApp .gl-file-control .gl-file-name {
  font-size: 13px;
  color: #64748b;
  word-break: break-all;
}

#rblpApp .gl-booking-fields textarea {
  min-height: 100px;
  resize: vertical;
}

#rblpApp .gl-booking-fields .gl-accept {
  margin-bottom: 16px;
}

#rblpApp .gl-yakkan-link {
  color: inherit;
  text-decoration: underline;
}

#rblpApp .gl-yakkan-link:hover {
  text-decoration: none;
}

/* フォーム内の約款リンク（gl-terms）はフッターに集約 — CF7 本文に残っていても非表示 */
#rblpApp .gl-terms {
  display: none !important;
}

#rblpApp .gl-booking-fields .wpcf7-submit,
#rblpApp .gl-booking-fields input[type="submit"] {
  width: 100%;
  padding: 14px;
  background: #2d60bf;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

#rblpApp .gl-booking-fields .wpcf7-submit:hover {
  background: #245099;
}

@media (max-width: 767px) {
  #rblpApp.rblp-wrap {
    padding: 16px;
    border-radius: 12px;
  }

  #rblpApp .rblp-summary dl {
    grid-template-columns: 1fr;
  }
}
