/* DB Form Widget styles (namespace: dbw-) */

.dbw-container {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
}

.dbw-form {
  box-sizing: border-box;
}

.dbw-form > div {
  margin-bottom: 12px;
}

.dbw-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.dbw-form input[type="text"],
.dbw-form input[type="email"],
.dbw-form input[type="tel"],
.dbw-form input[type="number"],
.dbw-form textarea,
.dbw-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #d0d7de;
  font-size: 0.9rem;
}

.dbw-form textarea {
  min-height: 120px;
  resize: vertical;
}

.dbw-submit {
  display: inline-block;
  min-width: 120px;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #1974D2;
  color: #ffffff;
  float:right;
}

.dbw-submit:hover {
  background: #1d4ed8;
}

.dbw-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.error_message, .server_error {
  margin-top: 4px;
  min-height: 1em;
  font-size: 0.8rem;
  color: #dc2626;
}

.server_error {
	border: 1px #dc2626 solid;
    padding: 10px;
	display: none;
}

/* 送信完了後など、返却HTMLにも軽く余白 */
.dbw-container-complete {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans JP", sans-serif;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 0;
  box-sizing: border-box;
}
